4095d64e48
- Remove dependency on gcc 2.95 assuming that support for gcc 2.7.2 is dropped long time ago - Bump PORTREVISION Approved by: portmgr, MAINTAINER
70 lines
1.6 KiB
Text
70 lines
1.6 KiB
Text
--- MakeFiles/FreeBSD/Makefile.orig Fri Aug 19 17:20:22 2005
|
|
+++ MakeFiles/FreeBSD/Makefile Fri Aug 19 17:20:23 2005
|
|
@@ -1,5 +1,4 @@
|
|
-CC= cc
|
|
-CFLAGS= -Wall -W -fno-rtti `perl -MExtUtils::Embed -e ccopts`
|
|
+CFLAGS+=-Wall -W -fno-rtti `perl -MExtUtils::Embed -e ccopts`
|
|
CDEFS= -DUNIX
|
|
COPT= -Ihpp -I/usr/local/include -O -pipe
|
|
LFLAGS= -s
|
|
@@ -34,23 +33,53 @@
|
|
utils.o \
|
|
mask.o \
|
|
script.o \
|
|
- wildmat.o
|
|
+ wildmat.o \
|
|
+ ustr.o \
|
|
+ ficl.o \
|
|
+ words.o \
|
|
+ dict.o \
|
|
+ sysdep.o \
|
|
+ math64.o \
|
|
+ vm.o \
|
|
+ stack.o \
|
|
+ softcore.o
|
|
|
|
-%.o: %.c
|
|
+ficl.o: $(SRCDIR)ficl.c
|
|
$(CC) $(CFLAGS) $(CDEFS) $(COPT) -c $<
|
|
|
|
-%.o: $(SRCDIR)%.cpp
|
|
+words.o: $(SRCDIR)words.c
|
|
+ $(CC) $(CFLAGS) $(CDEFS) $(COPT) -c $<
|
|
+
|
|
+dict.o: $(SRCDIR)dict.c
|
|
+ $(CC) $(CFLAGS) $(CDEFS) $(COPT) -c $<
|
|
+
|
|
+sysdep.o: $(SRCDIR)sysdep.c
|
|
+ $(CC) $(CFLAGS) $(CDEFS) $(COPT) -c $<
|
|
+
|
|
+math64.o: $(SRCDIR)math64.c
|
|
$(CC) $(CFLAGS) $(CDEFS) $(COPT) -c $<
|
|
|
|
-$(SRCDIR)cfg.cpp: $(SRCDIR)cfg.y
|
|
- bison -l -d $< -o $(SRCDIR)cfg.tab
|
|
- mv $(SRCDIR)cfg.tab $(SRCDIR)cfg.cpp
|
|
+vm.o: $(SRCDIR)vm.c
|
|
+ $(CC) $(CFLAGS) $(CDEFS) $(COPT) -c $<
|
|
+
|
|
+stack.o: $(SRCDIR)stack.c
|
|
+ $(CC) $(CFLAGS) $(CDEFS) $(COPT) -c $<
|
|
+
|
|
+softcore.o: $(SRCDIR)softcore.c
|
|
+ $(CC) $(CFLAGS) $(CDEFS) $(COPT) -c $<
|
|
+
|
|
+%.o: $(SRCDIR)%.cpp
|
|
+ $(CXX) $(CFLAGS) $(CDEFS) $(COPT) -c $<
|
|
+
|
|
+#$(SRCDIR)cfg.cpp: $(SRCDIR)cfg.y
|
|
+# bison -l -d $< -o $(SRCDIR)cfg.tab
|
|
+# mv $(SRCDIR)cfg.tab $(SRCDIR)cfg.cpp
|
|
|
|
# Thunderbirds are go!
|
|
|
|
|
|
ftrack: $(OBJS)
|
|
- $(CC) $(LFLAGS) -o ftrack $(OBJS) -L/usr/local/lib -lsmapi `perl -MExtUtils::Embed -e ccopts -e ldopts`
|
|
+ $(CXX) $(LFLAGS) -o ftrack $(OBJS) -L/usr/local/lib -lsmapi `perl -MExtUtils::Embed -e ccopts -e ldopts`
|
|
|
|
clean:
|
|
-rm -f *.o
|