3e4ed01146
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG - Remove X11BASE support in favor of LOCALBASE or PREFIX - Use USE_LDCONFIG instead of INSTALLS_SHLIB - Remove unneeded USE_GCC 3.4+ Thanks to all Helpers: Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr, ehaupt, nox, itetcu, flz, pav PR: 116263 Tested on: pointyhat Approved by: portmgr (pav)
18 lines
697 B
Text
18 lines
697 B
Text
--- Makefile.orig Tue Dec 30 05:30:25 1997
|
|
+++ Makefile Mon Jul 1 02:25:43 2002
|
|
@@ -1,10 +1,13 @@
|
|
OBJS = main.o mymath.o mastermind.o guiglobal.o apptogui.o guitoapp.o mainwindowdesign.o
|
|
|
|
CC = gcc
|
|
-CFLAGS = -O2 -Wall -Wpointer-arith -Wstrict-prototypes -pedantic -ansi
|
|
+.if exists(${LOCALBASE}/include/X11/forms.h)
|
|
+XFORMSINC=-I${LOCALBASE}/include/X11
|
|
+.endif
|
|
+CFLAGS+= -Wall -Wpointer-arith -Wstrict-prototypes -pedantic -ansi -I${LOCALBASE}/include ${XFORMSINC}
|
|
CLIBS = -lm
|
|
#GRAPHLIBS = -lforms -L/usr/X11R6/lib/ -lX11 -static
|
|
-GRAPHLIBS = -lforms -L/usr/X11R6/lib/ -lX11
|
|
+GRAPHLIBS = -lforms -L${LOCALBASE}/lib -lX11 -lXpm
|
|
MF = Makefile
|
|
|
|
ALLLIBS = $(GRAPHLIBS) $(CLIBS)
|