summaryrefslogtreecommitdiff
path: root/games/glmaze/files/patch-Makefile
blob: e6423f4c62aeec7807cc449b4b6eb62bba8a5022 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- 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${X11BASE}/include -DVERSION=\"$(VERSION)\" $(SDL_FLAGS) -c -o $@ $<
 
 glmaze: $(OBJECTS)
-	$(CC) $(OBJECTS) -o $@ $(SDL_LIBS) -lGL -lGLU -lm 
+	$(CC) $(LDFLAGS) $(OBJECTS) -o $@ -L${X11BASE}/lib $(SDL_LIBS) -lGL -lGLU -lm 
 
 clean:
 	@echo Cleaning up...