summaryrefslogtreecommitdiff
path: root/packages/gsoko/gsoko-0.4.2-gpe5/fix_makefiles.patch
blob: 8c6ba2aad6c79d10c0ac6fae00f3390b3fc36dce (plain)
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
diff -urNd ../gsoko-0.4.2-gpe5-r0/gsoko-0.4.2-gpe5/Makefile gsoko-0.4.2-gpe5/Makefile
--- ../gsoko-0.4.2-gpe5-r0/gsoko-0.4.2-gpe5/Makefile	2004-09-18 00:03:00.000000000 +0100
+++ gsoko-0.4.2-gpe5/Makefile	2004-09-20 20:14:46.000000000 +0100
@@ -1,16 +1,21 @@
 
-PACKAGE_CFLAGS = -Wall $(GPECFLAGS) $(GTKCFLAGS) -DPREFIX=\"$(PREFIX)\"
+PACKAGE_CFLAGS += $(STANDARD_CFLAGS) $(GPECFLAGS) $(GTKCFLAGS) -DPREFIX=\"$(PREFIX)\"
+PACKAGE_LDFLAGS += $(STANDARD_LDFLAGS) $(GPELIBS)
 OBJS = control.o game.o gfx.o gsoko.o init.o interface.o move.o
 VERSION = 0.4.2-gpe5
 PACKAGE = gsoko
 
-PREFIX = /usr/local
-BUILD = ../../base/build
+PREFIX = /usr
+ifeq ($(CVSBUILD),yes)
+BUILD = ../build
+else
+BUILD = build
+endif
 
 all:	gsoko
 
 gsoko:	$(OBJS)
-	$(CC) $(CFLAGS) $(PACKAGE_CFLAGS) -o $@ $(OBJS) `pkg-config --libs gtk+-2.0`
+	$(CC) $(CFLAGS) $(PACKAGE_CFLAGS) -o $@ $(OBJS) $(LDFLAGS) $(PACKAGE_LDFLAGS)
 
 clean:
 	rm -f *.o