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)
39 lines
1.0 KiB
Plaintext
39 lines
1.0 KiB
Plaintext
--- Makefile.orig Wed Jan 23 06:44:46 2002
|
|
+++ Makefile Tue Jun 17 23:14:54 2003
|
|
@@ -1,17 +1,17 @@
|
|
-CC = gcc -O2 -ffast-math -Wall
|
|
+#CC = gcc -O2 -ffast-math -Wall
|
|
|
|
VERSION = "1.1a"
|
|
|
|
-DESTPATH = /usr/local
|
|
+DESTPATH = ${PREFIX}
|
|
BINPATH = $(DESTPATH)/bin
|
|
-GAMEPATH = $(DESTPATH)/games/glMaze
|
|
+GAMEPATH = $(DESTPATH)/share/glmaze
|
|
MANPATH = $(DESTPATH)/man/man1
|
|
|
|
OBJECTS = load_maze.o main.o controls.o shot.o player.o net.o \
|
|
username.o radar.o prefs.o sound.o
|
|
|
|
-SDL_FLAGS=`sdl-config --cflags`
|
|
-SDL_LIBS=`sdl-config --libs`
|
|
+SDL_FLAGS=`sdl-config --cflags`
|
|
+SDL_LIBS=`sdl-config --libs`
|
|
|
|
# comment the follwing if you don't want sound
|
|
CC += -DSOUND
|
|
@@ -31,10 +31,10 @@
|
|
prefs.o: prefs.c maze.h
|
|
|
|
.c.o:
|
|
- $(CC) -DVERSION=\"$(VERSION)\" $(SDL_FLAGS) -c -o $@ $<
|
|
+ $(CC) $(CFLAGS) -I${LOCALBASE}/include -DVERSION=\"$(VERSION)\" $(SDL_FLAGS) -c -o $@ $<
|
|
|
|
glmaze: $(OBJECTS)
|
|
- $(CC) $(OBJECTS) -o $@ $(SDL_LIBS) -lGL -lGLU -lm
|
|
+ $(CC) $(LDFLAGS) $(OBJECTS) -o $@ -L${LOCALBASE}/lib $(SDL_LIBS) -lGL -lGLU -lm
|
|
|
|
clean:
|
|
@echo Cleaning up...
|