summaryrefslogtreecommitdiff
path: root/comms/estic/patches/patch-ag
blob: 773ad9daed85bffaf2c72e852530178c7d8e339f (plain)
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
$NetBSD: patch-ag,v 1.3 2002/09/21 07:06:42 jlam Exp $

--- ../spunk/make/freebsd-x.mak.orig	Sun Nov 24 22:33:26 1996
+++ ../spunk/make/freebsd-x.mak	Sat Feb 10 19:06:51 2001
@@ -27,10 +27,9 @@
 AR = ar
 LD = ld
 ZIP = zip
-CC = g++
 
 # Flags for the gnu compiler
-CFLAGS	= -DFREEBSD -DUSE_OLD_TTY -g -Wall -x c++ -I /usr/X11R6/include -fno-implicit-templates -DEXPLICIT_TEMPLATES
+CFLAGS	+= -DFREEBSD -Wall -x c++ -I$(X11BASE)/include -fno-implicit-templates -DEXPLICIT_TEMPLATES
 
 LIB	= spunk.a
 ZIPFILE = spunk.zip
@@ -42,7 +41,7 @@
 	$(CC) $(CFLAGS) -c $<
 
 .cc.o:
-	$(CC) $(CFLAGS) -c $<
+	$(CXX) $(CFLAGS) -c $<
 
 # ------------------------------------------------------------------------------
 # All SPUNK OBJ files
@@ -136,7 +135,7 @@
 # Dummy targets
 
 xresed:		$(LIB) $(RESEDITOBJS)
-	$(CC) -g -o xresed $(RESEDITOBJS) $(LIB) -lg++ -L/usr/X11R6/lib -lX11
+	$(CXX) -o xresed $(RESEDITOBJS) $(LIB) $(LDFLAGS) -lX11
 
 lib:	$(LIB)
 
@@ -149,7 +148,7 @@
 
 depend dep:
 	@echo "Creating dependency information"
-	$(CC) -DFREEBSD -MM *.cc > .depend
+	$(CXX) -DFREEBSD -MM *.cc > .depend
 
 # ------------------------------------------------------------------------------
 # Target specific files