Lines 1-50
Link Here
|
1 |
--- Makefile.orig Tue Dec 7 00:19:16 1999 |
|
|
2 |
+++ Makefile Sat Dec 23 13:31:45 2000 |
3 |
@@ -11,35 +11,38 @@ |
4 |
# |
5 |
|
6 |
#customize to fit your needs (it does not work for now). |
7 |
-architecture=-DPC_ARCHI |
8 |
+#architecture=-DPC_ARCHI |
9 |
+module_path=-DMODULE_PATH=\"${PREFIX}/share/rubix\" |
10 |
|
11 |
#SOLARIS=-lsocket |
12 |
|
13 |
-CC=gcc |
14 |
-CFLAGS=-Wall -O3 -fomit-frame-pointer -ffast-math -Iplayer \ |
15 |
- $(architecture) |
16 |
+CC?=gcc |
17 |
+CFLAGS+=-Iplayer \ |
18 |
+ $(architecture) $(module_path) |
19 |
#CFLAGS=-Wall -g -ffast-math -Iplayer \ |
20 |
# $(architecture) |
21 |
-XINC=-I/usr/X11R6/include |
22 |
-XLIB=-L/usr/X11R6/lib -lX11 |
23 |
+XINC=-I${X11BASE}/include |
24 |
+XLIB=-L${X11BASE}/lib -lX11 |
25 |
|
26 |
#the following should not be changed. |
27 |
|
28 |
OBJ=cube.o event.o fillpoly.o line.o main.o screen.o sound.o player/player.a |
29 |
|
30 |
+all: rubix |
31 |
+ |
32 |
rubix : $(OBJ) |
33 |
$(CC) $(CFLAGS) -o $@ $^ -lm $(XLIB) $(SOLARIS) |
34 |
# strip rubix |
35 |
|
36 |
clean : |
37 |
rm -f *.o *~ core *.bak *.dat gmon.out |
38 |
- (cd player; make clean) |
39 |
+ (cd player; $(MAKE) clean) |
40 |
|
41 |
dep : |
42 |
- makedepend -Y *.c -s"#I like the GNU tools" -Iplayer |
43 |
+# makedepend -Y *.c -s"#I like the GNU tools" -Iplayer |
44 |
|
45 |
player/player.a : player/*.c player/*.h |
46 |
- (cd player; make) |
47 |
+ (cd player; $(MAKE)) |
48 |
|
49 |
%.o : %.c |
50 |
$(CC) $(CFLAGS) $(XINC) -c -o $@ $< |