mirror of
https://github.com/deater/tb1.git
synced 2025-01-11 22:30:02 +00:00
a064de86c9
This actually makes the executable bigger for now, as it's not actually compressing yet.
44 lines
1.2 KiB
Makefile
44 lines
1.2 KiB
Makefile
AS=cl65
|
|
LD=ld65
|
|
|
|
|
|
all: checksum.inc
|
|
|
|
|
|
tb1_snes.sfc: tb1_snes.o snes-hirom.cfg
|
|
$(LD) -o tb1_snes.sfc --config snes-hirom.cfg --obj tb1_snes.o
|
|
|
|
tb1_snes.o: tb1_snes.s \
|
|
snes_init.s opening.s title_screen.s level_1.s \
|
|
svmwgraph.s \
|
|
tb1_title.tiles tb1_opening.tiles \
|
|
level1_pal0.sprites \
|
|
tbfont.inc
|
|
$(AS) -t none -o tb1_snes.o -l tb1_snes.lst -c tb1_snes.s
|
|
|
|
|
|
level1_pal0.sprites: graphics/level1_pal0.pcx tools/pcx_to_tiles_4bpp
|
|
./tools/pcx_to_tiles_4bpp level1_pal0 < graphics/level1_pal0.pcx > level1_pal0.sprites
|
|
|
|
tb1_opening.tiles: graphics/vmw_logo.pcx ./tools/pcx_to_tiles_8bpp
|
|
./tools/pcx_to_tiles_8bpp vmw_logo < graphics/vmw_logo.pcx > tb1_opening.tiles
|
|
|
|
tb1_title.tiles: graphics/tb1_title.pcx ./tools/pcx_to_compressed_tilemap_8bpp
|
|
./tools/pcx_to_compressed_tilemap_8bpp title_screen < graphics/tb1_title.pcx > tb1_title.tiles
|
|
|
|
checksum.inc: ./tools/snes_checksum tb1_snes.sfc
|
|
./tools/snes_checksum < tb1_snes.sfc > checksum.inc
|
|
|
|
tbfont.inc: ./tools/tbfont.tb1 ./tools/convert_font_4bpp
|
|
./tools/convert_font_4bpp < ./tools/tbfont.tb1 > tbfont.inc
|
|
|
|
tools/snes_checksum:
|
|
cd tools && make
|
|
|
|
tools/pcx_to_tiles_8bpp:
|
|
cd tools && make
|
|
|
|
clean:
|
|
rm -f *~ *.o *.lst *.sfc *.tiles *.sprites tbfont.inc
|
|
cd tools && make clean
|