-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MakefileTest
43 lines (36 loc) · 1.32 KB
/
MakefileTest
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
CXX = g++
CXXFLAGS = -std=c++20 -Wall --pedantic \
-I/usr/include/opencv4 -I/usr/include/MQTTClient.h \
-I/usr/local/include/opencv4 -I/usr/local/include/MQTTClient.h \
-I/usr/include/gstreamer-1.0 -I/usr/include/x86_64-linux-gnu \
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include \
-DDEBUG \
-DTESTING \
-DINLINE_ENABLED
LDFLAGS = -L/usr/lib/ -L/usr/lib/opencv4/3rdparty/ \
-L/usr/local/lib/ -L/usr/local/lib/opencv4/3rdparty/
LDLIBS = -lfmt -lpaho-mqtt3c \
-lopencv_videoio -lopencv_core -lopencv_imgproc -lopencv_highgui \
-lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d \
-lopencv_objdetect -lopencv_stitching -lopencv_dnn \
-lopencv_gapi -lopencv_photo -lopencv_flann -lopencv_imgcodecs \
-ljpeg -lpng -ltiff -lz -ldl -lm -lpthread -lrt \
-lgstreamer-1.0 -lgobject-2.0 -lglib-2.0
EXEC = dcd
OBJ = main.o fsm_manager/fsm_manager.o object_detection/object_detection.o node/node.o
SHELL = /bin/bash
build: $(OBJ)
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJ) -o $(EXEC) $(LDLIBS)
-include depedencies.txt
-include params.conf
.PHONY: clean cleanall gendep gendoc test
test: # compile with TESTING macro before using this target
./$(EXEC) samples/street.mp4
clean:
rm -rf $(OBJ)
cleanall:
rm -rf $(OBJ) $(EXEC) docs/ depedencies.txt
gendep:
$(CXX) -MM *.cpp > depedencies.txt
gendoc:
doxygen