Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. SONAME = libabandclipstrategy.so
  2. SOLINK = $(SONAME).0.0
  3. SOTARGET = $(SONAME).0.0.0
  4. SOLIB_OBJS = AbandClipAPI.o AbandClipStrategy.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/clip/include \
  13. -I../../../../detector/components/abandobj/include
  14. CC = g++
  15. RM = rm -f
  16. LN = ln -sf
  17. CXXFLAGS = -std=gnu++11 -g -O2 -Wall -fPIC -DLINUX -DACTION_SINGLETON -D__STDC_CONSTANT_MACROS -Wno-deprecated -Wno-write-strings -fpermissive
  18. LDPATH = -L../../../../links/common/libs
  19. LDFLAGS = -lcommon -lpthread -ldl
  20. .SUFFIXES: .cpp .h .o
  21. .cpp.o:
  22. $(CC) $(CXXFLAGS) $(INCLUDE) -o $@ -c $<
  23. $(SOTARGET): $(SOLIB_OBJS)
  24. $(CC) -shared -Wl,-Bsymbolic -o $@ $^ $(LDPATH) $(LDFLAGS)
  25. $(LN) $(SOTARGET) $(SOLINK)
  26. $(LN) $(SOLINK) $(SONAME)
  27. clean:
  28. $(RM) $(SOLIB_OBJS) $(SONAME) $(SOLINK) $(SOTARGET)