mirror of
https://github.com/SAT-R/sa2.git
synced 2026-10-28 09:43:38 +00:00
48 lines
817 B
Makefile
48 lines
817 B
Makefile
### Build Configuration ###
|
|
|
|
# Default variables
|
|
GAME_REVISION ?= 0
|
|
GAME_REGION ?= USA
|
|
DEBUG ?= 0
|
|
COMPARE ?= 1
|
|
|
|
# For gbafix
|
|
MAKER_CODE := 8P
|
|
|
|
# Version
|
|
BUILD_NAME := subgame_loader
|
|
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
|