-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
162 lines (105 loc) · 4.29 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
COMPILER=gcc
OPTIMIZATION=-O3
all : compile run plot dynamicAnalysis doc
install :
sudo apt-get install gnuplot
compile : main unitTests validation qualification
main : main2D main2DTime main3D main3DTime
main2D:
cd 2D; make main OPTIMIZATION=$(OPTIMIZATION); cd -
main2DTime:
cd 2DTime; make main OPTIMIZATION=$(OPTIMIZATION); cd -
main3D:
cd 3D; make main OPTIMIZATION=$(OPTIMIZATION); cd -
main3DTime:
cd 3DTime; make main OPTIMIZATION=$(OPTIMIZATION); cd -
unitTests : unitTests2D unitTests2DTime unitTests3D unitTests3DTime
unitTests2D:
cd 2D; make unitTests OPTIMIZATION=$(OPTIMIZATION); cd -
unitTests2DTime:
cd 2DTime; make unitTests OPTIMIZATION=$(OPTIMIZATION); cd -
unitTests3D:
cd 3D; make unitTests OPTIMIZATION=$(OPTIMIZATION); cd -
unitTests3DTime:
cd 3DTime; make unitTests OPTIMIZATION=$(OPTIMIZATION); cd -
validation : validation2D validation2DTime validation3D validation3DTime
validation2D:
cd 2D; make validation OPTIMIZATION=$(OPTIMIZATION); cd -
validation2DTime:
cd 2DTime; make validation OPTIMIZATION=$(OPTIMIZATION); cd -
validation3D:
cd 3D; make validation OPTIMIZATION=$(OPTIMIZATION); cd -
validation3DTime:
cd 3DTime; make validation OPTIMIZATION=$(OPTIMIZATION); cd -
qualification : qualification2D qualification2DTime qualification3D qualification3DTime
qualification2D:
cd 2D; make qualification OPTIMIZATION=$(OPTIMIZATION); cd -
qualification2DTime:
cd 2DTime; make qualification OPTIMIZATION=$(OPTIMIZATION); cd -
qualification3D:
cd 3D; make qualification OPTIMIZATION=$(OPTIMIZATION); cd -
qualification3DTime:
cd 3DTime; make qualification OPTIMIZATION=$(OPTIMIZATION); cd -
clean : clean2D clean2DTime clean3D clean3DTime
clean2D:
cd 2D; make clean; cd -
clean2DTime:
cd 2DTime; make clean; cd -
clean3D:
cd 3D; make clean; cd -
clean3DTime:
cd 3DTime; make clean; cd -
valgrind : valgrind2D valgrind2DTime valgrind3D valgrind3DTime
valgrind2D:
cd 2D; make valgrind; cd -
valgrind2DTime:
cd 2DTime; make valgrind; cd -
valgrind3D:
cd 3D; make valgrind; cd -
valgrind3DTime:
cd 3DTime; make valgrind; cd -
cppcheck : cppcheck2D cppcheck2DTime cppcheck3D cppcheck3DTime
cppcheck2D:
cd 2D; make cppcheck; cd -
cppcheck2DTime:
cd 2DTime; make cppcheck; cd -
cppcheck3D:
cd 3D; make cppcheck; cd -
cppcheck3DTime:
cd 3DTime; make cppcheck; cd -
run : run2D run2DNearCaseOnly run2DTime run3D run3DNearCaseOnly run3DTime
run2D:
cd 2D; ./main > ../Results/main2D.txt; ./unitTests > ../Results/unitTests2D.txt; ./validation > ../Results/validation2D.txt; ./qualification; cd -
run3D:
cd 3D; ./main > ../Results/main3D.txt; ./unitTests > ../Results/unitTests3D.txt; ./validation > ../Results/validation3D.txt; ./qualification; cd -
run2DNearCaseOnly:
cd 2D; ./qualification -nearCaseOnly; cd -
run3DNearCaseOnly:
cd 3D; ./qualification -nearCaseOnly; cd -
run2DTime:
cd 2DTime; ./main > ../Results/main2DTime.txt; ./unitTests > ../Results/unitTests2DTime.txt; ./validation > ../Results/validation2DTime.txt; ./qualification; cd -
run3DTime:
cd 3DTime; ./main > ../Results/main3DTime.txt; ./unitTests > ../Results/unitTests3DTime.txt; ./validation > ../Results/validation3DTime.txt; ./qualification; cd -
plot: cleanPlot plot2D plot2DNearCaseOnly plot2DTime plot3D plot3DNearCaseOnly plot3DTime
cleanPlot:
rm -f Results/*.png
plot2D:
cd Results; gnuplot qualification2D.gnu; cd -
plot2DNearCaseOnly:
cd Results; gnuplot qualification2DNearCaseOnly.gnu; cd -
plot2DTime:
cd Results; gnuplot qualification2DTime.gnu; cd -
plot3D:
cd Results; gnuplot qualification3D.gnu; cd -
plot3DNearCaseOnly:
cd Results; gnuplot qualification3DNearCaseOnly.gnu; cd -
plot3DTime:
cd Results; gnuplot qualification3DTime.gnu; cd -
doc:
cd Doc; make latex; cd -
getRuntimeEnvironment:
echo "uname -v\n" > runtimeEnv.txt; uname -v >> runtimeEnv.txt; echo "\n=============\n" >> runtimeEnv.txt; echo "lshw -short\n" >> runtimeEnv.txt; sudo lshw -short >> runtimeEnv.txt; echo "\n=============\n" >> runtimeEnv.txt; echo "lscpu\n" >> runtimeEnv.txt; lscpu >> runtimeEnv.txt; echo "\n=============\n" >> runtimeEnv.txt; echo "$(COMPILER) -v\n" >> runtimeEnv.txt; $(COMPILER) -v 1>> runtimeEnv.txt 2>> runtimeEnv.txt
dynamicAnalysis:
make valgrind 1> dynamicAnalysis.txt 2> dynamicAnalysis.txt
staticAnalysis:
make cppcheck 1> staticAnalysis.txt 2> staticAnalysis.txt