forked from dmorse/simpatico
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
82 lines (63 loc) · 2 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
include src/config.mk
# ==============================================================================
.PHONY: mcMd ddMd mcMd-mpi \
test-serial test-parallel \
clean-serial clean-parallel clean clean-bin veryclean \
html clean-html
# ==============================================================================
# Main targets
all:
cd obj/serial; make mcMd
cd obj/parallel; make ddMd
cd obj/parallel; make mcMd-mpi
mcMd:
cd obj/serial; make mcMd
mcMd-mpi:
cd obj/parallel; make mcMd-mpi
ddMd:
cd obj/parallel; make ddMd
# ==============================================================================
# Test targets
test-serial:
@cd obj/serial/util/tests; make all; make run
@cd obj/serial/inter/tests; make all; make run
@cd obj/serial/mcMd/tests; make all; make run
@cat obj/serial/util/tests/count > count
@cat obj/serial/inter/tests/count >> count
@cat obj/serial/mcMd/tests/count >> count
@cat count
@rm -f count
test-parallel:
cd obj/parallel/ddMd/tests; make all; make run
@cat obj/parallel/ddMd/tests/count >> count
@cat count
@rm -f count
# =========================================================================
# Clean targets
clean-serial:
cd obj/serial; make clean
clean-parallel:
cd obj/parallel; make clean
clean:
cd src; make clean
cd obj/serial; make clean
cd obj/parallel; make clean
clean-bin:
-rm -f $(BIN_DIR)/mcSim*
-rm -f $(BIN_DIR)/mdSim*
-rm -f $(BIN_DIR)/ddSim*
veryclean:
cd obj/serial; make veryclean; rm -f makefile configure
cd obj/serial; rm -f util/makefile inter/makefile mcMd/makefile ddMd/makefile
cd obj/parallel; make veryclean; rm -f makefile configure
cd obj/parallel; rm -f util/makefile inter/makefile mcMd/makefile ddMd/makefile
cd doc; make clean
make clean-bin
cd src; make veryclean
# =========================================================================
# HTML Documentation
html:
cd doc; make html
clean-html:
cd doc; make clean
# ==============================================================================