1
0
mirror of https://github.com/zeldaret/oot.git synced 2024-09-21 04:24:43 +00:00

Refactor Makefile variables to use DEBUG (#1657)

This commit is contained in:
cadmic 2024-01-29 09:20:54 -08:00 committed by GitHub
parent 64d384b4c1
commit 68b41d6b0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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