summaryrefslogtreecommitdiff
path: root/devel/picprog/files/patch-Makefile
blob: d67cea131fd9167631ad52785447a17c8dfbb95f (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
32
33
--- Makefile.orig	Mon Jan 12 22:42:23 2004
+++ Makefile	Mon Jan 12 22:44:01 2004
@@ -26,10 +26,6 @@
 
 # Please use a reasonably recent GNU make.
 
-CXX=g++
-CXXFLAGS=-g -O2 -Wall -W -Wwrite-strings -Wmissing-prototypes
-LDFLAGS=-g
-
 OBJS=main.o picport.o hexfile.o program.o
 PROG=picprog
 
@@ -37,6 +33,8 @@
 
 $(PROG): $(OBJS)
 	$(CXX) $(LDFLAGS) $(OBJS) -o $@
+.cc.o:
+	$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) $>
 
 dep:
 	$(CXX) -M $(CXXFLAGS) *.cc > .depend
@@ -55,10 +53,3 @@
 install: all
 	install -c -o 0 -g 0 -m 755 $(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