-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.generic
42 lines (41 loc) · 1.24 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
38
39
40
41
.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
show-tool-versions:
${CC} -v
${LD} -V
${MAKE} -v 2>/dev/null || echo ${MAKE} ${MAKE_VERSION}