-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
99 lines (69 loc) · 2.32 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# This is the makefile for REVOCAP_PrePost (mesh module).
#
# please edit OPTIONS file for the environmental information and macros.
include OPTIONS
include MakefileConfig.in
include MakefileRuby.in
include MakefileRefiner.in
export ARCH
export CXXFLAG
export DATE = $(shell date +%Y%m%d)
LIBDIR = lib
clib: Common Matrix Geometry MeshDB MeshGen MeshGL RevocapIO Shape
.PHONY: clean Common Geometry MeshDB MeshGen MeshGL RevocapIO Shape clib force arch
Common: $(LIBDIR)/$(ARCH) $(LIBDIR)/$(ARCH)/libRcapCommon.a
$(LIBDIR)/$(ARCH)/libRcapCommon.a: force
cd Common && $(MAKE) static
Matrix: Common $(LIBDIR)/$(ARCH)/libRcapMatrix.a
$(LIBDIR)/$(ARCH)/libRcapMatrix.a: force
cd Matrix && $(MAKE) static
Geometry: Matrix Common $(LIBDIR)/$(ARCH)/libRcapGeometry.a
$(LIBDIR)/$(ARCH)/libRcapGeometry.a: force
cd Geometry && $(MAKE) static
MeshDB: $(LIBDIR)/$(ARCH)/libRcapMeshDB.a
$(LIBDIR)/$(ARCH)/libRcapMeshDB.a: Geometry
cd MeshDB && $(MAKE) static
MeshGen: MeshDB $(LIBDIR)/$(ARCH)/libRcapMeshGen.a
$(LIBDIR)/$(ARCH)/libRcapMeshGen.a: force
cd MeshGen && $(MAKE) static
MeshGL: MeshDB $(LIBDIR)/$(ARCH)/libRcapMeshGL.a
$(LIBDIR)/$(ARCH)/libRcapMeshGL.a: force
cd MeshGL && $(MAKE) static
RevocapIO: MeshDB $(LIBDIR)/$(ARCH)/libRcapIO.a
$(LIBDIR)/$(ARCH)/libRcapIO.a: force
cd RevocapIO && $(MAKE) static
Shape: MeshDB $(LIBDIR)/$(ARCH)/libRcapShape.a
$(LIBDIR)/$(ARCH)/libRcapShape.a: force
cd Shape && $(MAKE) static
clean:
cd Common && $(MAKE) clean
cd Matrix && $(MAKE) clean
cd Geometry && $(MAKE) clean
cd MeshDB && $(MAKE) clean
cd MeshGen && $(MAKE) clean
@if [ -d MeshGL ]; then cd MeshGL && $(MAKE) clean; fi;
@if [ -d Refiner ]; then $(MAKE) -f Refiner/Makefile clean; fi;
cd RevocapIO && $(MAKE) clean
cd Shape && $(MAKE) clean
@if [ -d test ]; then cd test && $(MAKE) clean; fi;
$(LIBDIR)/$(ARCH):
@if [ ! -d $(LIBDIR) ]; then mkdir $(LIBDIR); fi;
@if [ ! -d $(LIBDIR)/$(ARCH) ]; then mkdir $(LIBDIR)/$(ARCH); fi;
.cpp.o:
$(CXX) $(CXXFLAGS) $(CFLAGS) -c $<
.cc.o:
$(CXX) $(CXXFLAGS) $(CFLAGS) -c $<
doc: force
$(DOXYGEN) Documents/Doxyfile
test: force
cd Common $$ $(MAKE) static
cd Matrix && $(MAKE) static
cd Geometry && $(MAKE) static
cd MeshDB && $(MAKE) static
cd MeshGen && $(MAKE) static
cd RevocapIO && $(MAKE) static
cd Shape && $(MAKE) static
cd test && $(MAKE) main
force: ;
arch:
@echo $(ARCH)