makefile_engine_mod.in 849 B

12345678910111213141516171819202122232425262728293031
  1. ## --------------------------------------------------------------------
  2. ## file name: mk_engine_mod_def.in
  3. ## comment: ����ģ�����ʱ��Ҫ��һЩͨ������
  4. ## create date: 2017��06��07��
  5. ## author:
  6. ## copywrite: sininm game
  7. ## --------------------------------------------------------------------
  8. #modify compile flag
  9. ifneq ($(DEBUG),1)
  10. ifeq ($(USE_ASAN),1)
  11. CFLAGS += -fsanitize=address -fno-omit-frame-pointer
  12. CPPFLAGS += -fsanitize=address -fno-omit-frame-pointer
  13. LD_EXE_FLAGS += -fsanitize=address
  14. endif
  15. else
  16. CFLAGS += -fno-omit-frame-pointer
  17. CPPFLAGS += -fno-omit-frame-pointer
  18. #LD_EXE_FLAGS += -fsanitize=address
  19. endif
  20. #macro define
  21. MACRO_DEFINE += -D_TEST
  22. #memory pool
  23. ifeq ($(NO_USE_MEMPOOL),1)
  24. MACRO_DEFINE += -D_NO_USE_MEM_POOL
  25. endif