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)
25 lines
693 B
Text
25 lines
693 B
Text
--- Makefile.orig Wed Oct 11 17:32:13 2000
|
|
+++ Makefile Fri Nov 24 16:02:54 2006
|
|
@@ -1,18 +1,18 @@
|
|
all: game
|
|
|
|
-CC = gcc
|
|
-XLIB = -L/usr/X11R6/lib -I/usr/X11R6/include
|
|
+CC?= gcc
|
|
+XLIB = -L$(LOCALBASE)/lib -I$(LOCALBASE)/include
|
|
LIBS = -lm -lX11
|
|
OBJS = game.o aliens.o player.o effects.o \
|
|
object.o camera.o main-x11.o vec4x1.o mat4x4.o
|
|
DEPENDS =
|
|
#CFLAGS = -g -Wall -pedantic -ansi
|
|
-CFLAGS = -ansi
|
|
+CFLAGS+= -ansi
|
|
#OPTIONS = -D_GNU_SOURCE -DGAME_LINUX_X11 -DGAME_DEBUG
|
|
OPTIONS= -DGAME_LINUX_X11
|
|
|
|
.c.o: $(DEPENDS)
|
|
- $(CC) -c $(CFLAGS) $(OPTIONS) $< -o $@
|
|
+ $(CC) -c $(CFLAGS) $(OPTIONS) $(XLIB) $< -o $@
|
|
|
|
game: $(OBJS) $(DEPENDS)
|
|
$(CC) -o xinv3d $(OBJS) $(XLIB) $(LIBS) $(OPTIONS)
|