added DEBUG and PROFILING flags
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3678 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
3a4b7e326c
commit
bec8d601c2
1 changed files with 25 additions and 4 deletions
|
@ -23,13 +23,34 @@ RM = rm
|
||||||
|
|
||||||
# -- Compilers and linker flags --
|
# -- Compilers and linker flags --
|
||||||
DEFINES = -DCOMPRESS_MF_BT
|
DEFINES = -DCOMPRESS_MF_BT
|
||||||
CFLAGS = -Wall -O3
|
CFLAGS += -Wall
|
||||||
CXXFLAGS = -Wall -O3
|
CXXFLAGS += -Wall
|
||||||
CPPFLAGS = $(DEFINES)
|
CPPFLAGS = $(DEFINES)
|
||||||
|
RELEASE = 1
|
||||||
ifneq ($(EXESUFF),)
|
ifneq ($(EXESUFF),)
|
||||||
LDFLAGS = -s -Wl,-Map,$(subst $(EXESUFF),.map,$@)
|
LDFLAGS += -Wl,-Map,$(subst $(EXESUFF),.map,$@)
|
||||||
else
|
else
|
||||||
LDFLAGS = -s -Wl,-Map,$@.map
|
LDFLAGS += -Wl,-Map,$@.map
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(PROFILING),1)
|
||||||
|
CFLAGS += -g -pg -O3
|
||||||
|
CXXFLAGS += -g -pg -O3
|
||||||
|
LDFLAGS += -g -pg
|
||||||
|
RELEASE = 0
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(DEBUG),1)
|
||||||
|
CFLAGS += -g -O0
|
||||||
|
CXXFLAGS += -g -O0
|
||||||
|
LDFLAGS += -g
|
||||||
|
RELEASE = 0
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(RELEASE),1)
|
||||||
|
CFLAGS += -O3
|
||||||
|
CXXFLAGS += -O3
|
||||||
|
LDFLAGS += -s
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all : exehead makensis
|
all : exehead makensis
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue