mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-25 01:34:18 +00:00
Refactor Makefile variables to use DEBUG (#1657)
This commit is contained in:
parent
64d384b4c1
commit
68b41d6b0d
1 changed files with 12 additions and 6 deletions
18
Makefile
18
Makefile
|
@ -51,15 +51,11 @@ endif
|
|||
# Version-specific settings
|
||||
ifeq ($(VERSION),gc-eu-mq)
|
||||
DEBUG := 0
|
||||
CFLAGS += -DNON_MATCHING -DNDEBUG
|
||||
CPPFLAGS += -DNON_MATCHING -DNDEBUG
|
||||
OPTFLAGS := -O2 -g3
|
||||
CFLAGS += -DNON_MATCHING
|
||||
CPPFLAGS += -DNON_MATCHING
|
||||
COMPARE := 0
|
||||
else ifeq ($(VERSION),gc-eu-mq-dbg)
|
||||
DEBUG := 1
|
||||
CFLAGS += -DOOT_DEBUG
|
||||
CPPFLAGS += -DOOT_DEBUG
|
||||
OPTFLAGS := -O2
|
||||
else
|
||||
$(error Unsupported version $(VERSION))
|
||||
endif
|
||||
|
@ -72,6 +68,16 @@ VENV := .venv
|
|||
MAKE = make
|
||||
CPPFLAGS += -fno-dollars-in-identifiers -P
|
||||
|
||||
ifeq ($(DEBUG),1)
|
||||
CFLAGS += -DOOT_DEBUG
|
||||
CPPFLAGS += -DOOT_DEBUG
|
||||
OPTFLAGS := -O2
|
||||
else
|
||||
CFLAGS += -DNDEBUG
|
||||
CPPFLAGS += -DNDEBUG
|
||||
OPTFLAGS := -O2 -g3
|
||||
endif
|
||||
|
||||
ifeq ($(OS),Windows_NT)
|
||||
DETECTED_OS=windows
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue