1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-12-26 14:46:16 +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