From 37a19596827126bc30dde8d49355af9fff6d5631 Mon Sep 17 00:00:00 2001 From: Matthew Cline Date: Mon, 12 Oct 2009 06:00:46 -0700 Subject: * Add -DDEBUG to DEFINES when DEBUG is set. * Add variable EXTERNAL_FLAGS, for setting compiler flags from the make command line. Trying to do this with EXTRA_FLAGS clobbers the makefile's changes to EXTRA_FLAGS, like adding "-ggdb". --- crawl-ref/source/makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref') diff --git a/crawl-ref/source/makefile b/crawl-ref/source/makefile index ac34d07073..a31bf958e3 100644 --- a/crawl-ref/source/makefile +++ b/crawl-ref/source/makefile @@ -336,7 +336,7 @@ endif # MacOS endif # TILES CFWARN_L := -Wno-parentheses -Wwrite-strings -Wshadow -pedantic -CFOTHERS_L = $(EXTRA_FLAGS) $(DEFINES) -DCLUA_BINDINGS $(SDL_CFLAGS) +CFOTHERS_L = $(EXTERNAL_FLAGS) $(EXTRA_FLAGS) $(DEFINES) -DCLUA_BINDINGS $(SDL_CFLAGS) # # Figure out the build settings for this type of build @@ -385,6 +385,7 @@ DEFINES += -DFULLDEBUG endif ifeq ($(DEBUG),y) EXTRA_FLAGS += -ggdb +DEFINES += -DDEBUG endif ifeq ($(WIZARD),y) DEFINES += -DWIZARD -- cgit v1.2.3-54-g00ecf