aboutsummaryrefslogtreecommitdiff
path: root/misc/estic/files/patch-spunk-freebsd.mak
blob: dec6e31df7649525a2c9e320c70de723f5ca40e7 (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
34
35
36
37
38
39
40
41
42
43
44
45
--- spunk/make/freebsd.mak.orig	1996-11-24 21:33:26 UTC
+++ spunk/make/freebsd.mak
@@ -27,10 +27,10 @@ AS = gas
 AR = ar
 LD = ld
 ZIP = zip
-CC = g++
+CC?= g++
 
 # Flags for the gnu compiler
-CFLAGS	= -DFREEBSD -DUSE_OLD_TTY -g -Wall -x c++ -fno-implicit-templates -DEXPLICIT_TEMPLATES
+CFLAGS	+= -DFREEBSD -g -Wall -x c++ -fno-implicit-templates -DEXPLICIT_TEMPLATES
 
 LIB	= spunk.a
 ZIPFILE = spunk.zip
@@ -137,7 +137,7 @@ RESEDITOBJS	=	resed.o		\
 # Dummy targets
 
 resed:	$(LIB) $(RESEDITOBJS)
-	$(CC) -g -o resed $(RESEDITOBJS) $(LIB) -ltermcap -lg++
+	$(CC) -g -o resed $(RESEDITOBJS) $(LIB) -ltermcap
 
 lib:	$(LIB)
 
@@ -150,7 +150,7 @@ $(LIB):		$(OBJS)
 
 depend dep:
 	@echo "Creating dependency information"
-	$(CC) -DFREEBSD -MM *.cc > .depend
+	$(CC) ${CFLAGS} -MM *.cc > .depend
 
 # ------------------------------------------------------------------------------
 # Target specific files
@@ -196,9 +196,10 @@ zip:
 
 clean:
 	-rm -f *~ linuxsrc/*~ bsdsrc/*~ unixsrc/*~
+	-rm -f *.o
+	-rm -f resed $(LIB) $(ZIPFILE)
 
 zap:	clean
-	-rm -f *.o
 	-rm -f .depend