mirror of
https://github.com/holub/mame
synced 2025-07-03 09:06:08 +03:00
make DEBUG=0 and SYMBOLS=0 behave (nw)
This commit is contained in:
parent
cd4e68a120
commit
304836a55c
17
makefile
17
makefile
@ -235,8 +235,10 @@ SUBTARGET_FULL := $(subst -,_,$(SUBTARGET))
|
|||||||
|
|
||||||
CONFIG = release
|
CONFIG = release
|
||||||
ifdef DEBUG
|
ifdef DEBUG
|
||||||
|
ifneq '$(DEBUG)' '0'
|
||||||
CONFIG := debug
|
CONFIG := debug
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef VERBOSE
|
ifdef VERBOSE
|
||||||
MAKEPARAMS += verbose=1
|
MAKEPARAMS += verbose=1
|
||||||
@ -511,19 +513,18 @@ endif
|
|||||||
|
|
||||||
# profiler defaults to on for DEBUG builds
|
# profiler defaults to on for DEBUG builds
|
||||||
ifdef DEBUG
|
ifdef DEBUG
|
||||||
|
ifneq '$(DEBUG)' '0'
|
||||||
ifndef PROFILER
|
ifndef PROFILER
|
||||||
PROFILER = 1
|
PROFILER = 1
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
# allow gprof profiling as well, which overrides the internal PROFILER
|
# allow gprof profiling as well, which overrides the internal PROFILER
|
||||||
# also enable symbols as it is useless without them
|
# also enable symbols as it is useless without them
|
||||||
ifdef PROFILE
|
ifdef PROFILE
|
||||||
PROFILER =
|
PROFILER =
|
||||||
SYMBOLS = 1
|
SYMBOLS = 1
|
||||||
ifndef SYMLEVEL
|
|
||||||
SYMLEVEL = 1
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# specify a default optimization level if none explicitly stated
|
# specify a default optimization level if none explicitly stated
|
||||||
@ -533,10 +534,14 @@ endif
|
|||||||
|
|
||||||
# set the symbols level
|
# set the symbols level
|
||||||
ifdef SYMBOLS
|
ifdef SYMBOLS
|
||||||
|
PARAMS += --SYMBOLS='$(SYMBOLS)'
|
||||||
|
ifneq '$(SYMBOLS)' '0'
|
||||||
ifndef SYMLEVEL
|
ifndef SYMLEVEL
|
||||||
SYMLEVEL = 1
|
|
||||||
ifdef SOURCES
|
ifdef SOURCES
|
||||||
SYMLEVEL = 2
|
SYMLEVEL = 2
|
||||||
|
else
|
||||||
|
SYMLEVEL = 1
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
@ -559,10 +564,6 @@ PARAMS += --with-benchmarks
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef SYMBOLS
|
|
||||||
PARAMS += --SYMBOLS='$(SYMBOLS)'
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifdef SYMLEVEL
|
ifdef SYMLEVEL
|
||||||
PARAMS += --SYMLEVEL='$(SYMLEVEL)'
|
PARAMS += --SYMLEVEL='$(SYMLEVEL)'
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user