mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-01-10 02:29:58 +00:00
84 lines
2.1 KiB
Makefile
84 lines
2.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: trogdor_graphics.inc \
|
|
priority_trogdor.inc
|
|
|
|
|
|
trogdor_graphics.inc: \
|
|
trogdor_cave.lzsa \
|
|
trogdor_open.lzsa \
|
|
trogdor_flame1.lzsa \
|
|
trogdor_flame2.lzsa \
|
|
trogdor_sleep.lzsa
|
|
echo "trogdor_cave_lzsa: .incbin \"trogdor_cave.lzsa\"" > trogdor_graphics.inc
|
|
echo "trogdor_open_lzsa: .incbin \"trogdor_open.lzsa\"" >> trogdor_graphics.inc
|
|
echo "trogdor_flame1_lzsa: .incbin \"trogdor_flame1.lzsa\"" >> trogdor_graphics.inc
|
|
echo "trogdor_flame2_lzsa: .incbin \"trogdor_flame2.lzsa\"" >> trogdor_graphics.inc
|
|
echo "trogdor_sleep_lzsa: .incbin \"trogdor_sleep.lzsa\"" >> trogdor_graphics.inc
|
|
|
|
###
|
|
|
|
trogdor_cave.lzsa: trogdor_cave.hgr
|
|
$(LZSA) -r -f2 trogdor_cave.hgr trogdor_cave.lzsa
|
|
|
|
trogdor_cave.hgr: trogdor_cave.png
|
|
$(PNG2HGR) trogdor_cave.png > trogdor_cave.hgr
|
|
|
|
###
|
|
|
|
trogdor_open.lzsa: trogdor_open.hgr
|
|
$(LZSA) -r -f2 trogdor_open.hgr trogdor_open.lzsa
|
|
|
|
trogdor_open.hgr: trogdor_open.png
|
|
$(PNG2HGR) trogdor_open.png > trogdor_open.hgr
|
|
|
|
###
|
|
|
|
trogdor_flame1.lzsa: trogdor_flame1.hgr
|
|
$(LZSA) -r -f2 trogdor_flame1.hgr trogdor_flame1.lzsa
|
|
|
|
trogdor_flame1.hgr: trogdor_flame1.png
|
|
$(PNG2HGR) trogdor_flame1.png > trogdor_flame1.hgr
|
|
|
|
###
|
|
|
|
trogdor_flame2.lzsa: trogdor_flame2.hgr
|
|
$(LZSA) -r -f2 trogdor_flame2.hgr trogdor_flame2.lzsa
|
|
|
|
trogdor_flame2.hgr: trogdor_flame2.png
|
|
$(PNG2HGR) trogdor_flame2.png > trogdor_flame2.hgr
|
|
|
|
###
|
|
|
|
trogdor_sleep.lzsa: trogdor_sleep.hgr
|
|
$(LZSA) -r -f2 trogdor_sleep.hgr trogdor_sleep.lzsa
|
|
|
|
trogdor_sleep.hgr: trogdor_sleep.png
|
|
$(PNG2HGR) trogdor_sleep.png > trogdor_sleep.hgr
|
|
|
|
####
|
|
|
|
priority_trogdor.inc: \
|
|
trogdor_priority.lzsa
|
|
echo "trogdor_priority_lzsa: .incbin \"trogdor_priority.lzsa\"" > priority_trogdor.inc
|
|
|
|
####
|
|
|
|
trogdor_priority.lzsa: trogdor_priority.gr
|
|
$(LZSA) -r -f2 trogdor_priority.gr trogdor_priority.lzsa
|
|
|
|
trogdor_priority.gr: trogdor_priority.png
|
|
$(PNG2GR) trogdor_priority.png trogdor_priority.gr
|
|
|
|
####
|
|
|
|
|
|
clean:
|
|
rm -f *~ trogdor_graphics.inc priority_trogdor.inc *.lzsa *.gr *.hgr
|
|
|