Reorder the build targets for backwards compatibility with gmake 3.81.

This commit is contained in:
yenatch 2017-05-29 20:14:23 -04:00
parent e78034eb8c
commit 2f2aa10c9c

View File

@ -57,18 +57,6 @@ pokecrystal.gbc: $(crystal_obj)
rgblink -n pokecrystal.sym -m pokecrystal.map -o $@ $^ rgblink -n pokecrystal.sym -m pokecrystal.map -o $@ $^
rgbfix -Cjv -i BYTE -k 01 -l 0x33 -m 0x10 -p 0 -r 3 -t PM_CRYSTAL $@ rgbfix -Cjv -i BYTE -k 01 -l 0x33 -m 0x10 -p 0 -r 3 -t PM_CRYSTAL $@
%.bin: ;
%.blk: ;
%.2bpp: %.png
rgbgfx -o $@ $<
%.1bpp: %.png
rgbgfx -d1 -o $@ $<
%.tilemap: %.png
rgbgfx -t $@ $<
%.gbcpal: %.png
rgbgfx -p $@ $<
define LOUD define LOUD
echo "$1"; $1 echo "$1"; $1
@ -87,14 +75,28 @@ endef
$(call LOUD, tools/lzcomp $< $@); \ $(call LOUD, tools/lzcomp $< $@); \
fi fi
# Terrible hacks to match animations. Delete these rules if you don't care about matching.
# Dewgong has an unused tile id in its last frame. The tile itself is missing.
gfx/pics/dewgong/frames.asm: gfx/pics/dewgong/front.animated.tilemap gfx/pics/dewgong/front.dimensions
tools/pokemon_animation -f $^ > $@
echo " db \$$4d" >> $@
# Lugia has two unused tile ids in its last frame. The tiles themselves are missing.
gfx/pics/lugia/frames.asm: gfx/pics/lugia/front.animated.tilemap gfx/pics/lugia/front.dimensions
tools/pokemon_animation -f $^ > $@
echo " db \$$5e, \$$59" >> $@
# Girafarig has a redundant tile after the end. It is used in two frames, so it must be injected into the generated graphics.
# This is more involved, so it's hacked into pokemon_animation_graphics.
gfx/pics/girafarig/front.animated.2bpp: gfx/pics/girafarig/front.2bpp gfx/pics/girafarig/front.dimensions
tools/pokemon_animation_graphics --girafarig -o $@ $^
gfx/pics/girafarig/front.animated.tilemap: gfx/pics/girafarig/front.2bpp gfx/pics/girafarig/front.dimensions
tools/pokemon_animation_graphics --girafarig -t $@ $^
# Pokemon pic graphics rules # Pokemon pic graphics rules
%.dimensions: %.png
tools/png_dimensions $< $@
%.pal: %.gbcpal
tools/palette $< > $@
gfx/pics/%/normal.gbcpal: gfx/pics/%/front.png gfx/pics/%/normal.gbcpal: gfx/pics/%/front.png
rgbgfx -p $@ $< rgbgfx -p $@ $<
gfx/pics/%/normal.pal: gfx/pics/%/normal.gbcpal gfx/pics/%/normal.pal: gfx/pics/%/normal.gbcpal
@ -123,21 +125,18 @@ gfx/trainers/%.2bpp: gfx/trainers/%.png
rgbgfx -h -o $@ $< rgbgfx -h -o $@ $<
# Terrible hacks to match animations. Delete these rules if you don't care about matching. %.bin: ;
%.blk: ;
# Dewgong has an unused tile id in its last frame. The tile itself is missing. %.2bpp: %.png
gfx/pics/dewgong/frames.asm: gfx/pics/dewgong/front.animated.tilemap gfx/pics/dewgong/front.dimensions rgbgfx -o $@ $<
tools/pokemon_animation -f $^ > $@ %.1bpp: %.png
echo " db \$$4d" >> $@ rgbgfx -d1 -o $@ $<
%.tilemap: %.png
# Lugia has two unused tile ids in its last frame. The tiles themselves are missing. rgbgfx -t $@ $<
gfx/pics/lugia/frames.asm: gfx/pics/lugia/front.animated.tilemap gfx/pics/lugia/front.dimensions %.gbcpal: %.png
tools/pokemon_animation -f $^ > $@ rgbgfx -p $@ $<
echo " db \$$5e, \$$59" >> $@ %.pal: %.gbcpal
tools/palette $< > $@
# Girafarig has a redundant tile after the end. It is used in two frames, so it must be injected into the generated graphics. %.dimensions: %.png
# This is more involved, so it's hacked into pokemon_animation_graphics. tools/png_dimensions $< $@
gfx/pics/girafarig/front.animated.2bpp: gfx/pics/girafarig/front.2bpp gfx/pics/girafarig/front.dimensions
tools/pokemon_animation_graphics --girafarig -o $@ $^
gfx/pics/girafarig/front.animated.tilemap: gfx/pics/girafarig/front.2bpp gfx/pics/girafarig/front.dimensions
tools/pokemon_animation_graphics --girafarig -t $@ $^