makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. ## --------------------------------------------------------------------
  2. ## file name: makefile
  3. ## comment: launch
  4. ## create date: 2014��04��02��
  5. ## author:
  6. ## copywrite: sininm game
  7. ## --------------------------------------------------------------------
  8. FIRST_TARGET_NAME=t_test_shm
  9. OUTPUT_NAME=testshmexe
  10. OUTPUT_SUFFIX=
  11. include ../makefile_path.in
  12. #make command define
  13. include ../makefile.in
  14. #engine mod modify
  15. include ../makefile_engine_mod.in
  16. DIRS := ./
  17. DIRS += ../shm
  18. CPPFILES := $(foreach dir,$(DIRS),$(FIND_CPPFILES))
  19. CFILES := $(foreach dir,$(DIRS),$(FIND_CFILES))
  20. # share_header
  21. #switch flag
  22. #USE_PTHREAD = 1
  23. #include path
  24. INCLUDE_PATH := -I$(SHM_HEADER_PATH)
  25. INCLUDE_PATH += -I./
  26. #implicit link dll
  27. IMPORT_LIB := -lrt -ldl -L$(OUTPUT_DIR) -lbgshm
  28. #modify compile flag
  29. CFLAGS := $(filter-out -fvisibility=hidden,$(CFLAGS))
  30. CPPFLAGS := $(filter-out -fvisibility=hidden,$(CPPFLAGS))
  31. CPPFLAGS := $(filter-out -fvisibility-inlines-hidden,$(CPPFLAGS))
  32. #modify macro define
  33. MACRO_DEFINE += -Wno-Wclass-memaccess
  34. LINK_TYPE = $(LINK_EXE)
  35. #domake
  36. include ../makefile.do