summaryrefslogtreecommitdiff
path: root/package/miax/patches/01-cross.patch
blob: 04ec04d78e72753d3c73a3645754223d4476ee22 (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
diff -ruN miax-1.4-old/Makefile miax-1.4-new/Makefile
--- miax.orig/Makefile	2005-04-27 18:56:13.000000000 +0200
+++ miax/Makefile	2013-12-22 09:48:41.000000000 +0100
@@ -1,4 +1,5 @@
-CFLAGS= -Iiax/ -Igsm/inc -DIAXC_IAX2 -DLIBIAX -g -DPOSIXSLEEP -DLINUX -O2 
+OFLAGS= -02 -g
+CFLAGS= -Iiax/ -Igsm/inc $(CPPFLAGS) -DIAXC_IAX2 -DLIBIAX -DPOSIXSLEEP -DLINUX $(OFLAGS)
 SYSLIBS=-lpthread -lm -lbluetooth
 
 
@@ -32,11 +33,10 @@ OBJS=\
 	miax.o
 
 all: $(OBJS)
-	gcc $(OBJS) $(CFLAGS) $(SYSLIBS)  -o miax
-	cp miax /bin/miax
+	$(CC) $(OBJS) $(CFLAGS) $(LDFLAGS) $(SYSLIBS) -o miax
 
 static: $(OBJS) bluetooth.o 
-	gcc $(OBJS) $(CFLAGS) $(SYSLIBS)  -static -o miax
+	$(CC) $(OBJS) $(CFLAGS) $(LDFLAGS) $(SYSLIBS) -static -o miax
 
 clean: 
 	rm -f $(OBJS) miax