diff options
author | bjarni <bjarni@openttd.org> | 2004-11-08 21:24:48 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2004-11-08 21:24:48 +0000 |
commit | b78bbf80bf050e04814d0f60e9769a4bdf1e7068 (patch) | |
tree | 4771876978b426ae06692889981554a018e32862 /Makefile | |
parent | 72880f2dad5e322eae65fbd66787c26e710802e2 (diff) | |
download | openttd-b78bbf80bf050e04814d0f60e9769a4bdf1e7068.tar.xz |
(svn r531) Makefile: made asserts enabled by default
RELEASE disables asserts unless ENABLE_ASSERTS(not in makefile.config) is set
makefile.config version 3
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -109,7 +109,7 @@ # Makefile version tag # it checks if the version tag in makefile.config is the same and force update outdated config files -MAKEFILE_VERSION:=2 +MAKEFILE_VERSION:=3 # CONFIG_WRITER have to be found even for manual configuration CONFIG_WRITER=makefiledir/Makefile.config_writer @@ -405,9 +405,16 @@ endif endif # enables/disables assert() +ifdef DISABLE_ASSERTS +CFLAGS += -DNDEBUG +endif + +# automatically disables asserts for release +ifdef RELEASE ifndef ENABLE_ASSERTS CFLAGS += -DNDEBUG endif +endif ifdef TRANSLATOR STRGEN_FLAGS=-t |