123456789101112131415161718192021222324252627282930313233343536373839404142 |
- SONAME = libyolocrowddetector.so
- SOLINK = $(SONAME).0.0
- SOTARGET = $(SONAME).0.0.0
- SOLIB_OBJS = YoloCrowdAPI.o YoloCrowdDetector.o YoloCrowdApp.o
- INCLUDE = -I/usr/local/include/opencv4 \
- -I../include \
- -I../../deps/detutils/include \
- -I../../deps/tensorRT_Pro/include/application \
- -I../../deps/tensorRT_Pro/include/tensorrt \
- -I../../../../include \
- -I../../../../mascommon/include \
- -I../../../../detector/detdef/include \
- -I../../../../links/common/include \
- -I../../../../links/rapidjson/include \
- -I/usr/local/cuda/include
-
- CC = g++
- RM = rm -f
- LN = ln -sf
- CXXFLAGS = -std=gnu++11 -g -O2 -Wall -fPIC -DLINUX -DACTION_SINGLETON -D__STDC_CONSTANT_MACROS -Wno-deprecated -Wno-write-strings -fpermissive
- LDPATH = -L../../../../links/common/libs -L../../deps/tensorRT_Pro/source -L../../deps/detutils/source
- LDFLAGS = -lcommon -lpthread -ldl -ltensorrtpro -ldetutils \
- -lopencv_core -lopencv_imgproc -lopencv_imgcodecs
- .SUFFIXES: .cpp .h .o
- .cpp.o:
- $(CC) $(CXXFLAGS) $(INCLUDE) -o $@ -c $<
- $(SOTARGET): $(SOLIB_OBJS)
- $(CC) -shared -Wl,-Bsymbolic -o $@ $^ $(LDPATH) $(LDFLAGS)
- $(LN) $(SOTARGET) $(SOLINK)
- $(LN) $(SOLINK) $(SONAME)
- clean:
- $(RM) $(SOLIB_OBJS) $(SONAME) $(SOLINK) $(SOTARGET)
|