2000-09-05 01:18:48 +00:00
|
|
|
--- Makefile.orig Fri Aug 6 20:56:10 1999
|
|
|
|
+++ Makefile Wed Aug 9 03:01:56 2000
|
|
|
|
@@ -1,16 +1,19 @@
|
1999-08-14 03:52:28 +00:00
|
|
|
-CC = gcc -Wall -O6 -g
|
|
|
|
+#CC = gcc -Wall -O6 -g
|
|
|
|
|
|
|
|
SRCS = main.c levels.c grid.c player.c touching.c gtkstuff.c plot.c graphics.c
|
|
|
|
OBJS = $(SRCS:.c=.o)
|
2000-09-05 01:18:48 +00:00
|
|
|
-LIBS = -lm -lgdk_imlib
|
|
|
|
+CFLAGS += -DGRAPHICPATH=\"${GRAPHICPATH}\" -DLEVELPATH=\"${LEVELPATH}\"
|
|
|
|
+#LIBS = -lm -lgdk_imlib
|
|
|
|
+GDK_IMLIB_CFLAGS = `imlib-config --cflags-gdk`
|
|
|
|
+GDK_IMLIB_LIBS = `imlib-config --libs-gdk`
|
|
|
|
|
1999-08-14 03:52:28 +00:00
|
|
|
all: hex
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
- $(CC) `gtk-config --cflags` -c $*.c -o $*.o
|
2000-09-05 01:18:48 +00:00
|
|
|
+ $(CC) $(CFLAGS) $(GDK_IMLIB_CFLAGS) -c $*.c -o $*.o
|
1999-08-14 03:52:28 +00:00
|
|
|
|
|
|
|
hex: $(OBJS)
|
|
|
|
- $(CC) $(LIBS) `gtk-config --libs` $(OBJS) -o $@
|
2000-09-05 01:18:48 +00:00
|
|
|
+ $(CC) $(LIBS) $(GDK_IMLIB_LIBS) $(OBJS) -o $@
|
1999-08-14 03:52:28 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *~ *.o hex
|