1234567891011121314151617181920212223242526272829303132333435363738394041 |
- SONAME = libabandobjdetector.so
- SOLINK = $(SONAME).0.0
- SOTARGET = $(SONAME).0.0.0
- SOLIB_OBJS = AbandObjAPI.o AbandObjDetector.o AbandObjApp.o
- INCLUDE = -I/usr/local/include/opencv4 \
- -I../include \
- -I../../deps/detutils/include \
- -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/detutils/source
- LDFLAGS = -lcommon -lpthread -ldl -ldetutils \
- -lopencv_core -lopencv_imgproc -lopencv_imgcodecs \
- -lopencv_video -lopencv_videoio -lopencv_highgui
- .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)
|