1999-11-01 04:03:47 +00:00
|
|
|
--- 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
|
1999-12-25 01:44:43 +00:00
|
|
|
+ ${BSD_INSTALL_PROGRAM} $(PROG) $(PREFIX)/bin
|
|
|
|
+ ${BSD_INSTALL_MAN} picprog.1 $(PREFIX)/man/man1
|