C++11 library providing functionality common to all adapters.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
883 B

1 year ago
  1. include ../Makefile.conf
  2. LDFLAGS:=-L../src $(LDFLAGS)
  3. LDLIBS=-lstdc++ -lpEpEngine -lpEpAdapter
  4. LDFLAGS=-L../src $(ENGINE_LIB)
  5. LDLIBS=-lstdc++ -lpEpEngine -lpEpAdapter -lpthread
  6. CXXFLAGS:=-I../src -DENGINE_TEST=$(ENGINE_TEST) $(CXXFLAGS)
  7. # Test
  8. SRC_TEST=$(wildcard test_*.cc)
  9. BIN_TEST=$(subst .cc,,$(SRC_TEST))
  10. # Framework
  11. SRC_FRAMEWORK=$(wildcard framework/*.cc)
  12. OBJ_FRAMEWORK=$(subst .cc,.o,$(SRC_FRAMEWORK))
  13. # Depends
  14. #DEP_TEST=$(subst .cc,.d,$(SRC_TEST))
  15. #DEP_FRAMEWORK=$(subst .cc,.d,$(SRC_FRAMEWORK))
  16. #DEPENDS+=$(DEP_TEST)$(DEP_FRAMEWORK)
  17. #CXXFLAGS+= -MMD -MP
  18. #
  19. #ifneq ($(MAKECMDGOALS),clean)
  20. # -include $(DEPENDS)
  21. #endif
  22. .PHONY: all clean rmtestdata
  23. .DEFAULT_GOAL := all
  24. all: $(BIN_TEST)
  25. $(BIN_TEST): $(OBJ_FRAMEWORK)
  26. clean:
  27. rm -f $(BIN_TEST)
  28. rm -f $(OBJ_FRAMEWORK)
  29. rm -Rf *.dSYM
  30. rm -f *.d
  31. rm -f *.o
  32. rm -Rf /tmp/test_pEp.*
  33. rmtestdata:
  34. rm -Rf /tmp/test_pEp.*