mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
ce934b1967
- fix some C++ problems - mark BROKEN on FreeBSD10, no gcc 4.2
46 lines
1.0 KiB
Makefile
46 lines
1.0 KiB
Makefile
--- spunk/make/freebsd.mak.orig 1996-11-24 22:33:26.000000000 +0100
|
|
+++ spunk/make/freebsd.mak 2014-03-28 16:25:12.000000000 +0100
|
|
@@ -27,10 +27,10 @@
|
|
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 @@
|
|
# 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 @@
|
|
|
|
depend dep:
|
|
@echo "Creating dependency information"
|
|
- $(CC) -DFREEBSD -MM *.cc > .depend
|
|
+ $(CC) ${CFLAGS} -MM *.cc > .depend
|
|
|
|
# ------------------------------------------------------------------------------
|
|
# Target specific files
|
|
@@ -196,9 +196,10 @@
|
|
|
|
clean:
|
|
-rm -f *~ linuxsrc/*~ bsdsrc/*~ unixsrc/*~
|
|
+ -rm -f *.o
|
|
+ -rm -f resed $(LIB) $(ZIPFILE)
|
|
|
|
zap: clean
|
|
- -rm -f *.o
|
|
-rm -f .depend
|
|
|
|
|