-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMakefile_human
28 lines (24 loc) · 861 Bytes
/
Makefile_human
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
OPENCV_PREFIX = /usr/local
BOOST_PREFIX= /usr/local
INCLUDES = -I$(OPENCV_PREFIX)/include/opencv2 \
-I$(OPENCV_PREFIX)/include/opencv \
-I$(BOOST_PREFIX)/include\
-I./dlib-18.16
LIBS = -lopencv_features2d -lopencv_ml -lopencv_highgui -lopencv_imgproc -lopencv_objdetect -lopencv_core -lopencv_calib3d \
-lboost_system -lboost_thread-mt -lboost_serialization -lboost_filesystem -lpthread -lX11
LIBDIRS = -L$(OPENCV_PREFIX)/lib \
-L$(BOOST_PREFIX)/lib \
-L/usr/lib \
-L/opt/X11/lib
CC=clang++
CFLAGS= -c -Wall -O3 -msse4.2
SOURCES= ./dlib-18.16/dlib/all/source.cpp humanface.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=TIF_human
all: $(SOURCES) $(EXECUTABLE)
clean:
rm -f *.o
$(EXECUTABLE): $(OBJECTS)
$(CC) $(OBJECTS) $(LIBDIRS) $(LIBS) -o $@
.cpp.o:
$(CC) $(CFLAGS) $(INCLUDES) $< -o $@