dos33fsprogs/games/peasant/graphics_title/Makefile
2021-08-12 22:45:18 -04:00

50 lines
1.1 KiB
Makefile

PNG2RLE = ../../../utils/gr-utils/png2rle
PNG2GR = ../../../utils/gr-utils/png2gr
PNG2HGR = ../../../utils/hgr-utils/png2hgr
LZSA = ~/research/lzsa/lzsa/lzsa
B2D = ../../../utils/bmp2dhr/b2d
all: title_graphics.inc
title_graphics.inc: \
peasant_title.lzsa \
peasant_title_trogfree.lzsa \
tips.lzsa
echo "title_lzsa: .incbin \"peasant_title.lzsa\"" > title_graphics.inc
echo "title_trogfree_lzsa: .incbin \"peasant_title_trogfree.lzsa\"" >> title_graphics.inc
echo "tips_lzsa: .incbin \"tips.lzsa\"" >> title_graphics.inc
###
peasant_title.lzsa: peasant_title.hgr
$(LZSA) -r -f2 peasant_title.hgr peasant_title.lzsa
peasant_title.hgr: peasant_title.png
$(PNG2HGR) peasant_title.png > peasant_title.hgr
###
peasant_title_trogfree.lzsa: peasant_title_trogfree.hgr
$(LZSA) -r -f2 peasant_title_trogfree.hgr peasant_title_trogfree.lzsa
peasant_title_trogfree.hgr: peasant_title_trogfree.png
$(PNG2HGR) peasant_title_trogfree.png > peasant_title_trogfree.hgr
###
tips.lzsa: tips.hgr
$(LZSA) -r -f2 tips.hgr tips.lzsa
tips.hgr: tips.png
$(PNG2HGR) tips.png > tips.hgr
###
clean:
rm -f *~ title_graphics.inc *.lzsa *.gr *.hgr