aboutsummaryrefslogtreecommitdiff
path: root/games/hex/files/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'games/hex/files/patch-ac')
-rw-r--r--games/hex/files/patch-ac17
1 files changed, 11 insertions, 6 deletions
diff --git a/games/hex/files/patch-ac b/games/hex/files/patch-ac
index 379521b6dbb7..7936e63d64a1 100644
--- a/games/hex/files/patch-ac
+++ b/games/hex/files/patch-ac
@@ -1,21 +1,26 @@
---- Makefile.orig Fri Aug 13 20:42:49 1999
-+++ Makefile Fri Aug 13 20:43:18 1999
-@@ -1,4 +1,4 @@
+--- Makefile.orig Fri Aug 6 20:56:10 1999
++++ Makefile Wed Aug 9 03:01:56 2000
+@@ -1,16 +1,19 @@
-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)
-@@ -7,10 +7,10 @@
+-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`
+
all: hex
.c.o:
- $(CC) `gtk-config --cflags` -c $*.c -o $*.o
-+ $(CC) $(CFLAGS) `$(GTK_CONFIG) --cflags` -c $*.c -o $*.o
++ $(CC) $(CFLAGS) $(GDK_IMLIB_CFLAGS) -c $*.c -o $*.o
hex: $(OBJS)
- $(CC) $(LIBS) `gtk-config --libs` $(OBJS) -o $@
-+ $(CC) $(LIBS) `$(GTK_CONFIG) --libs` $(OBJS) -o $@
++ $(CC) $(LIBS) $(GDK_IMLIB_LIBS) $(OBJS) -o $@
clean:
rm -f *~ *.o hex