blob: 3322265f3228906b9e56dd7e8f0ae8ae98009133 (
plain) (
tree)
|
|
--- Makefile.orig Tue Dec 7 00:19:16 1999
+++ Makefile Sat Dec 23 13:31:45 2000
@@ -11,35 +11,38 @@
#
#customize to fit your needs (it does not work for now).
-architecture=-DPC_ARCHI
+#architecture=-DPC_ARCHI
+module_path=-DMODULE_PATH=\"${PREFIX}/share/rubix\"
#SOLARIS=-lsocket
-CC=gcc
-CFLAGS=-Wall -O3 -fomit-frame-pointer -ffast-math -Iplayer \
- $(architecture)
+CC?=gcc
+CFLAGS+=-Iplayer \
+ $(architecture) $(module_path)
#CFLAGS=-Wall -g -ffast-math -Iplayer \
# $(architecture)
-XINC=-I/usr/X11R6/include
-XLIB=-L/usr/X11R6/lib -lX11
+XINC=-I${X11BASE}/include
+XLIB=-L${X11BASE}/lib -lX11
#the following should not be changed.
OBJ=cube.o event.o fillpoly.o line.o main.o screen.o sound.o player/player.a
+all: rubix
+
rubix : $(OBJ)
$(CC) $(CFLAGS) -o $@ $^ -lm $(XLIB) $(SOLARIS)
# strip rubix
clean :
rm -f *.o *~ core *.bak *.dat gmon.out
- (cd player; make clean)
+ (cd player; $(MAKE) clean)
dep :
- makedepend -Y *.c -s"#I like the GNU tools" -Iplayer
+# makedepend -Y *.c -s"#I like the GNU tools" -Iplayer
player/player.a : player/*.c player/*.h
- (cd player; make)
+ (cd player; $(MAKE))
%.o : %.c
$(CC) $(CFLAGS) $(XINC) -c -o $@ $<
|