forked from madhawav/YOLO3-4-Py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
21 lines (15 loc) · 863 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CXXFLAGS += `pkg-config opencv --cflags`
LDFLAGS += `pkg-config opencv --libs`
compile:
cythonize pydarknet.pyx --annotate -s LANGUAGE="c++"
g++ -I"/usr/local/lib/python3.5/dist-packages/numpy/core/include" -I"$DARKNET_HOME/include" -I"$DARKNET_HOME/src" -I"/usr/include/python3.5" $(CXXFLAGS) -c pydarknet.c -fPIC -fwrapv -O2 -Wall -fno-strict-aliasing -std=c++14
g++ -I"$DARKNET_HOME/include" -I"$DARKNET_HOME/src" -I"/usr/include/python3.5" $(CXXFLAGS) -c bridge.cpp -fPIC -fwrapv -O2 -Wall -fno-strict-aliasing -std=c++14
link:
g++ -o pydarknet.so pydarknet.o bridge.o $(LDFLAGS) "$DARKNET_HOME/libdarknet.so" -L"/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu" -lpython3.5 -lpthread -shared -fPIC -fwrapv -O2 -Wall -fno-strict-aliasing
all: compile link
clean:
rm pydarknet.o
rm bridge.o
rm pydarknet.c
rm pydarknet.so
rm pydarknet.html