mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-11-22 14:33:51 +00:00
20 lines
349 B
Makefile
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
|
||
|
|