You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Require rgbds 0.6.0
This commit is contained in:
37
Makefile
37
Makefile
@@ -104,7 +104,7 @@ tools:
|
||||
$(MAKE) -C tools/
|
||||
|
||||
|
||||
RGBASMFLAGS = -L -Weverything -Wnumeric-string=2 -Wtruncation=1
|
||||
RGBASMFLAGS = -hL -Q8 -P includes.asm -Weverything -Wnumeric-string=2 -Wtruncation=1
|
||||
# Create a sym/map for debug purposes if `make` run with `DEBUG=1`
|
||||
ifeq ($(DEBUG),1)
|
||||
RGBASMFLAGS += -E
|
||||
@@ -121,13 +121,13 @@ $(pokecrystal11_vc_obj): RGBASMFLAGS += -D _CRYSTAL11 -D _CRYSTAL11_VC
|
||||
tools/make_patch $*_vc.sym $^ $@
|
||||
|
||||
rgbdscheck.o: rgbdscheck.asm
|
||||
$(RGBASM) -o $@ $<
|
||||
$(RGBASM) $(RGBASMFLAGS) -o $@ $<
|
||||
|
||||
# The dep rules have to be explicit or else missing files won't be reported.
|
||||
# As a side effect, they're evaluated immediately instead of when the rule is invoked.
|
||||
# It doesn't look like $(shell) can be deferred so there might not be a better way.
|
||||
define DEP
|
||||
$1: $2 $$(shell tools/scan_includes $2) | rgbdscheck.o
|
||||
$1: $2 $$(shell tools/scan_includes $2) | includes.asm rgbdscheck.o
|
||||
$$(RGBASM) $$(RGBASMFLAGS) -o $$@ $$<
|
||||
endef
|
||||
|
||||
@@ -146,8 +146,8 @@ $(foreach obj, $(pokecrystal11_debug_obj), $(eval $(call DEP,$(obj),$(obj:11_deb
|
||||
$(foreach obj, $(pokecrystal11_vc_obj), $(eval $(call DEP,$(obj),$(obj:11_vc.o=.asm))))
|
||||
|
||||
# Dependencies for VC files that need to run scan_includes
|
||||
%.constants.sym: %.constants.asm $(shell tools/scan_includes %.constants.asm) | rgbdscheck.o
|
||||
$(RGBASM) $< > $@
|
||||
%.constants.sym: %.constants.asm $(shell tools/scan_includes %.constants.asm) | includes.asm rgbdscheck.o
|
||||
$(RGBASM) $(RGBASMFLAGS) $< > $@
|
||||
|
||||
endif
|
||||
|
||||
@@ -208,14 +208,15 @@ gfx/pokemon/girafarig/front.animated.tilemap: gfx/pokemon/girafarig/front.2bpp g
|
||||
|
||||
### Misc file-specific graphics rules
|
||||
|
||||
gfx/pokemon/%/back.2bpp: rgbgfx += -h
|
||||
gfx/pokemon/%/back.2bpp: rgbgfx += -Z -c embedded
|
||||
gfx/pokemon/%/front.2bpp: rgbgfx += -c embedded
|
||||
|
||||
gfx/trainers/%.2bpp: rgbgfx += -h
|
||||
gfx/trainers/%.2bpp: rgbgfx += -Z -c embedded
|
||||
|
||||
gfx/pokemon/egg/unused_front.2bpp: rgbgfx += -h
|
||||
gfx/pokemon/egg/unused_front.2bpp: rgbgfx += -Z
|
||||
|
||||
gfx/new_game/shrink1.2bpp: rgbgfx += -h
|
||||
gfx/new_game/shrink2.2bpp: rgbgfx += -h
|
||||
gfx/new_game/shrink1.2bpp: rgbgfx += -Z
|
||||
gfx/new_game/shrink2.2bpp: rgbgfx += -Z
|
||||
|
||||
gfx/mail/dragonite.1bpp: tools/gfx += --remove-whitespace
|
||||
gfx/mail/large_note.1bpp: tools/gfx += --remove-whitespace
|
||||
@@ -225,7 +226,7 @@ gfx/mail/litebluemail_border.1bpp: tools/gfx += --remove-whitespace
|
||||
|
||||
gfx/pokedex/pokedex.2bpp: tools/gfx += --trim-whitespace
|
||||
gfx/pokedex/pokedex_sgb.2bpp: tools/gfx += --trim-whitespace
|
||||
gfx/pokedex/question_mark.2bpp: rgbgfx += -h
|
||||
gfx/pokedex/question_mark.2bpp: rgbgfx += -Z
|
||||
gfx/pokedex/slowpoke.2bpp: tools/gfx += --trim-whitespace
|
||||
|
||||
gfx/pokegear/pokegear.2bpp: rgbgfx += -x2
|
||||
@@ -266,13 +267,13 @@ gfx/battle_anims/rocks.2bpp: tools/gfx += --remove-whitespace
|
||||
gfx/battle_anims/skyattack.2bpp: tools/gfx += --remove-whitespace
|
||||
gfx/battle_anims/status.2bpp: tools/gfx += --remove-whitespace
|
||||
|
||||
gfx/player/chris.2bpp: rgbgfx += -h
|
||||
gfx/player/chris_back.2bpp: rgbgfx += -h
|
||||
gfx/player/kris.2bpp: rgbgfx += -h
|
||||
gfx/player/kris_back.2bpp: rgbgfx += -h
|
||||
gfx/player/chris.2bpp: rgbgfx += -Z
|
||||
gfx/player/chris_back.2bpp: rgbgfx += -Z
|
||||
gfx/player/kris.2bpp: rgbgfx += -Z
|
||||
gfx/player/kris_back.2bpp: rgbgfx += -Z
|
||||
|
||||
gfx/trainer_card/chris_card.2bpp: rgbgfx += -h
|
||||
gfx/trainer_card/kris_card.2bpp: rgbgfx += -h
|
||||
gfx/trainer_card/chris_card.2bpp: rgbgfx += -Z
|
||||
gfx/trainer_card/kris_card.2bpp: rgbgfx += -Z
|
||||
gfx/trainer_card/leaders.2bpp: tools/gfx += --trim-whitespace
|
||||
|
||||
gfx/overworld/chris_fish.2bpp: tools/gfx += --trim-whitespace
|
||||
@@ -280,7 +281,7 @@ gfx/overworld/kris_fish.2bpp: tools/gfx += --trim-whitespace
|
||||
|
||||
gfx/sprites/big_onix.2bpp: tools/gfx += --remove-whitespace --remove-xflip
|
||||
|
||||
gfx/battle/dude.2bpp: rgbgfx += -h
|
||||
gfx/battle/dude.2bpp: rgbgfx += -Z
|
||||
|
||||
gfx/font/unused_bold_font.1bpp: tools/gfx += --trim-whitespace
|
||||
|
||||
|
Reference in New Issue
Block a user