Support #1725: Improving pup_stl testing
[charm.git] / examples / charm++ / PUP / Makefile
1 -include ../../common.mk
2 CHARMC=../../../bin/charmc $(OPTS)
3
4 DIRS = \
5   STLPUP \
6
7 TESTDIRS = $(DIRS)
8
9 all: SimplePUP $(foreach i,$(DIRS),build-$i)
10
11 test: test-SimplePUP $(foreach i,$(TESTDIRS),test-$i)
12
13 bgtest: bgtest-SimplePUP $(foreach i,$(TESTDIRS),bgtest-$i)
14
15 clean: $(foreach i,$(DIRS),clean-$i)
16         rm -f *.decl.h *.def.h conv-host *.o SimplePUP charmrun
17
18 $(foreach i,$(DIRS),build-$i):
19         $(MAKE) -C $(subst build-,,$@) all OPTS='$(OPTS)'
20
21 $(foreach i,$(DIRS),test-$i):
22         $(MAKE) -C $(subst test-,,$@) test OPTS='$(OPTS)' TESTOPTS='$(TESTOPTS)'
23
24 $(foreach i,$(DIRS),bgtest-$i):
25         $(MAKE) -C $(subst bgtest-,,$@) bgtest OPTS='$(OPTS)' TESTOPTS='$(TESTOPTS)'
26
27 $(foreach i,$(DIRS),clean-$i):
28         $(MAKE) -C $(subst clean-,,$@) clean OPTS='$(OPTS)'
29
30 SimplePUP: SimplePUP.o
31         $(CHARMC) -language charm++ -o $@ $^
32
33 SimplePUP.decl.h: SimplePUP.ci
34         $(CHARMC) $<
35
36 SimplePUP.o: SimplePUP.C SimplePUP.h SimpleObject.h SimplePUP.decl.h
37         $(CHARMC) -c $<
38
39 test-SimplePUP: SimplePUP
40         $(call run, ./SimplePUP +p4)
41         $(call run, ./SimplePUP +p4)
42
43 bgtest-SimplePUP: SimplePUP
44         $(call run, ./SimplePUP +p4 +x2 +y2 +z1)