diff options
author | tron <tron@openttd.org> | 2005-03-10 15:23:13 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-03-10 15:23:13 +0000 |
commit | c26177d14f68b73850d04f4b6e0cb46228bed24f (patch) | |
tree | ef9369478e1e73a1dbcf45df45b0458847321ff9 /Makefile | |
parent | ba89c8d580f0cd34e95c0a8bedf485b7b8c2512d (diff) | |
download | openttd-c26177d14f68b73850d04f4b6e0cb46228bed24f.tar.xz |
(svn r1983) Introduce multiple compile time debug levels
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -286,7 +286,15 @@ ifeq ($(shell if test $(CC_VERSION) -ge 34; then echo true; fi), true) endif ifdef DEBUG - CFLAGS += -g -fno-inline -D_DEBUG + ifeq ($(shell expr $(DEBUG) \>= 1), 1) + CFLAGS += -g -D_DEBUG + endif + ifeq ($(shell expr $(DEBUG) \>= 2), 1) + CFLAGS += -fno-inline + endif + ifeq ($(shell expr $(DEBUG) \>= 3), 1) + CFLAGS += -O0 + endif endif ifdef PROFILE |