forked from zhuomingliang/dyncall
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile.generic
38 lines (37 loc) · 1.15 KB
/
Makefile.generic
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
.PHONY: all clean install tests docs run-tests clean distclean libdyncall libdyncallback libdynload
all: libdyncall libdyncallback libdynload
install: all install-libdyncall install-libdyncallback install-libdynload
libdyncall:
cd dyncall && ${MAKE} all
libdyncallback:
cd dyncallback && ${MAKE} all
libdynload:
cd dynload && ${MAKE} all
install-libdyncall: libdyncall
cd dyncall && ${MAKE} install
install-libdyncallback: libdyncallback
cd dyncallback && ${MAKE} install
install-libdynload: libdynload
cd dynload && ${MAKE} install
clean:
cd dyncall && ${MAKE} $@
cd dynload && ${MAKE} $@
cd dyncallback && ${MAKE} $@
cd test && ${MAKE} $@
cd doc && ${MAKE} $@
tests: tests-libdyncall tests-libdyncallback tests-libdynload
tests-libdyncall: libdyncall
cd test && ${MAKE} all-dyncall
tests-libdyncallback: libdyncallback
cd test && ${MAKE} all-dyncallback
tests-libdynload: libdynload
cd test && ${MAKE} all-dynload
docs:
cd doc && ${MAKE} all
run-tests: all
cd test && ${MAKE} $@
distclean: clean
rm -f Makefile.config
find . -type f -name "Makefile.generic" | sed s/\.generic$$// | xargs rm
show-compiler-predefs:
${CC} ${CFLAGS} -dM -E - < /dev/null