summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDiegoisawesome <diego@domoreaweso.me>2018-08-29 16:34:59 -0500
committerDiegoisawesome <diego@domoreaweso.me>2018-08-29 16:34:59 -0500
commit7737025f4e839b71477fca6690e95a9ed9325b8a (patch)
tree304ec1a6b3f907c62cfbbfc5ea1c8d42f35ff271 /Makefile
parent8e5c72766c2efd2d3d4e490232fcd5f6c265fe06 (diff)
Use gbafix to generate header and checksum
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9637d98a8..4e504aecb 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,11 @@ include $(DEVKITARM)/base_tools
export CPP := $(PREFIX)cpp
export LD := $(PREFIX)ld
+TITLE := POKEMON EMER
+GAME_CODE := BPEE
+MAKER_CODE := 01
+REVISION := 0
+
SHELL := /bin/bash -o pipefail
ROM := pokeemerald.gba
@@ -165,5 +170,6 @@ $(ELF): $(OBJ_DIR)/ld_script.ld $(OBJS)
cd $(OBJ_DIR) && $(LD) $(LDFLAGS) -T ld_script.ld -o ../../$@ $(OBJS_REL) $(LIB)
$(ROM): $(ELF)
- $(OBJCOPY) -O binary --gap-fill 0xFF --pad-to 0x9000000 $< $@
+ $(OBJCOPY) -O binary $< $@
+ gbafix $@ -p -t"$(TITLE)" -c$(GAME_CODE) -m$(MAKER_CODE) -r$(REVISION)