diff --git a/Makefile b/Makefile index 68c0e9828e..3d14bfdb40 100644 --- a/Makefile +++ b/Makefile @@ -756,7 +756,7 @@ menuselect/menuselect: makeopts menuselect/menuselect.c menuselect/menuselect_cu menuselect/gmenuselect: makeopts menuselect/menuselect.c menuselect/menuselect_gtk.c menuselect/menuselect_stub.c menuselect/menuselect.h menuselect/linkedlists.h makeopts @CC="$(HOST_CC)" CXX="$(CXX)" LD="" AR="" RANLIB="" CFLAGS="" $(MAKE) -C menuselect _gmenuselect CONFIGURE_SILENT="--silent" -menuselect-tree: $(foreach dir,$(filter-out main,$(MOD_SUBDIRS)),$(wildcard $(dir)/*.c) $(wildcard $(dir)/*.cc)) build_tools/cflags.xml sounds/sounds.xml build_tools/embed_modules.xml configure +menuselect-tree: $(foreach dir,$(filter-out main,$(MOD_SUBDIRS)),$(wildcard $(dir)/*.c) $(wildcard $(dir)/*.cc)) build_tools/cflags.xml build_tools/cflags-devmode.xml sounds/sounds.xml build_tools/embed_modules.xml configure @echo "Generating input for menuselect ..." @echo "" > $@ @echo >> $@ @@ -764,6 +764,9 @@ menuselect-tree: $(foreach dir,$(filter-out main,$(MOD_SUBDIRS)),$(wildcard $(di @for dir in $(sort $(filter-out main,$(MOD_SUBDIRS))); do $(SUBMAKE) -C $${dir} SUBDIR=$${dir} moduleinfo >> $@; done @for dir in $(sort $(filter-out main,$(MOD_SUBDIRS))); do $(SUBMAKE) -C $${dir} SUBDIR=$${dir} makeopts >> $@; done @cat build_tools/cflags.xml >> $@ + @if [ "${AST_DEVMODE}" = "yes" ]; then \ + cat build_tools/cflags-devmode.xml >> $@; \ + fi @cat build_tools/embed_modules.xml >> $@ @cat sounds/sounds.xml >> $@ @echo "" >> $@ diff --git a/build_tools/cflags-devmode.xml b/build_tools/cflags-devmode.xml new file mode 100644 index 0000000000..8be92e71f0 --- /dev/null +++ b/build_tools/cflags-devmode.xml @@ -0,0 +1,17 @@ + + + + + + + DEBUG_THREADS + + + + + + + + + + diff --git a/build_tools/cflags.xml b/build_tools/cflags.xml index ccbabd035a..db140d6aae 100644 --- a/build_tools/cflags.xml +++ b/build_tools/cflags.xml @@ -1,31 +1,16 @@ - - - - - - - - - - DEBUG_THREADS - - - - + + + - - - -