Makefile 992 B

12345678910111213141516171819202122232425262728293031323334353637
  1. SONAME = libheadcountstrategy.so
  2. SOLINK = $(SONAME).0.0
  3. SOTARGET = $(SONAME).0.0.0
  4. SOLIB_OBJS = HeadCountAPI.o HeadCountStrategy.o
  5. INCLUDE = -I../include \
  6. -I../../../../include \
  7. -I../../../../mascommon/include \
  8. -I../../../../strategy/stradef/include \
  9. -I../../../../links/common/include \
  10. -I../../../../links/rapidjson/include \
  11. -I../../../../detector/components/include \
  12. -I../../../../detector/components/yolocrowd/include
  13. CC = g++
  14. RM = rm -f
  15. LN = ln -sf
  16. CXXFLAGS = -std=gnu++11 -g -O2 -Wall -fPIC -DLINUX -DACTION_SINGLETON -D__STDC_CONSTANT_MACROS -Wno-deprecated -Wno-write-strings -fpermissive
  17. LDPATH = -L../../../../links/common/libs
  18. LDFLAGS = -lcommon -lpthread -ldl
  19. .SUFFIXES: .cpp .h .o
  20. .cpp.o:
  21. $(CC) $(CXXFLAGS) $(INCLUDE) -o $@ -c $<
  22. $(SOTARGET): $(SOLIB_OBJS)
  23. $(CC) -shared -Wl,-Bsymbolic -o $@ $^ $(LDPATH) $(LDFLAGS)
  24. $(LN) $(SOTARGET) $(SOLINK)
  25. $(LN) $(SOLINK) $(SONAME)
  26. clean:
  27. $(RM) $(SOLIB_OBJS) $(SONAME) $(SOLINK) $(SOTARGET)