diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-08-03 14:20:45 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-08-03 14:20:45 -0700 |
commit | c595d3043110cf1820d22e17454e4cf787562894 (patch) | |
tree | 0fb8d841906158b03191f30727d0c929e7263c15 /Makefile | |
parent | caac8c95a04f3cf83eb81510680833e2c6cf26d5 (diff) | |
download | txr-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-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)) |