Modularize the Isomalloc stress test
[charm.git] / tests / ampi / Makefile
blobc42228d761acd1d23393a86218c79bbda61d46a3
1 -include ../../include/conv-mach-opt.mak
3 DIRS = \
4 megampi \
5 stacksize \
6 migration \
7 intercomm_coll \
8 datatype \
9 privatization \
10 jacobi3d \
11 # chkpt \
13 ifeq ($(BUILD_MPICH_TESTS),true)
14 DIRS += mpich-test
15 endif
17 NOBGDIRS = \
18 intercomm_coll \
19 privatization \
21 FTDIRS = \
22 jacobi3d
24 TESTDIRS = $(filter-out $(FTDIRS),$(DIRS))
27 all: $(foreach i,$(DIRS),build-$i)
29 test: $(foreach i,$(TESTDIRS),test-$i)
31 bgtest: $(foreach i,$(filter-out $(NOBGDIRS),$(TESTDIRS)),bgtest-$i)
33 syncfttest causalfttest: $(foreach i,$(filter $(FTDIRS),$(DIRS)),test-$i)
35 mpisyncfttest mlogfttest:
37 clean: $(foreach i,$(DIRS),clean-$i)
38 rm -f TAGS #*#
39 rm -f core *~
41 $(foreach i,$(DIRS),build-$i):
42 $(MAKE) -C $(subst build-,,$@) all OPTS='$(OPTS)'
44 $(foreach i,$(DIRS),test-$i):
45 $(MAKE) -C $(subst test-,,$@) test OPTS='$(OPTS)' TESTOPTS='$(TESTOPTS)'
47 $(foreach i,$(DIRS),bgtest-$i):
48 $(MAKE) -C $(subst bgtest-,,$@) bgtest OPTS='$(OPTS)' TESTOPTS='$(TESTOPTS)'
50 $(foreach i,$(DIRS),clean-$i):
51 $(MAKE) -C $(subst clean-,,$@) clean OPTS='$(OPTS)'
54 # additional dependencies
56 mpich-test/Makefile:
57 cd mpich-test && ./configure.sh && cd ..
59 build-mpich-test: mpich-test/Makefile
60 test-mpich-test: mpich-test/Makefile
61 bgtest-mpich-test: mpich-test/Makefile