-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
87 lines (74 loc) · 3.08 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
OBJS = CDG.o \
CFA.o \
Limiter.o \
Field.o \
Basis.o \
Grid.o \
Polygon.o \
Triangle.o \
Edge.o \
LinAlg.o \
FLAGS = -O3 -Wall -fopenmp
CC = g++
calcErrorsTest: CalcErrors.o ${OBJS}
${CC} -o calcErrorsTest CalcErrors.o ${OBJS} ${FLAGS}
CalcErrors.o: CalcErrors.cpp Field.o Grid.o Polygon.o Basis.o Triangle.o Edge.o
${CC} -c CalcErrors.cpp ${FLAGS}
cdgTest: CDGTest.o ${OBJS}
${CC} -o cdgTest CDGTest.o ${OBJS} ${FLAGS}
CDGTest.o: CDG.cpp Limiter.o CDG.o LinAlg.o CFA.o Field.o Grid.o Polygon.o Basis.o Triangle.o Edge.o
${CC} -c CDGTest.cpp ${FLAGS}
cfaTest: CFATest.o ${OBJS}
${CC} -o cfaTest CFATest.o ${OBJS} ${FLAGS}
CFATest.o: CFATest.cpp CFA.o Field.o Basis.o Grid.o Polygon.o Triangle.o Edge.o
${CC} -c CFATest.cpp ${FLAGS}
cdgSSTest: CDGSingleCellTest.o ${OBJS}
${CC} -o cdgSSTest CDGSingleCellTest.o ${OBJS} ${FLAGS}
CDGSingleCellTest.o: CDGSingleCellTest.cpp CDG.o CFA.o LinAlg.o Field.o Basis.o Grid.o Polygon.o Triangle.o Edge.o
${CC} -c CDGSingleCellTest.cpp ${FLAGS}
cfaSSTest: CFASingleCellTest.o ${OBJS}
${CC} -o cfaSSTest CFASingleCellTest.o ${OBJS} ${FLAGS}
CFASingleCellTest.o: CFASingleCellTest.cpp CFA.o Field.o Basis.o Grid.o Polygon.o Triangle.o Edge.o
${CC} -c CFASingleCellTest.cpp ${FLAGS}
fieldTest: FieldTest.o ${OBJS}
${CC} -o fieldTest FieldTest.o ${OBJS} ${FLAGS}
FieldTest.o: FieldTest.cpp Field.o Basis.o Grid.o Polygon.o Triangle.o Edge.o
${CC} -c FieldTest.cpp ${FLAGS}
quadTest: QuadTest.o ${OBJS}
${CC} -o quadTest QuadTest.o ${OBJS} ${FLAGS}
QuadTest.o: QuadTest.cpp Field.o Basis.o Grid.o Polygon.o Triangle.o Edge.o
${CC} -c QuadTest.cpp ${FLAGS}
basisTest: BasisTest.o ${OBJS}
${CC} -o basisTest BasisTest.o ${OBJS} ${FLAGS}
BasisTest.o: BasisTest.cpp CDG.o LinAlg.o CFA.o Field.o Basis.o Grid.o Polygon.o Triangle.o Edge.o
${CC} -c BasisTest.cpp ${FLAGS}
gridTest: GridTest.o ${OBJS}
${CC} -o gridTest GridTest.o ${OBJS} ${FLAGS}
GridTest.o: GridTest.cpp Grid.o Polygon.o Triangle.o Edge.o
${CC} -c GridTest.cpp ${FLAGS}
triangleTest: TriangleTest.o ${OBJS}
${CC} -o triangleTest TriangleTest.o ${OBJS} ${FLAGS}
TriangleTest.o: TriangleTest.cpp Triangle.o Edge.o
${CC} -c TriangleTest.cpp ${FLAGS}
CDG.o: CDG.cpp CDG.h LinAlg.o CFA.o Field.o Basis.o Grid.o Polygon.o Triangle.o Edge.o
${CC} -I ./core/ -c CDG.cpp ${FLAGS}
CFA.o: CFA.cpp CFA.h Field.o Basis.o Grid.o Polygon.o Basis.o Triangle.o Edge.o
${CC} -I ./core/ -c CFA.cpp ${FLAGS}
Limiter.o: Limiter.cpp Limiter.h Field.o Basis.o Grid.o Polygon.o Triangle.o Edge.o
${CC} -c Limiter.cpp ${FLAGS}
Field.o: Field.cpp Field.h Basis.o Grid.o Polygon.o Basis.o Triangle.o Edge.o
${CC} -c Field.cpp ${FLAGS}
Basis.o: Basis.cpp Basis.h Polygon.o Triangle.o Edge.o
${CC} -c Basis.cpp ${FLAGS}
Grid.o: Grid.cpp Grid.h Polygon.o Triangle.o Edge.o
${CC} -c Grid.cpp ${FLAGS}
Polygon.o: Polygon.cpp Polygon.h Triangle.o Edge.o
${CC} -c Polygon.cpp ${FLAGS}
Triangle.o: Triangle.cpp Triangle.h Edge.o
${CC} -c Triangle.cpp ${FLAGS}
Edge.o: Edge.cpp Edge.h
${CC} -c Edge.cpp ${FLAGS}
LinAlg.o: LinAlg.cpp LinAlg.h
${CC} -c LinAlg.cpp ${FLAGS}
clean:
rm *.o *Test