mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-28 08:59:09 +00:00
(svn r1983) Introduce multiple compile time debug levels
This commit is contained in:
10
Makefile
10
Makefile
@@ -286,7 +286,15 @@ ifeq ($(shell if test $(CC_VERSION) -ge 34; then echo true; fi), true)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef DEBUG
|
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
|
endif
|
||||||
|
|
||||||
ifdef PROFILE
|
ifdef PROFILE
|
||||||
|
Reference in New Issue
Block a user