aboutsummaryrefslogtreecommitdiffstats
path: root/devel/picprog/files/patch-ab
blob: 352ffddfdf4cabbbb243155c03843c53cbab34db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- 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