-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
54 lines (42 loc) · 1.26 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
# to compile and test pick one makefile from makefiles directory
# or write a new one for your environment
ENVIRONMENT_MAKEFILE = makefiles/homedir
#
# The lines below are not intended to be modified by users
#
CXXFLAGS = -std=c++11 -W -Wall -Wextra -pedantic -O3 -DBOOST_SYSTEM_NO_DEPRECATED
CPPFLAGS = -I source
include $(ENVIRONMENT_MAKEFILE)
# filled by project makefiles
EXECUTABLES =
TESTS =
RESULTS =
CLEAN =
default: all
include \
tests/prettyprint/project_makefile \
tests/grid_options/project_makefile \
tests/volume_range/project_makefile \
tests/muparserx/project_makefile \
tests/mhd/project_makefile \
tests/program_options/project_makefile \
tests/boundaries/project_makefile \
tests/divergence/project_makefile \
tests/particle/project_makefile \
tests/pamhd/project_makefile \
tests/poisson/project_makefile \
tests/vectorclass/project_makefile \
tests/interpolate/project_makefile
all: $(EXECUTABLES)
t: test
test: all $(TESTS)
# removes simulation results
r: results
results: $(RESULTS)
c: clean
clean: results $(CLEAN)
# Rules to run tests common to all projects
%.tst: %.exe
@printf RUN\ $<...\ \ && $(RUN) ./$< && printf "PASS\n" && touch $@
%.mtst: %.exe
@printf MPIRUN\ $<...\ \ && $(MPIRUN) ./$< && printf "PASS\n" && touch $@