Cleanup: Avoid passing XLC parameters to native GCC on Blue Gene
[charm.git] / examples / Makefile
blob689e188cb396918a946898f568e53f227b3815be
1 DIRS = \
2 charm++ \
3 converse \
4 ampi \
5 armci \
6 bigsim \
7 collide \
9 BGDIRS = \
10 charm++ \
11 ampi \
12 armci \
14 TESTDIRS = $(DIRS)
16 all: $(foreach i,$(DIRS),build-$i)
18 test: $(foreach i,$(TESTDIRS),test-$i)
20 bgtest: $(foreach i,$(filter $(BGDIRS),$(TESTDIRS)),bgtest-$i)
22 clean: $(foreach i,$(DIRS),clean-$i)
23 rm -f TAGS #*#
24 rm -f core *~
26 $(foreach i,$(DIRS),build-$i):
27 $(MAKE) -C $(subst build-,,$@) all OPTS='$(OPTS)'
29 $(foreach i,$(DIRS),test-$i):
30 $(MAKE) -C $(subst test-,,$@) test OPTS='$(OPTS)' TESTOPTS='$(TESTOPTS)'
32 $(foreach i,$(DIRS),bgtest-$i):
33 $(MAKE) -C $(subst bgtest-,,$@) bgtest OPTS='$(OPTS)' TESTOPTS='$(TESTOPTS)'
35 $(foreach i,$(DIRS),clean-$i):
36 $(MAKE) -C $(subst clean-,,$@) clean OPTS='$(OPTS)'