mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Removing version differences, and adding Mew
This commit is contained in:
parent
d7940ad08b
commit
f74055e77b
60 changed files with 245 additions and 621 deletions
56
Makefile
56
Makefile
|
|
@ -1,10 +1,7 @@
|
|||
roms := \
|
||||
pokered.gbc \
|
||||
pokeblue.gbc \
|
||||
pokeblue_debug.gbc
|
||||
kep.gbc
|
||||
patches := \
|
||||
pokered.patch \
|
||||
pokeblue.patch
|
||||
kep.patch
|
||||
|
||||
rom_obj := \
|
||||
audio.o \
|
||||
|
|
@ -17,12 +14,7 @@ rom_obj := \
|
|||
gfx/sprites.o \
|
||||
gfx/tilesets.o
|
||||
|
||||
pokered_obj := $(rom_obj:.o=_red.o)
|
||||
pokeblue_obj := $(rom_obj:.o=_blue.o)
|
||||
pokeblue_debug_obj := $(rom_obj:.o=_blue_debug.o)
|
||||
pokered_vc_obj := $(rom_obj:.o=_red_vc.o)
|
||||
pokeblue_vc_obj := $(rom_obj:.o=_blue_vc.o)
|
||||
|
||||
kep_obj := $(rom_obj:.o=_kep.o)
|
||||
|
||||
### Build tools
|
||||
|
||||
|
|
@ -48,11 +40,7 @@ RGBLINK ?= $(RGBDS)rgblink
|
|||
.PHONY: all red blue blue_debug clean tidy compare tools
|
||||
|
||||
all: $(roms)
|
||||
red: pokered.gbc
|
||||
blue: pokeblue.gbc
|
||||
blue_debug: pokeblue_debug.gbc
|
||||
red_vc: pokered.patch
|
||||
blue_vc: pokeblue.patch
|
||||
kep: kep.gbc
|
||||
|
||||
clean: tidy
|
||||
find gfx \
|
||||
|
|
@ -70,11 +58,7 @@ tidy:
|
|||
$(patches:.patch=_vc.sym) \
|
||||
$(patches:.patch=_vc.map) \
|
||||
$(patches:%.patch=vc/%.constants.sym) \
|
||||
$(pokered_obj) \
|
||||
$(pokeblue_obj) \
|
||||
$(pokered_vc_obj) \
|
||||
$(pokeblue_vc_obj) \
|
||||
$(pokeblue_debug_obj) \
|
||||
$(kep_obj) \
|
||||
rgbdscheck.o
|
||||
$(MAKE) clean -C tools/
|
||||
|
||||
|
|
@ -91,11 +75,7 @@ ifeq ($(DEBUG),1)
|
|||
RGBASMFLAGS += -E
|
||||
endif
|
||||
|
||||
$(pokered_obj): RGBASMFLAGS += -D _RED
|
||||
$(pokeblue_obj): RGBASMFLAGS += -D _BLUE
|
||||
$(pokeblue_debug_obj): RGBASMFLAGS += -D _BLUE -D _DEBUG
|
||||
$(pokered_vc_obj): RGBASMFLAGS += -D _RED -D _RED_VC
|
||||
$(pokeblue_vc_obj): RGBASMFLAGS += -D _BLUE -D _BLUE_VC
|
||||
$(kep_obj): RGBASMFLAGS += -D _KEP -D _DEBUG
|
||||
|
||||
%.patch: vc/%.constants.sym %_vc.gbc %.gbc vc/%.patch.template
|
||||
tools/make_patch $*_vc.sym $^ $@
|
||||
|
|
@ -118,11 +98,7 @@ ifeq (,$(filter clean tidy tools,$(MAKECMDGOALS)))
|
|||
$(info $(shell $(MAKE) -C tools))
|
||||
|
||||
# Dependencies for objects (drop _red and _blue from asm file basenames)
|
||||
$(foreach obj, $(pokered_obj), $(eval $(call DEP,$(obj),$(obj:_red.o=.asm))))
|
||||
$(foreach obj, $(pokeblue_obj), $(eval $(call DEP,$(obj),$(obj:_blue.o=.asm))))
|
||||
$(foreach obj, $(pokeblue_debug_obj), $(eval $(call DEP,$(obj),$(obj:_blue_debug.o=.asm))))
|
||||
$(foreach obj, $(pokered_vc_obj), $(eval $(call DEP,$(obj),$(obj:_red_vc.o=.asm))))
|
||||
$(foreach obj, $(pokeblue_vc_obj), $(eval $(call DEP,$(obj),$(obj:_blue_vc.o=.asm))))
|
||||
$(foreach obj, $(kep_obj), $(eval $(call DEP,$(obj),$(obj:_kep.o=.asm))))
|
||||
|
||||
# Dependencies for VC files that need to run scan_includes
|
||||
%.constants.sym: %.constants.asm $(shell tools/scan_includes %.constants.asm) | rgbdscheck.o
|
||||
|
|
@ -134,17 +110,9 @@ endif
|
|||
%.asm: ;
|
||||
|
||||
|
||||
pokered_pad = 0x00
|
||||
pokeblue_pad = 0x00
|
||||
pokered_vc_pad = 0x00
|
||||
pokeblue_vc_pad = 0x00
|
||||
pokeblue_debug_pad = 0xff
|
||||
kep_pad = 0x00
|
||||
|
||||
pokered_opt = -jsv -n 0 -k 01 -l 0x33 -m 0x13 -r 03 -t "POKEMON RED"
|
||||
pokeblue_opt = -jsv -n 0 -k 01 -l 0x33 -m 0x13 -r 03 -t "POKEMON BLUE"
|
||||
pokeblue_debug_opt = -jsv -n 0 -k 01 -l 0x33 -m 0x13 -r 03 -t "POKEMON BLUE"
|
||||
pokered_vc_opt = -jsv -n 0 -k 01 -l 0x33 -m 0x13 -r 03 -t "POKEMON RED"
|
||||
pokeblue_vc_opt = -jsv -n 0 -k 01 -l 0x33 -m 0x13 -r 03 -t "POKEMON BLUE"
|
||||
kep_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,$^)
|
||||
|
|
@ -156,9 +124,6 @@ pokeblue_vc_opt = -jsv -n 0 -k 01 -l 0x33 -m 0x13 -r 03 -t "POKEMON BLUE"
|
|||
gfx/battle/attack_anim_1.2bpp: tools/gfx += --trim-whitespace
|
||||
gfx/battle/attack_anim_2.2bpp: tools/gfx += --trim-whitespace
|
||||
|
||||
gfx/intro/blue_jigglypuff_1.2bpp: rgbgfx += -h
|
||||
gfx/intro/blue_jigglypuff_2.2bpp: rgbgfx += -h
|
||||
gfx/intro/blue_jigglypuff_3.2bpp: rgbgfx += -h
|
||||
gfx/intro/red_nidorino_1.2bpp: rgbgfx += -h
|
||||
gfx/intro/red_nidorino_2.2bpp: rgbgfx += -h
|
||||
gfx/intro/red_nidorino_3.2bpp: rgbgfx += -h
|
||||
|
|
@ -167,8 +132,7 @@ gfx/intro/gengar.2bpp: tools/gfx += --remove-duplicates --preserve=0x19,0x76
|
|||
|
||||
gfx/credits/the_end.2bpp: tools/gfx += --interleave --png=$<
|
||||
|
||||
gfx/slots/red_slots_1.2bpp: tools/gfx += --trim-whitespace
|
||||
gfx/slots/blue_slots_1.2bpp: tools/gfx += --trim-whitespace
|
||||
gfx/slots/slots_1.2bpp: tools/gfx += --trim-whitespace
|
||||
|
||||
gfx/tilesets/%.2bpp: tools/gfx += --trim-whitespace
|
||||
gfx/tilesets/reds_house.2bpp: tools/gfx += --preserve=0x48
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue