summaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'src/db/Makefile')
-rw-r--r-- | src/db/Makefile | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/src/db/Makefile b/src/db/Makefile new file mode 100644 index 0000000..d7b6eed --- /dev/null +++ b/src/db/Makefile @@ -0,0 +1,63 @@ +################################################################################ +## CONFIG ###################################################################### +################################################################################ +MODULE_NAME ?= $ $(shell basename ${CURDIR}) +MODULE_PORT ?= 8002 + +DIALYZER_PLT_FILE ?= tacticians-server.plt + +## Main Directories +SRC_DIR ?= ${CURDIR}/src +CONF_DIR ?= ${CURDIR}/conf + +#### Optional Dirs +BIN_DIR ?= ${CURDIR}/ebin +INCLUDE_DIR ?= ${CURDIR}/include + +## Binaries +ERLC ?= erlc +ERLC_OPTS ?= +DIALYZER ?= dialyzer + +################################################################################ +## MAKEFILE MAGIC ############################################################## +################################################################################ +OPTIONAL_DIRS = $(BIN_DIR) $(INCLUDE_DIR) + +################################################################################ +## SANITY CHECKS ############################################################### +################################################################################ +DIALYZER_PLT_FILE ?= tacticians-server.plt + +## Main Directories +SRC_DIR ?= src +CONF_DIR ?= conf + +################################################################################ +## INCLUDES #################################################################### +################################################################################ +main_target: all + +include ${CURDIR}/mk/debug.mk +include ${CURDIR}/mk/erlang.mk +include ${CURDIR}/mk/preprocessor.mk + +################################################################################ +## TARGET RULES ################################################################ +################################################################################ +all: build + +debug: debug_run + +build: $(REQUIRED_HEADERS) $(PREPROCESSOR_RESULT) $(ERLANG_RESULT) + +run: + +clean: + rm -rf $(PREPROCESSOR_RESULT) $(ERLANG_RESULT) + +################################################################################ +## INTERNAL RULES ############################################################## +################################################################################ +$(OPTIONAL_DIRS): %: + mkdir -p $@ |