mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-20 06:08:57 +13:00
Now builds debug and non-debug rom files
Also fixes a bug I introduced a while ago where I accidentally added an extra sign into Fuchsia City. Oops.
This commit is contained in:
parent
ee001744dc
commit
6a03f31b66
4 changed files with 15 additions and 10 deletions
14
Makefile
14
Makefile
|
|
@ -1,5 +1,6 @@
|
|||
roms := \
|
||||
kep.gbc
|
||||
kep.gbc \
|
||||
kep_debug.gbc
|
||||
patches := \
|
||||
kep.patch
|
||||
|
||||
|
|
@ -15,6 +16,7 @@ rom_obj := \
|
|||
gfx/tilesets.o
|
||||
|
||||
kep_obj := $(rom_obj:.o=_kep.o)
|
||||
kep_debug_obj := $(rom_obj:.o=_kep_debug.o)
|
||||
|
||||
### Build tools
|
||||
|
||||
|
|
@ -41,6 +43,7 @@ RGBLINK ?= $(RGBDS)rgblink
|
|||
|
||||
all: $(roms)
|
||||
kep: kep.gbc
|
||||
kep_debug: kep_debug.gbc
|
||||
|
||||
clean: tidy
|
||||
find gfx \
|
||||
|
|
@ -59,6 +62,7 @@ tidy:
|
|||
$(patches:.patch=_vc.map) \
|
||||
$(patches:%.patch=vc/%.constants.sym) \
|
||||
$(kep_obj) \
|
||||
$(kep_debug_obj) \
|
||||
rgbdscheck.o
|
||||
$(MAKE) clean -C tools/
|
||||
|
||||
|
|
@ -75,7 +79,8 @@ ifeq ($(DEBUG),1)
|
|||
RGBASMFLAGS += -E
|
||||
endif
|
||||
|
||||
$(kep_obj): RGBASMFLAGS += -D _KEP -D _DEBUG
|
||||
$(kep_obj): RGBASMFLAGS += -D _KEP
|
||||
$(kep_debug_obj): RGBASMFLAGS += -D _KEP -D _DEBUG
|
||||
|
||||
%.patch: vc/%.constants.sym %_vc.gbc %.gbc vc/%.patch.template
|
||||
tools/make_patch $*_vc.sym $^ $@
|
||||
|
|
@ -100,6 +105,7 @@ endef
|
|||
|
||||
# Dependencies for objects (drop _red and _blue from asm file basenames)
|
||||
$(foreach obj, $(kep_obj), $(eval $(call DEP,$(obj),$(obj:_kep.o=.asm))))
|
||||
$(foreach obj, $(kep_debug_obj), $(eval $(call DEP,$(obj),$(obj:_kep_debug.o=.asm))))
|
||||
|
||||
# Dependencies for VC files that need to run scan_includes
|
||||
%.constants.sym: %.constants.asm $(shell tools/scan_includes %.constants.asm) $(preinclude_deps) | rgbdscheck.o
|
||||
|
|
@ -112,8 +118,10 @@ endif
|
|||
|
||||
|
||||
kep_pad = 0x00
|
||||
kep_debug_pad = 0xff
|
||||
|
||||
kep_opt = -jsv -n 0 -k 01 -l 0x33 -m 0x13 -r 03 -t "KEP Hack"
|
||||
kep_opt = -jsv -n 0 -k 01 -l 0x33 -m 0x13 -r 03 -t "KEP HACK"
|
||||
kep_debug_opt = -jsv -n 0 -k 01 -l 0x33 -m 0x13 -r 03 -t "KEP HACK"
|
||||
|
||||
%.gbc: $$(%_obj) layout.link
|
||||
$(RGBLINK) -p $($*_pad) -d -m $*.map -n $*.sym -l layout.link -o $@ $(filter %.o,$^)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue