summaryrefslogtreecommitdiffstats
path: root/astro/roadmap/files/patch-gtk-Makefile
blob: 54ee8de0adc0758a57f534f6783975111a19d962 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
--- src/gtk/Makefile.orig	Tue May 25 07:28:15 2004
+++ src/gtk/Makefile	Mon Jun  7 00:25:58 2004
@@ -1,12 +1,12 @@
 
-GUICFLAGS=`gtk-config --cflags`
-GUILDFLAGS=`gtk-config --libs`
+GUICFLAGS=`${GTK_CONFIG} --cflags`
+GUILDFLAGS=`${GTK_CONFIG} --libs`
 
-STDCFLAGS=-O2 -ffast-math -fomit-frame-pointer -g -Wall
+STDCFLAGS=-ffast-math -fomit-frame-pointer -Wall -I${LOCALBASE}/include
 # STDCFLAGS=-g -Wall -DROADMAP_DEBUG_HEAP
 # STDCFLAGS=-g -Wall -pg -fprofile-arcs -g
 
-CFLAGS=$(STDCFLAGS) $(GUICFLAGS) -I..
+CFLAGS+=$(STDCFLAGS) $(GUICFLAGS) -I..
 
 RDMLIBS= ../libroadmap.a libgtkroadmap.a ../unix/libosroadmap.a ../libroadmap.a
 LIBS=$(RDMLIBS) $(GUILDFLAGS) -lm
@@ -24,7 +24,7 @@
 
 RUNTIME=gtkroadgps gtkroadmap
 
-INSTALLDIR=/usr/local
+INSTALLDIR=${LOCALBASE}
 
 
 # --- Conventional targets ----------------------------------------
@@ -32,23 +32,23 @@
 all: runtime
 
 others:
-	make -C .. CFLAGS="$(STDCFLAGS)" runtime
-	make -C .. -C unix CFLAGS="$(STDCFLAGS) -I.." runtime
+	${MAKE} -C .. CFLAGS="$(STDCFLAGS)" runtime
+	${MAKE} -C .. -C unix CFLAGS="$(STDCFLAGS) -I.." runtime
 
 build:
-	make -C .. CFLAGS="$(STDCFLAGS)" build
+	${MAKE} -C .. CFLAGS="$(STDCFLAGS)" build
 
 runtime: others $(RUNTIME)
 
 clean: cleanone
-	make -C .. cleanone
-	make -C .. -C unix cleanone
+	${MAKE} -C .. cleanone
+	${MAKE} -C .. -C unix cleanone
 
 cleanone:
 	rm -f *.o *.a *.da $(RUNTIME)
 
 install: all
-	make -C .. install
+	${MAKE} -C .. install
 	cd $(INSTALLDIR)/bin; rm -f $(RUNTIME) roadmap roadgps
 	cp $(RUNTIME) $(INSTALLDIR)/bin
 	ln -s $(INSTALLDIR)/bin/gtkroadmap $(INSTALLDIR)/bin/roadmap
@@ -57,7 +57,7 @@
 
 uninstall:
 	cd $(INSTALLDIR)/bin ; rm -f $(RUNTIME) roadmap roadgps
-	make -C .. uninstall
+	${MAKE} -C .. uninstall
 
 # --- The real targets --------------------------------------------
 
OpenPOWER on IntegriCloud