37 lines
1.1 KiB
Makefile
Raw Normal View History

2024-05-17 12:49:57 -04:00
include ../../../Makefile.inc
ZX02 = ~/research/6502_compression/zx02.git/build/zx02
PNG_TO_HGR = ../../../utils/hgr-utils/png2hgr
LINKER_SCRIPTS = ../../../linker_scripts
HGR_SPRITE = ../../../utils/hgr-utils/hgr_make_sprite
all: outside_graphics.inc
outside_graphics.inc: \
2024-05-17 22:49:43 -04:00
maglev1_n.hgr.zx02 maglev1_s.hgr.zx02 maglev1_e.hgr.zx02 maglev1_w.hgr.zx02 \
2024-05-20 18:04:33 -04:00
magpath_n.hgr.zx02 magpath_s.hgr.zx02 \
2024-05-21 01:46:44 -04:00
overlook_n.hgr.zx02 overlook_s.hgr.zx02
2024-05-17 12:49:57 -04:00
echo "maglev1_n_zx02: .incbin \"maglev1_n.hgr.zx02\"" > outside_graphics.inc
echo "maglev1_s_zx02: .incbin \"maglev1_s.hgr.zx02\"" >> outside_graphics.inc
echo "maglev1_e_zx02: .incbin \"maglev1_e.hgr.zx02\"" >> outside_graphics.inc
echo "maglev1_w_zx02: .incbin \"maglev1_w.hgr.zx02\"" >> outside_graphics.inc
2024-05-17 22:49:43 -04:00
echo "magpath_n_zx02: .incbin \"magpath_n.hgr.zx02\"" >> outside_graphics.inc
echo "magpath_s_zx02: .incbin \"magpath_s.hgr.zx02\"" >> outside_graphics.inc
echo "overlook_n_zx02: .incbin \"overlook_n.hgr.zx02\"" >> outside_graphics.inc
2024-05-17 22:49:43 -04:00
2024-05-17 12:49:57 -04:00
####
%.hgr: %.png
$(PNG_TO_HGR) $< > $@
%.hgr.zx02: %.hgr
$(ZX02) -f $< $@
####
clean:
rm -f *~ *.o *.lst *.zx02 *.hgr outside_graphics.inc