summaryrefslogtreecommitdiff
path: root/recipes/comprec/comprec-0.02/makefile.patch
blob: 9693351aa91dbd1abdd02697ab6e87acf91fae8c (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

#
# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
#

--- comprec-0.02/Makefile~makefile	2003-02-16 16:53:11.000000000 -0500
+++ comprec-0.02/Makefile	2004-03-04 03:38:50.000000000 -0500
@@ -1,12 +1,15 @@
-ZROOT=/home/zaurus/develop
-CC_NATIVE=gcc
-CC=$(ZROOT)/arm/bin/arm-linux-gcc
-AS=$(ZROOT)/arm/bin/arm-v4l-linux-as
-STRIP=$(ZROOT)/arm/bin/arm-v4l-linux-strip
+BUILD_CC=gcc
+CC=$(BUILD_CC)
+AS=as
+LD=ld
+STRIP=strip
 IPKG_BUILD=./ipkg-build
 
-CFLAGS+=-Wall -O2 -fno-exceptions -g
-LDFLAGS+=-lm -g
+CFLAGS=-Wall -O2 -fno-exceptions
+LDFLAGS=
+LIBS=-lm
+BUILD_CFLAGS=$(CFLAGS)
+BUILD_LDFLAGS=$(LDFLAGS)
 
 VERSION=0.02
 
@@ -22,17 +25,17 @@
 	comprec0.png comprec.desktop
 
 shine: table1.h table2.h $(OBJECTS) 
-	$(CC) -o $@ $(OBJECTS) $(LDFLAGS)
+	$(CC) -o $@ $(LDFLAGS) $(LIBS) $(OBJECTS)
 	$(STRIP) $@
 
 Maindlg.py: Maindlg.ui
 	pyuic Maindlg.ui > Maindlg.py
 
 table1.h table2.h: tables
-	tables
+	./tables
 
 tables: tables.c
-	$(CC_NATIVE) -o $@ $(CFLAGS) $< -lm
+	$(BUILD_CC) -o $@ $(BUILD_CFLAGS) $(BUILD_LDFLAGS) $(LIBS) $<
 
 clean:
 	rm -f $(OBJECTS) shine .depend