forked from proj5/humanDetection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
29 lines (22 loc) · 1.2 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
FILES = HumanDetection/peopledetection.cpp *.o
ifeq ($(OS),Windows_NT)
# LIB = -I D:/Development/Opencv/opencv/build/include/opencv -I D:/Development/Opencv/opencv/build/include/ -L D:\Development/opencv-2.4.13/build/lib -lopencv_core2413 -lopencv_highgui2413 -lopencv_imgproc2413 -lopencv_legacy2413 -lopencv_objdetect2413 -lopencv_video2413 -lopencv_features2d2413
LIB = -I "F:/DaiHoc/2016-2017 ki 1/Multimedia Communication/opencv/build/include" -I "F:/DaiHoc/2016-2017 ki 1/Multimedia Communication/opencv/build/include/opencv" -L "F:/DaiHoc/2016-2017 ki 1/Multimedia Communication/Duc/my_build/lib" -llibopencv_core310 -llibopencv_highgui310 -llibopencv_imgproc310 -llibopencv_objdetect310 -llibopencv_video310 -llibopencv_videoio310 -llibopencv_features2d310
else
LIB = `pkg-config --cflags --libs opencv`
endif
ifneq ("$(wildcard dpm_nms.o)","")
PRE_DPM = echo compile dpm
else
PRE_DPM = g++ -c HumanDetection/DPM/*.cpp $(LIB)
endif
ifneq ("$(wildcard Fusion.o)","")
PRE_CMT = echo compile CppMT
else
PRE_CMT = g++ -c HumanDetection/CppMT/*.cpp HumanDetection/CppMT/fastcluster/*.cpp -I HumanDetection/CppMT $(LIB)
endif
COMMAND = g++ -std=c++11 $(FILES) -o run $(LIB)
all:
$(PRE_DPM)
$(PRE_CMT)
$(COMMAND)