Changed the release flag from NODEBUG to RELEASE.
This commit is contained in:
parent
aafb27cb2c
commit
7ebb4cea9a
|
@ -25,8 +25,8 @@ ifndef OS
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# default is to build with debug symbols
|
# default is to build with debug symbols
|
||||||
ifndef NODEBUG
|
ifndef RELEASE
|
||||||
NODEBUG = 0
|
RELEASE = 0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# parameters
|
# parameters
|
||||||
|
@ -36,7 +36,7 @@ export CFLAGS
|
||||||
export CXXFLAGS
|
export CXXFLAGS
|
||||||
# TODO RCFLAGS
|
# TODO RCFLAGS
|
||||||
export LDFLAGS
|
export LDFLAGS
|
||||||
export NODEBUG
|
export RELEASE
|
||||||
export EXAMPLE
|
export EXAMPLE
|
||||||
export PREFIX
|
export PREFIX
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ CXXFLAGS += \
|
||||||
LDFLAGS += \
|
LDFLAGS += \
|
||||||
-fPIC
|
-fPIC
|
||||||
|
|
||||||
ifneq ($(NODEBUG),1)
|
ifneq ($(RELEASE),1)
|
||||||
CFLAGS += -g
|
CFLAGS += -g
|
||||||
CXXFLAGS += -g
|
CXXFLAGS += -g
|
||||||
LDFLAGS += -g
|
LDFLAGS += -g
|
||||||
|
|
|
@ -48,7 +48,7 @@ CXXFLAGS += \
|
||||||
LDFLAGS += \
|
LDFLAGS += \
|
||||||
-largeaddressaware -nologo -incremental:no
|
-largeaddressaware -nologo -incremental:no
|
||||||
|
|
||||||
ifneq ($(NODEBUG),1)
|
ifneq ($(RELEASE),1)
|
||||||
CFLAGS += -Zi
|
CFLAGS += -Zi
|
||||||
CXXFLAGS += -Zi
|
CXXFLAGS += -Zi
|
||||||
LDFLAGS += -debug
|
LDFLAGS += -debug
|
||||||
|
@ -76,7 +76,7 @@ $(OUT): $(OFILES) | $(OUTDIR)
|
||||||
|
|
||||||
# TODO can we put /Fd$@.pdb in a variable?
|
# TODO can we put /Fd$@.pdb in a variable?
|
||||||
$(OBJDIR)/%.c.o: $$(subst _,/,%).c $(HFILES) | $(OBJDIR)
|
$(OBJDIR)/%.c.o: $$(subst _,/,%).c $(HFILES) | $(OBJDIR)
|
||||||
ifeq ($(NODEBUG),1)
|
ifeq ($(RELEASE),1)
|
||||||
@cl -Fo:$@ -c $< $(CFLAGS)
|
@cl -Fo:$@ -c $< $(CFLAGS)
|
||||||
else
|
else
|
||||||
@cl -Fo:$@ -c $< $(CFLAGS) -Fd$@.pdb
|
@cl -Fo:$@ -c $< $(CFLAGS) -Fd$@.pdb
|
||||||
|
@ -84,7 +84,7 @@ endif
|
||||||
@echo ====== Compiled $<
|
@echo ====== Compiled $<
|
||||||
|
|
||||||
$(OBJDIR)/%.cpp.o: $$(subst _,/,%).cpp $(HFILES) | $(OBJDIR)
|
$(OBJDIR)/%.cpp.o: $$(subst _,/,%).cpp $(HFILES) | $(OBJDIR)
|
||||||
ifeq ($(NODEBUG),1)
|
ifeq ($(RELEASE),1)
|
||||||
@cl -Fo:$@ -c $< $(CXXFLAGS)
|
@cl -Fo:$@ -c $< $(CXXFLAGS)
|
||||||
else
|
else
|
||||||
@cl -Fo:$@ -c $< $(CXXFLAGS) -Fd$@.pdb
|
@cl -Fo:$@ -c $< $(CXXFLAGS) -Fd$@.pdb
|
||||||
|
|
|
@ -19,7 +19,7 @@ The build-time settings are
|
||||||
compiler flags
|
compiler flags
|
||||||
this is where you can specify -m32 or -m64, for instance
|
this is where you can specify -m32 or -m64, for instance
|
||||||
Objective-C uses $(CFLAGS)
|
Objective-C uses $(CFLAGS)
|
||||||
NODEBUG=xxx
|
RELEASE=xxx
|
||||||
set to 1 to disable debug symbols
|
set to 1 to disable debug symbols
|
||||||
must be 1, any other value means "include debug symbols"
|
must be 1, any other value means "include debug symbols"
|
||||||
PREFIX=xxx
|
PREFIX=xxx
|
||||||
|
|
Loading…
Reference in New Issue