forked from nasailja/pamhd
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
52 lines (40 loc) · 1.19 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
# 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++17 -W -Wall -Wextra -pedantic -O3 -Wno-deprecated-copy -Wno-deprecated-declarations
CPPFLAGS = -I source
include $(ENVIRONMENT_MAKEFILE)
# filled by project makefiles
EXECUTABLES =
TESTS =
RESULTS =
CLEAN =
default: all
include \
tests/prettyprint/project_makefile \
tests/grid/project_makefile \
tests/muparserx/project_makefile \
tests/mhd/project_makefile \
tests/boundaries/project_makefile \
tests/divergence/project_makefile \
tests/math/project_makefile \
tests/particle/project_makefile \
tests/pamhd/project_makefile \
tests/poisson/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 $@