-
Notifications
You must be signed in to change notification settings - Fork 10
/
makefile
96 lines (66 loc) · 3.25 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
CC = gcc
CPC = g++
OPENCV_HEADER_DIR = /usr/local/include
OPENCV_LIBRARY_DIR = /usr/local/lib
DLIB_HEADER_DIR = /home/lincolnhard/Documents/dlib
DLIB_LIBRARY_DIR = /home/lincolnhard/Documents/dlib/build/dlib
NNPACK_HEADER_DIR = /home/lincolnhard/Documents/NNPACK-darknet/include
NNPACK_LIBRARY_DIR = /home/lincolnhard/Documents/NNPACK-darknet/lib
INCLUDES += -I $(OPENCV_HEADER_DIR)
INCLUDES += -I $(DLIB_HEADER_DIR)
INCLUDES += -I $(NNPACK_HEADER_DIR)
DEFINES += -D OPENCV -D NNPACK
LDFLAGS += -L $(OPENCV_LIBRARY_DIR) -lopencv_core -lopencv_highgui -lopencv_imgproc -lopencv_objdetect -lopencv_calib3d
LDFLAGS += -L $(DLIB_LIBRARY_DIR) -ldlib
LDFLAGS += -L $(NNPACK_LIBRARY_DIR) -lnnpack -lpthreadpool -lpthread
APP_NAME += facenet-darknet-inference
all: test.o run_darknet.o face_io.o activation_layer.o activations.o avgpool_layer.o batchnorm_layer.o blas.o connected_layer.o convolutional_layer.o gemm.o im2col.o image.o layer.o list.o maxpool_layer.o network.o normalization_layer.o option_list.o parser.o route_layer.o shortcut_layer.o utils.o
$(CPC) -o $(APP_NAME) test.o run_darknet.o face_io.o activation_layer.o activations.o avgpool_layer.o batchnorm_layer.o blas.o connected_layer.o convolutional_layer.o gemm.o im2col.o image.o layer.o list.o maxpool_layer.o network.o normalization_layer.o option_list.o parser.o route_layer.o shortcut_layer.o utils.o $(LDFLAGS)
test.o:
$(CPC) -c -pipe -std=c++11 -O2 $(DEFINES) $(INCLUDES) test.cpp
run_darknet.o:
$(CC) -c -pipe -O2 $(DEFINES) $(INCLUDES) run_darknet.c
face_io.o:
$(CC) -c -pipe -O2 $(DEFINES) $(INCLUDES) face_io.c
activation_layer.o:
$(CC) -c -pipe -O2 $(DEFINES) $(INCLUDES) activation_layer.c
activations.o:
$(CC) -c -pipe -O2 $(DEFINES) $(INCLUDES) activations.c
avgpool_layer.o:
$(CC) -c -pipe -O2 $(DEFINES) $(INCLUDES) avgpool_layer.c
batchnorm_layer.o:
$(CC) -c -pipe -O2 $(DEFINES) $(INCLUDES) batchnorm_layer.c
blas.o:
$(CC) -c -pipe -O2 $(DEFINES) $(INCLUDES) blas.c
connected_layer.o:
$(CC) -c -pipe -O2 $(DEFINES) $(INCLUDES) connected_layer.c
convolutional_layer.o:
$(CC) -c -pipe -O2 $(DEFINES) $(INCLUDES) convolutional_layer.c
gemm.o:
$(CC) -c -pipe -O2 $(DEFINES) $(INCLUDES) gemm.c
im2col.o:
$(CC) -c -pipe -O2 $(DEFINES) $(INCLUDES) im2col.c
image.o:
$(CC) -c -pipe -O2 $(DEFINES) $(INCLUDES) image.c
layer.o:
$(CC) -c -pipe -O2 $(DEFINES) $(INCLUDES) layer.c
list.o:
$(CC) -c -pipe -O2 $(DEFINES) $(INCLUDES) list.c
maxpool_layer.o:
$(CC) -c -pipe -O2 $(DEFINES) $(INCLUDES) maxpool_layer.c
network.o:
$(CC) -c -pipe -O2 $(DEFINES) $(INCLUDES) network.c
normalization_layer.o:
$(CC) -c -pipe -O2 $(DEFINES) $(INCLUDES) normalization_layer.c
option_list.o:
$(CC) -c -pipe -O2 $(DEFINES) $(INCLUDES) option_list.c
parser.o:
$(CC) -c -pipe -O2 $(DEFINES) $(INCLUDES) parser.c
route_layer.o:
$(CC) -c -pipe -O2 $(DEFINES) $(INCLUDES) route_layer.c
shortcut_layer.o:
$(CC) -c -pipe -O2 $(DEFINES) $(INCLUDES) shortcut_layer.c
utils.o:
$(CC) -c -pipe -O2 $(DEFINES) $(INCLUDES) utils.c
clean:
rm -f test.o run_darknet.o face_io.o activation_layer.o activations.o avgpool_layer.o batchnorm_layer.o blas.o connected_layer.o convolutional_layer.o gemm.o im2col.o image.o layer.o list.o maxpool_layer.o network.o normalization_layer.o option_list.o parser.o route_layer.o shortcut_layer.o utils.o