$NetBSD: patch-aa,v 1.1.1.1 2005/07/27 05:34:27 dogcow Exp $ --- Makefile.orig 2005-07-26 21:37:11.000000000 -0700 +++ Makefile @@ -3,11 +3,11 @@ # PIC programmer interface # -CC=gcc +CC=$(CXX) APP=picp -INCLUDES=-I. -OPTIONS=-O2 -Wall -x c++ -CFLAGS=$(INCLUDES) $(OPTIONS) +INCLUDES+=-I. + +CFLAGS+=$(INCLUDES) $(OPTIONS) SRCS=main.c serial.c picdev.c record.c parse.c atoi_base.c OBJECTS = main.o serial.o picdev.o record.o parse.o atoi_base.o @@ -19,7 +19,7 @@ WINOBJECTS = main.obj serial.obj picdev. all: $(APP) $(APP): $(OBJECTS) - $(CC) $(OBJECTS) -lstdc++ -o $(APP) + $(CXX) $(OBJECTS) -o $(APP) strip $(APP) clean: @@ -27,7 +27,8 @@ clean: rm -f $(APP) install: - cp -f $(APP) /usr/local/bin/ + $(INSTALL) -m 755 $(APP) $(PREFIX)/bin/ + $(INSTALL) -m 644 PICPmanual.html $(PREFIX)/share/doc/picp/ win: $(APP).exe