diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/NWGNUenvironment.inc | 42 |
1 files changed, 20 insertions, 22 deletions
diff --git a/build/NWGNUenvironment.inc b/build/NWGNUenvironment.inc index 493ed7903..f58339881 100644 --- a/build/NWGNUenvironment.inc +++ b/build/NWGNUenvironment.inc @@ -62,49 +62,47 @@ endif # # Set the Release type that you want to build, possible values are: # -# debug - full debug switches are set -# noopt - normal switches are set (default) -# optimized - optimization switches are set +# debug - full debug switches are set +# noopt - normal switches are set +# release - optimization switches are set (default) ifdef reltype -RELEASE=$(reltype) -endif +RELEASE = $(reltype) +endif ifdef RELTYPE -RELEASE=$(RELTYPE) +RELEASE = $(RELTYPE) endif ifdef debug -RELEASE=debug +RELEASE = debug endif ifdef DEBUG -RELEASE=debug +RELEASE = debug endif -ifdef optimized -RELEASE=optimized +ifdef noopt +RELEASE = noopt endif -ifdef OPTIMIZED -RELEASE=optimized +ifdef NOOPT +RELEASE = noopt endif -ifndef RELEASE -RELEASE = optimized +ifdef optimized +RELEASE = release endif -ifeq "$(RELEASE)" "debug" -OBJDIR = Debug +ifdef OPTIMIZED +RELEASE = release endif -ifeq "$(RELEASE)" "noopt" -OBJDIR = Noopt +ifndef RELEASE +RELEASE = release endif -ifeq "$(RELEASE)" "optimized" -OBJDIR = Release -endif +OBJDIR = obj_$(RELEASE) # # Setup compiler information @@ -174,7 +172,7 @@ CFLAGS += -g -O0 endif # -O4,p level 4 optimizations, optimize for speed -ifeq "$(RELEASE)" "optimized" +ifeq "$(RELEASE)" "release" CFLAGS += -O4,p endif |