summaryrefslogtreecommitdiff
path: root/comms/estic/patches/patch-af
diff options
context:
space:
mode:
Diffstat (limited to 'comms/estic/patches/patch-af')
-rw-r--r--comms/estic/patches/patch-af62
1 files changed, 62 insertions, 0 deletions
diff --git a/comms/estic/patches/patch-af b/comms/estic/patches/patch-af
new file mode 100644
index 00000000000..5444132c865
--- /dev/null
+++ b/comms/estic/patches/patch-af
@@ -0,0 +1,62 @@
+$NetBSD: patch-af,v 1.1.1.1 2001/02/10 18:34:23 tron Exp $
+
+--- make/freebsd-x.mak.orig Fri Jan 31 03:57:24 1997
++++ make/freebsd-x.mak Sat Feb 10 18:38:34 2001
+@@ -27,22 +27,20 @@
+ AR = ar
+ LD = ld
+ ZIP = zip
+-CC = g++
+
+ LIB = ../spunk/spunk.a
+ INCDIR = ../spunk
+
+-CFLAGS = -DFREEBSD -g -Wall -I$(INCDIR) -x c++ -L /usr/X11R6/lib -fno-implicit-templates -DEXPLICIT_TEMPLATES
+-
++CFLAGS += -DFREEBSD -Wall -I$(INCDIR) -fno-implicit-templates -DEXPLICIT_TEMPLATES
+
+ # ------------------------------------------------------------------------------
+ # Implicit rules
+
+ .c.o:
+- $(CC) $(CFLAGS) -c $<
++ $(CC) $(CFLAGS) -c $< -o $@
+
+ .cc.o:
+- $(CC) $(CFLAGS) -c $<
++ $(CXX) $(CFLAGS) -c $< -o $@
+
+ # ------------------------------------------------------------------------------
+ # All OBJ files
+@@ -71,18 +69,19 @@
+ icintcon.o \
+ iclog.o \
+ icmsgwin.o \
+- icprefix.o \
+ icshort.o \
+ icver.o \
+ istecmsg.o
+
++ACOBJ = ../areacode/areacode.o
++
+ # ------------------------------------------------------------------------------
+ #
+
+ all: xestic
+
+-xestic: $(LIB) $(OBJS)
+- $(CC) -o xestic $(OBJS) $(LIB) -ltermcap -lg++ -lX11
++xestic: $(LIB) $(OBJS) $(ACOBJ)
++ $(CXX) -o xestic $(OBJS) $(ACOBJ) $(LIB) $(LDFLAGS) -ltermcap -lX11
+
+
+ # ------------------------------------------------------------------------------
+@@ -90,7 +89,7 @@
+
+ depend dep:
+ @echo "Creating dependency information"
+- $(CC) -I$(INCDIR) -DFREEBSD -MM *.cc > .depend
++ $(CXX) -I$(INCDIR) -DFREEBSD -MM *.cc > .depend
+
+ # ------------------------------------------------------------------------------
+ # Create a ZIP file