Files
Oliver Bell d355f290fe more changes for sa1 sa2 merge
- Migrate specific game headers into their own folders
- Remove headers from sa1 codebase which can be referenced from sa2
2026-04-07 23:06:16 +01:00

52 lines
887 B
Makefile

### Build Configuration ###
# Default variables
MIDI_COMMENTS := "arm"
PLATFORM ?= gba
GAME_REVISION ?= 0
GAME_REGION ?= USA
GAME ?= GAME_SA2
DEBUG ?= 0
COMPARE ?= 1
# For gbafix
MAKER_CODE := 8P
# Version
BUILD_NAME := collect_rings
TITLE := SONICADVANC2
GAME_CODE := A2N
# Revision
ifeq ($(GAME_REVISION), 0)
BUILD_NAME := $(BUILD_NAME)
else
$(error unknown revision $(GAME_REVISION))
endif
# Region
ifeq ($(GAME_REGION), USA)
BUILD_NAME := $(BUILD_NAME)
GAME_CODE := $(GAME_CODE)E
else
ifeq ($(GAME_REGION), EUROPE)
BUILD_NAME := $(BUILD_NAME)_europe
GAME_CODE := $(GAME_CODE)P
else
ifeq ($(GAME_REGION), JAPAN)
BUILD_NAME := $(BUILD_NAME)_japan
GAME_CODE := $(GAME_CODE)J
else
$(error unknown region $(GAME_REGION))
endif
endif
endif
# Debug
ifeq ($(DEBUG), 1)
COMPARE := 0
BUILD_NAME := $(BUILD_NAME)_debug
endif