-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
35 lines (25 loc) · 1.12 KB
/
makefile
File metadata and controls
35 lines (25 loc) · 1.12 KB
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
# Subdirectories containing a Makefile
SUBDIRS = $(dir $(wildcard */makefile) $(wildcard */*/makefile) $(wildcard */*/*/makefile) $(wildcard */Makefile))
.PHONY: all allWithInstrumentation clean doxygen cleandoxygen ${SUBDIRS}
usage:
@echo Possible make targets :
@echo " - all : compile the middleware library and its tests"
@echo " - allWithInstrumentation : compile the middleware library and its tests, with instrumentation code (which slows down the library, but allows fine-grained performance measures)"
@echo " - clean : remove all temporary files"
@echo " - doxygen : generate the doxygen doc in doc/doxygen"
@echo " - cleandoxygen : remove the doc/doxygen directory"
all: WHATTODO=all
all: ${SUBDIRS}
allWithInstrumentation: WHATTODO=allWithInstrumentation
allWithInstrumentation: $(SUBDIRS)
clean: WHATTODO=clean
clean: ${SUBDIRS}
for i in '*'~ '*'.bak '*'.tmp; do find . -iname $$i -exec rm -f '{}' \+; done
rm -f *~ *.bak *.tmp
rm -rf lib
doxygen:
doxygen doxy.conf
cleandoxygen:
rm -rf doc/doxygen
${SUBDIRS}:
${MAKE} -C $@ ${WHATTODO}