pkgsrc/devel/picp/patches/patch-aa
2008-06-12 02:14:13 +00:00

39 lines
866 B
Text

$NetBSD: patch-aa,v 1.2 2008/06/12 02:14:28 joerg 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) ${DESTDIR}$(PREFIX)/bin/
+ $(INSTALL) -m 644 PICPmanual.html ${DESTDIR}$(PREFIX)/share/doc/picp/
win: $(APP).exe