mirror of https://github.com/pret/pokecrystal.git
Clean up the makefile a bit
Simplifies/explains png import
This commit is contained in:
parent
0b8c5ef75b
commit
8b8f7200a9
42
Makefile
42
Makefile
|
@ -7,17 +7,24 @@ TEXTFILES = text/sweethoney.tx \
|
||||||
text/phone/trainers1.tx \
|
text/phone/trainers1.tx \
|
||||||
main.tx
|
main.tx
|
||||||
|
|
||||||
VERTFILES = gfx/pics/%.png \
|
VERTGFX = gfx/pics/%.png \
|
||||||
gfx/trainers/%.png
|
gfx/trainers/%.png
|
||||||
|
|
||||||
HORIZFILES = $(filter-out gfx/%.png, $(VERTFILES))
|
HORIZGFX = $(filter-out gfx/%.png, $(VERTGFX))
|
||||||
|
|
||||||
IMGFILES = ${VERTFILES} ${HORIZFILES}
|
|
||||||
|
|
||||||
LZFILES = gfx/%.lz
|
# uncomment this build target to enable png import:
|
||||||
|
|
||||||
|
#all: lzs
|
||||||
|
|
||||||
|
# the recompressed graphics may be larger than the originals,
|
||||||
|
# so take care to reorganize accordingly
|
||||||
|
|
||||||
all: pokecrystal.gbc
|
all: pokecrystal.gbc
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f main.tx pokecrystal.o pokecrystal.gbc ${TEXTFILES}
|
||||||
|
|
||||||
|
|
||||||
pokecrystal.o: pokecrystal.asm constants.asm wram.asm ${TEXTFILES}
|
pokecrystal.o: pokecrystal.asm constants.asm wram.asm ${TEXTFILES}
|
||||||
rgbasm -o pokecrystal.o pokecrystal.asm
|
rgbasm -o pokecrystal.o pokecrystal.asm
|
||||||
|
@ -31,23 +38,18 @@ pokecrystal.gbc: pokecrystal.o
|
||||||
cmp baserom.gbc $@
|
cmp baserom.gbc $@
|
||||||
|
|
||||||
|
|
||||||
pngs:
|
@lzs: ${VERTGFX} ${HORIZGFX}
|
||||||
|
|
||||||
|
@pngs:
|
||||||
cd extras; python gfx.py mass-decompress; python gfx.py dump-pngs
|
cd extras; python gfx.py mass-decompress; python gfx.py dump-pngs
|
||||||
|
|
||||||
|
|
||||||
front.png: tiles.png
|
@front.png: tiles.png
|
||||||
python gfx.py png-to-lz --front $@ $(OBJECT_DIRECTORY)/tiles.2bpp
|
cd extras; python gfx.py png-to-lz --front $@ $(OBJECT_DIRECTORY)/tiles.2bpp
|
||||||
|
@tiles.png:
|
||||||
tiles.png:
|
cd extras; python gfx.py png-to-2bpp $@
|
||||||
python gfx.py png-to-2bpp $@
|
@.png: ${VERTGFX}
|
||||||
|
cd extras; python gfx.py png-to-lz --vert $@
|
||||||
.png: ${VERTFILES}
|
@.png: ${HORIZGFX}
|
||||||
python gfx.py png-to-lz --vert $@
|
cd extras; python gfx.py png-to-lz $@
|
||||||
|
|
||||||
.png: ${HORIZFILES}
|
|
||||||
python gfx.py png-to-lz $@
|
|
||||||
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f main.tx pokecrystal.o pokecrystal.gbc ${TEXTFILES}
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue