2020-12-08 16:32:53 +00:00
|
|
|
|
2021-01-06 02:03:44 +00:00
|
|
|
PNG2GR = ../../../utils/gr-utils/png2gr
|
2020-12-08 16:32:53 +00:00
|
|
|
LZSA = ~/research/lzsa/lzsa/lzsa
|
|
|
|
|
2020-12-17 20:25:55 +00:00
|
|
|
all: level1_graphics.inc level2_graphics.inc
|
2020-12-08 16:32:53 +00:00
|
|
|
|
|
|
|
####
|
|
|
|
|
2020-12-17 20:25:55 +00:00
|
|
|
level1_graphics.inc: level1_bg.lzsa
|
|
|
|
echo "level1_bg_lzsa: .incbin \"level1_bg.lzsa\"" > level1_graphics.inc
|
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
level2_graphics.inc: level2_bg.lzsa
|
|
|
|
echo "level2_bg_lzsa: .incbin \"level2_bg.lzsa\"" > level2_graphics.inc
|
2020-12-08 16:32:53 +00:00
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
%.gr: %.png
|
|
|
|
$(PNG2GR) $< $@
|
|
|
|
|
|
|
|
%.lzsa: %.gr
|
|
|
|
$(LZSA) -r -f2 $< $@
|
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
clean:
|
2020-12-17 20:25:55 +00:00
|
|
|
rm -f *~ *.o *.lst *.lzsa level1_graphics.inc level2_graphics.inc
|