-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
executable file
·30 lines (24 loc) · 878 Bytes
/
Copy pathmakefile
File metadata and controls
executable file
·30 lines (24 loc) · 878 Bytes
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
CXX=g++
STD=c++11
all: clean debug release thrt thrt-debug
clean:
rm -rf realtimeSolver
rm -rf realtimeSolver-debug
rm -rf thrt
rm -rf thrt-debug
release:
if [ ! -f realtimeSolver.lock ]; then \
rm -rf realtimeSolver; \
${CXX} -o3 -std=${STD} ./cpp/main.cpp -o realtimeSolver ;\
chmod a+x ./realtimeSolver ;\
else\
echo "the release executable is running!!! Try make debug" ; \
fi;
debug:
rm -rf realtimeSolver-debug
${CXX} -g -D DEBUG -std=${STD} ./cpp/main.cpp -o realtimeSolver-debug
chmod a+x realtimeSolver-debug
thrt: ./cpp/trialBased/trialbasedTestRT.cpp ./cpp/trialBased/TrialBasedRealTimeSearch.h
$(CXX) -O3 -std=${STD} ./cpp/trialBased/trialbasedTestRT.cpp -o thrt
thrt-debug: ./cpp/trialBased/trialbasedTestRT.cpp ./cpp/trialBased/TrialBasedRealTimeSearch.h
$(CXX) -g -D DEBUG -std=${STD} ./cpp/trialBased/trialbasedTestRT.cpp -o thrt-debug