From d35ecac1ee5d08c3c7d3604ba6ec4d7177f20289 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 21 Oct 2015 12:01:27 -0400 Subject: maker.org make setting debug flags more straightforward, clean --- maker.org | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'maker.org') diff --git a/maker.org b/maker.org index 8adcdfc..28f0d94 100644 --- a/maker.org +++ b/maker.org @@ -39,18 +39,19 @@ GDC_FLAGS_RELEASE=-frelease GDC_FLAG_BINOF=-o #+end_src -*** set/select: compiler settings [+1] +*** set/select: ~compiler~ & ~debug flags~ [+1] Set flags: -**** SET compiler is: -Set D_COMPILER one of DMD LDC or GDC +**** SET compiler is "SET_D_COMPILER=": +Set D_COMPILER one of DMD LDC or GDC e.g.: SET_D_COMPILER=DMD #+BEGIN_SRC makefile :tangle makefile # set D_COMPILER one of DMD LDC or GDC: SET_D_COMPILER=LDC #+end_src -**** SET debug flags are: -Set debug flags using DMD standard flag -debug= +**** SET debug flags are "SET_DC_FLAGS_DEBUG_EXTRA=-debug=": +Set debug flags using DMD standard flag -debug= e.g.: + SET_DC_FLAGS_DEBUG_EXTRA=-debug=headings -debug=bookindex #+BEGIN_SRC makefile :tangle makefile SET_DC_FLAGS_DEBUG_EXTRA=-debug=headings -debug=bookindex @@ -62,9 +63,6 @@ DC=$($(SET_D_COMPILER)) DC_FLAGS=$($(shell echo $(SET_D_COMPILER)_FLAGS)) DC_FLAGS_RELEASE=$($(shell echo $(SET_D_COMPILER)_FLAGS_RELEASE)) DC_FLAG_BINOF=$($(shell echo $(SET_D_COMPILER)_FLAG_BINOF)) -#DC_FLAGS=$($(shell echo $(DC)_FLAGS)) -#DC_FLAGS_RELEASE=$($(shell echo $(DC)_FLAGS_RELEASE)) -#DC_FLAG_BINOF=$($(shell echo $(DC)_FLAG_BINOF)) DC_FLAGS_DEBUG_DEFAULT_SET=-unittest -debug=checkdoc -debug=summary DC_FLAGS_DEBUG_SET=\ $(shell echo $(DC_FLAGS_DEBUG_DEFAULT_SET) $(SET_DC_FLAGS_DEBUG_EXTRA)) -- cgit v1.2.3