summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-08-03 14:20:45 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-08-03 14:20:45 -0700
commitc595d3043110cf1820d22e17454e4cf787562894 (patch)
tree0fb8d841906158b03191f30727d0c929e7263c15 /Makefile
parentcaac8c95a04f3cf83eb81510680833e2c6cf26d5 (diff)
downloadtxr-c595d3043110cf1820d22e17454e4cf787562894.tar.gz
txr-c595d3043110cf1820d22e17454e4cf787562894.tar.bz2
txr-c595d3043110cf1820d22e17454e4cf787562894.zip
Define TXR_DBG macro when compiling debug build.
* Makefile (dbg/%.o): Pass $(DBG_ONLY_FLAGS) to COMPILE_C_WITH_DEPS recipe macro. * configure (debug_only_flags): New macro. (gen_config_make): Generate DBG_ONLY_FLAGS. Add debug-only-flags to usage help text.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e20fabd6..80c22556 100644
--- a/Makefile
+++ b/Makefile
@@ -117,14 +117,14 @@ endef
ifneq ($(top_srcdir),)
dbg/%.o: $(top_srcdir)%.c
- $(call COMPILE_C_WITH_DEPS,)
+ $(call COMPILE_C_WITH_DEPS,$(DBG_ONLY_FLAGS))
opt/%.o: $(top_srcdir)%.c
$(call COMPILE_C_WITH_DEPS,$(OPT_FLAGS))
endif
dbg/%.o: %.c
- $(call COMPILE_C_WITH_DEPS,)
+ $(call COMPILE_C_WITH_DEPS,$(DBG_ONLY_FLAGS))
opt/%.o: %.c
$(call COMPILE_C_WITH_DEPS,$(OPT_FLAGS))