ports/devel/picprog/files/patch-ab
Steve Price 339b3702f6 Initial import of pciprog version 1.0.
A serial port pic16c84 programmer.

PR:		13516
Submitted by:	Johan Kerckaert <kirk@bricsnet.com>
1999-11-01 04:03:47 +00:00

31 lines
779 B
Text

--- Makefile.orig Mon Jun 2 06:37:54 1997
+++ Makefile Sun Oct 31 09:02:37 1999
@@ -28,9 +28,10 @@
VERSION=1.0
-CXX=g++
-CXXFLAGS=-O2 -Wall -Wmissing-prototypes
-LDFLAGS=
+CXX?=g++
+CXXFLAGS?=-O2 -Wall -Wmissing-prototypes
+CXXFLAGS+=-I$(PREFIX)/include
+LDFLAGS=-L$(PREFIX)/lib -lgnugetopt
OBJS=main.o picport.o hexfile.o program.o stringc.o
PROG=picprog
@@ -53,12 +54,5 @@
$(PROG)-$(VERSION)/*.{html,gif,diff,1,h,cc}
install: all
- install -c -o 0 -g 0 -m 755 -s $(PROG) /usr/local/bin/
- install -c -o 0 -g 0 -m 644 *.1 /usr/local/man/man1/
-
-#
-# include a dependency file if one exists
-#
-ifeq (.depend,$(wildcard .depend))
-include .depend
-endif
+ install -c -o 0 -g 0 -m 755 -s $(PROG) $(PREFIX)/bin
+ install -c -o 0 -g 0 -m 444 *.1 $(PREFIX)/man/man1