-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
55 lines (48 loc) · 1.19 KB
/
makefile
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
######################################################################
# makefile
#
# This makefile assumes that the build environment is already correctly
# configured. (For example, the correct version of your compiler and
# linker should be on the PATH.)
######################################################################
# List the resource directories containing types
RES_DIRS = \
res/types/v1 \
res/types/v2
# List the source code directories that need to be compiled
SRC_DIRS = \
src/c++11/v1/waitset \
\
src/cpp/v1/listener \
src/cpp/v1/polling \
src/cpp/v1/waitset \
\
src/c++11/v2/cft \
src/c++11/v2/cft_xml \
src/c++11/v2/partitions_xml \
src/c++11/v2/waitset_xml \
\
src/cpp/v2/waitset_xml \
src/cpp/v2/cft \
src/cpp/v2/instance \
src/cpp/v2/partitions \
src/cpp/v2/partitions_xml
## Build
all:
for dir in $(RES_DIRS) $(SRC_DIRS); do \
echo; echo $$dir; \
make -C $$dir ; \
done
# Clean
clean:
for dir in $(RES_DIRS) $(SRC_DIRS); do \
echo; echo $$dir; \
make -C $$dir clean; \
done
# Generate makefiles or Visual Studio solutions, e.g.:
# make makefile/x64Darwin17clang9.0
makefile/%:
for dir in $(SRC_DIRS); do \
echo; echo $$dir; \
make -C $$dir makefile/$* ; \
done