1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-06-02 12:41:30 +00:00
8bitworkshop/tools/Makefile
2018-11-27 16:22:57 -05:00

20 lines
349 B
Makefile

all: binaries images/parrot.c
%.hex: %
cat $< | hexdump -v -e '"\n.byte" 16/1 ",0x%02x"' | sed "s/byte,/byte /" > $@
%.c: %.CHR.lzg.hex %.CLR.lzg.hex
echo "// MSX mode 2 data" > $@
xxd -i $(word 1,$^) >> $@
xxd -i $(word 2,$^) >> $@
%.lzg: %
lzg -9 $< $@
%.CHR: %.tga
./scr2floyd_percept $<
binaries: scr2floyd scr2floyd_percept galois