31 lines
843 B
Makefile
Raw Normal View History

2024-07-23 23:50:13 -04:00
include ../../../../Makefile.inc
ZX02 = ~/research/6502_compression/zx02.git/build/zx02 -f
PNG_TO_HGR = ../../../../utils/hgr-utils/png2hgr
all: outside_graphics.inc
outside_graphics.inc: \
2024-07-31 00:49:36 -04:00
outside_n.hgr.zx02 outside_s.hgr.zx02 outside_e.hgr.zx02 outside_w.hgr.zx02 \
underdoor_w.hgr.zx02
2024-07-23 23:50:13 -04:00
echo "outside_n_zx02: .incbin \"outside_n.hgr.zx02\"" > outside_graphics.inc
echo "outside_s_zx02: .incbin \"outside_s.hgr.zx02\"" >> outside_graphics.inc
2024-07-26 01:59:11 -04:00
echo "outside_e_zx02: .incbin \"outside_e.hgr.zx02\"" >> outside_graphics.inc
echo "outside_w_zx02: .incbin \"outside_w.hgr.zx02\"" >> outside_graphics.inc
2024-07-31 00:49:36 -04:00
echo "underdoor_w_zx02: .incbin \"underdoor_w.hgr.zx02\"" >> outside_graphics.inc
2024-07-26 01:59:11 -04:00
2024-07-23 23:50:13 -04:00
####
%.hgr: %.png
$(PNG_TO_HGR) $< > $@
%.hgr.zx02: %.hgr
$(ZX02) -f $< $@
####
clean:
rm -f *~ *.o *.lst *.zx02 *.hgr outside_graphics.inc