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