summaryrefslogtreecommitdiff
path: root/data/libdict/tools.diff
blob: 16f469f2088bfd0f0bee83fe88c58af9e2e1805f (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
diff -ru libdict-0.9/src/examples/Makefile libdict-0.9+iPhone/src/examples/Makefile
--- libdict-0.9/src/examples/Makefile	2002-03-14 17:23:04.000000000 +0000
+++ libdict-0.9+iPhone/src/examples/Makefile	2008-01-01 23:32:52.000000000 +0000
@@ -7,8 +7,8 @@
 all: dictcli cpptest
 
 dictcli:
-	cc -o dictcli dictcli.c ${LIBS} ${CFLAGS} ${CWARN} ${LDFLAGS}
+	$(CC) -o dictcli dictcli.c ${LIBS} ${CFLAGS} ${CWARN} ${LDFLAGS}
 cpptest:
-	c++ -o cpptest cpptest.cpp ${LIBS} ${CFLAGS} ${CWARN} ${LDFLAGS}
+	$(CXX) -o cpptest cpptest.cpp ${LIBS} ${CFLAGS} ${CWARN} ${LDFLAGS}
 clean:
 	rm -f *.o dictcli cpptest *.core
diff -ru libdict-0.9/src/Makefile libdict-0.9+iPhone/src/Makefile
--- libdict-0.9/src/Makefile	2002-03-15 19:10:17.000000000 +0000
+++ libdict-0.9+iPhone/src/Makefile	2008-01-01 23:32:32.000000000 +0000
@@ -18,13 +18,13 @@
 	${CXX} ${CFLAGS} -c libdict-wrap.cpp
 libdict.a: ${OBJ} ${CPPOBJ}
 	rm -f libdict.a
-	ar rc libdict.a *.o
-	ranlib libdict.a
+	arm-apple-darwin-ar rc libdict.a *.o
+	arm-apple-darwin-ranlib libdict.a
 clean: clean-example
 	rm -f *.o *.core core 
 superclean: clean
 	rm -f libdict.a
 example:
-	(cd examples; make)
+	(cd examples; $(MAKE))
 clean-example:
-	(cd examples; make clean)
+	(cd examples; $(MAKE) clean)