mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
baf470f2da
Port build now with both gcc 2.95.4 and 3.3.1. It also respects CFLAGS, which it didn't before. PR: ports/55733 Submitted by: Simon Barner <barner@in.tum.de>
52 lines
1.2 KiB
Plaintext
52 lines
1.2 KiB
Plaintext
--- Xmakefile.orig Fri Jan 31 23:47:59 1997
|
|
+++ Xmakefile Tue Aug 19 11:56:52 2003
|
|
@@ -77,17 +77,27 @@
|
|
#UILFLAGS=-I/usr/include/uil -I/usr/include/Motif1.2/uil
|
|
###
|
|
|
|
+## FreeBSD
|
|
+##
|
|
+XINCLUDES=-I$(X11BASE)/include
|
|
+UILFLAGS=
|
|
+CFLAGS+= -fhandle-exceptions -fno-for-scope
|
|
+CXXFLAGS+= $(XINCLUDES)
|
|
+LDFLAGS+=-L$(X11BASE)/lib
|
|
+LDLIBS=
|
|
+MOTIFLIBS=-lXm -lXmu -lXt -lX11 ${MOTIFLIB}
|
|
+
|
|
#LDLIBS = -lPW
|
|
# Program configuration
|
|
# ---------------------
|
|
|
|
-LDFLAGS = ${XLIBS} $(MRMLIBS)
|
|
-MOTIFLIBS = -lXm -lXmu -lXt -lX11
|
|
+#LDFLAGS = ${XLIBS} $(MRMLIBS)
|
|
+#MOTIFLIBS = -lXm -lXmu -lXt -lX11
|
|
|
|
-CFLAGS= -g -I. ${XINCLUDES} $(UILFLAGS)
|
|
-CCFLAGS=${CFLAGS}
|
|
+#CFLAGS+= ${XINCLUDES} $(UILFLAGS)
|
|
+#CCFLAGS=${CFLAGS}
|
|
|
|
-UIL=uil
|
|
+#UIL=uil
|
|
|
|
#MOTIFLIBS = -lXm -lXt -lX11 -lPW
|
|
|
|
@@ -122,7 +132,7 @@
|
|
|
|
CaribbeanStud: $(OBJS)
|
|
rm -f $@
|
|
- $(CCC) $(CCFLAGS) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS) $(MOTIFLIBS)
|
|
+ $(CXX) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS) $(MOTIFLIBS)
|
|
|
|
depend:: $(SRCS) $(HEADERS)
|
|
makedepend $(CFLAGS) $(CPPFLAGS) -- $(ALLDEFINES) -- $(SRCS)
|
|
@@ -134,5 +144,5 @@
|
|
|
|
.SUFFIXES: .cpp $(SUFFIXES)
|
|
.cpp.o:
|
|
- $(COMPILE.cc) $(OUTPUT_OPTION) $<
|
|
+ $(CXX) -c $(CXXFLAGS) $(OUTPUT_OPTION) $<
|
|
|