blob: 67d644f1d9e1e3095f66da3ef8ff676e81800c5d (
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
diff -ur ming-0.2a.orig/Makefile ming-0.2a/Makefile
--- ming-0.2a.orig/Makefile 2006-12-09 00:15:45 +0100
+++ ming-0.2a/Makefile 2006-12-09 00:18:27 +0100
@@ -25,16 +25,16 @@
install libming.a ${LIBDIR}/libming.a
dynamic:
- cd src && make dynamic
+ cd src && ${MAKE} dynamic
static:
- cd src && make static
+ cd src && ${MAKE} static
clean:
- cd src && make clean
- cd util && make clean
- cd py_ext && make clean
- cd php_ext && make clean
+ cd src && ${MAKE} clean
+ cd util && ${MAKE} clean
+ cd py_ext && ${MAKE} clean
+ cd php_ext && ${MAKE} clean
rm -f test.o test test.exe *.core
rm -f libming.a libming.so
diff -ur ming-0.2a.orig/php_ext/Makefile ming-0.2a/php_ext/Makefile
--- ming-0.2a.orig/php_ext/Makefile 2006-12-09 00:15:44 +0100
+++ ming-0.2a/php_ext/Makefile 2006-12-09 00:18:30 +0100
@@ -13,7 +13,7 @@
${CC} ${DEFINES} -c ming.c -I. -I.. `php-config --includes`
../libming.a:
- cd ..; make static
+ cd ..; ${MAKE} static
clean:
rm -f php_ming.so
diff -ur ming-0.2a.orig/py_ext/Makefile ming-0.2a/py_ext/Makefile
--- ming-0.2a.orig/py_ext/Makefile 2006-12-09 00:15:44 +0100
+++ ming-0.2a/py_ext/Makefile 2006-12-09 00:18:30 +0100
@@ -18,7 +18,7 @@
gcc -g -Wall -I .. -I ${PYINCDIR} -fpic -c ming_wrap.c
../libming.a:
- cd ..; make static
+ cd ..; ${MAKE} static
swig:
swig -I.. -python ming.i
diff -ur ming-0.2a.orig/src/Makefile ming-0.2a/src/Makefile
--- ming-0.2a.orig/src/Makefile 2006-12-09 00:15:44 +0100
+++ ming-0.2a/src/Makefile 2006-12-09 00:18:30 +0100
@@ -19,22 +19,22 @@
all: dynamic
dynamic: ${OFILES}
- cd blocks && make
- cd actioncompiler && make
+ cd blocks && ${MAKE}
+ cd actioncompiler && ${MAKE}
${CC} ${CFLAGS} ${LDFLAGS} ${OFILES} ${COMPILEROFILES} blocks/*.o -shared \
-o libming.so
cp libming.so ..
static: ${OFILES}
- cd blocks && make
- cd actioncompiler && make
+ cd blocks && ${MAKE}
+ cd actioncompiler && ${MAKE}
ar r libming.a blocks/*.o ${OFILES} ${COMPILEROFILES}
ranlib libming.a # bsd requires this?
cp libming.a ..
clean:
- cd blocks && make clean
- cd actioncompiler && make clean
+ cd blocks && ${MAKE} clean
+ cd actioncompiler && ${MAKE} clean
rm -f *.o libming.a libming.so test test.exe core *.core
# breaks on bsd:
|