build: Don't create the lib_so folder if --build-shared is not specified
[charm.git] / examples / charm++ / Makefile
blobd4a8071e11a35b150bcba34b055232035e4153bb
1 DIRS = \
2 allToAll \
3 ckcallback \
4 cksequence \
5 completion \
6 fib \
7 groupsection \
8 hello \
9 immediateEntryMethod \
10 integrate \
11 integratePUPable \
12 integrateArray \
13 jacobi2d-1d-decomposition \
14 jacobi2d-2d-decomposition \
15 jacobi3d-2d-decomposition \
16 kmeans \
17 leanmd \
18 load_balancing \
19 manyToMany \
20 matmul \
21 namespace \
22 piArray \
23 PUP \
24 NQueen \
25 reductions \
26 ring \
27 rings \
28 speeds \
29 sync_square \
30 threaded_ring \
31 TRAM \
32 zerocopy \
34 BGDIRS = \
35 hello \
36 integrate \
37 integratePUPable \
38 integrateArray \
39 load_balancing \
40 piArray \
41 PUP \
42 NQueen \
43 reductions \
44 ring \
45 rings \
46 speeds \
48 TESTDIRS = $(DIRS)
50 all: $(foreach i,$(DIRS),build-$i)
52 test: $(foreach i,$(TESTDIRS),test-$i)
54 bgtest: $(foreach i,$(filter $(BGDIRS),$(TESTDIRS)),bgtest-$i)
56 clean: $(foreach i,$(DIRS),clean-$i)
57 rm -f TAGS #*#
58 rm -f core *~
60 $(foreach i,$(DIRS),build-$i):
61 $(MAKE) -C $(subst build-,,$@) all OPTS='$(OPTS)'
63 $(foreach i,$(DIRS),test-$i):
64 $(MAKE) -C $(subst test-,,$@) test OPTS='$(OPTS)' TESTOPTS='$(TESTOPTS)'
66 $(foreach i,$(DIRS),bgtest-$i):
67 $(MAKE) -C $(subst bgtest-,,$@) bgtest OPTS='$(OPTS)' TESTOPTS='$(TESTOPTS)'
69 $(foreach i,$(DIRS),clean-$i):
70 $(MAKE) -C $(subst clean-,,$@) clean OPTS='$(OPTS)'