1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- ## --------------------------------------------------------------------
- ## file name: makefile
- ## comment: server project manage
- ## create date:
- ## author:
- ## copywrite: sininm game
- ## --------------------------------------------------------------------
- MAKE_DIRS :=
- MAKE_DIRS += bgshm
- MAKE_DIRS += testallshm
- MAKE_DIRS += testshmdll
- MAKE_DIRS += testshmexe
- CUR_DIR := $(shell pwd)
- server : release
- release :
- for d in $(foreach d, $(MAKE_DIRS), $(d)); do \
- cd $$d && $(MAKE) NODEP=1; \
- cd $(CUR_DIR); \
- done
- release_debug :
- for d in $(foreach d, $(MAKE_DIRS), $(d)); do \
- cd $$d && $(MAKE) RELEASE_DEBUG=1; \
- cd $(CUR_DIR); \
- done
- release_debug_asan :
- for d in $(foreach d, $(MAKE_DIRS), $(d)); do \
- cd $$d && $(MAKE) RELEASE_DEBUG=1 USE_ASAN=1; \
- cd $(CUR_DIR); \
- done
- debug :
- for d in $(foreach d, $(MAKE_DIRS), $(d)); do \
- cd $$d && $(MAKE) DEBUG=1; \
- cd $(CUR_DIR); \
- done
- debug_no_use_pool : make_all
- for d in $(foreach d, $(MAKE_DIRS), $(d)); do \
- cd $$d && $(MAKE) DEBUG=1 NO_USE_MEMPOOL=1; \
- cd $(CUR_DIR); \
- done
- clean :
- for d in $(foreach d, $(MAKE_DIRS), $(d)); do \
- cd $$d && $(MAKE) clean; \
- cd $(CUR_DIR); \
- done
- clean_debug :
- for d in $(foreach d, $(MAKE_DIRS), $(d)); do \
- cd $$d && $(MAKE) clean DEBUG=1; \
- cd $(CUR_DIR); \
- done
- clean_release_debug : make_clean_all
- for d in $(foreach d, $(MAKE_DIRS), $(d)); do \
- cd $$d && $(MAKE) clean RELEASE_DEBUG=1; \
- cd $(CUR_DIR); \
- done
- clean_release_debug_asan : make_clean_all
- for d in $(foreach d, $(MAKE_DIRS), $(d)); do \
- cd $$d && $(MAKE) clean RELEASE_DEBUG=1 USE_ASAN=1; \
- cd $(CUR_DIR); \
- done
- help:
- @echo 'Makefile for Leji Game Programs'
- @echo 'Copyright (C) 2013, 2014 sininm game'
- @echo 'Usage: make [TARGET]'
- @echo 'TARGETS:'
- @echo ' NODEP=1 make without generating dependencies.'
- @echo ' release (=make) compile and link release version.'
- @echo ' debug compile and link debug version.'
- @echo ' debug_no_use_pool compile and link debug version not use memory pool.'
- @echo ' release_debug compile and link release_debug version.'
- @echo ' clean clean release version objects and the executable file.'
- @echo ' clean_debug clean clean_debug version objects and the executable file.'
- @echo ' clean_release_debug clean clean_release_debug version objects and the executable file.'
- @echo ' help print this message.'
- @echo
- @echo 'Report bugs to Andrew.'
|