-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconfig.mk
48 lines (40 loc) · 795 Bytes
/
config.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
### Build Configuration ###
# Default variables
GAME_REVISION ?= 0
GAME_REGION ?= JAPAN
DEBUG ?= 0
COMPARE ?= 1
# For gbafix
MAKER_CODE := 01
# Version
BUILD_NAME := mother3
TITLE := MOTHER3
GAME_CODE := A3U
# 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)
GAME_CODE := $(GAME_CODE)P
else
ifeq ($(GAME_REGION), JAPAN)
BUILD_NAME := $(BUILD_NAME)
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