SONAME = libheadcountstrategy.so SOLINK = $(SONAME).0.0 SOTARGET = $(SONAME).0.0.0 SOLIB_OBJS = HeadCountAPI.o HeadCountStrategy.o INCLUDE = -I../include \ -I../../../../include \ -I../../../../mascommon/include \ -I../../../../strategy/stradef/include \ -I../../../../links/common/include \ -I../../../../links/rapidjson/include \ -I../../../../detector/components/include \ -I../../../../detector/components/yolocrowd/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 LDFLAGS = -lcommon -lpthread -ldl .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)