include ../../../../../Makefile.inc

PNG2GR = ../../../../../utils/gr-utils/png2gr
LZSA = ~/research/lzsa/lzsa/lzsa

all:	ootw_c14_arena.inc

#####

ootw_c14_arena.inc:	\
	blank.lzsa \
	arena_main_bg.lzsa \
	arena_panel_bg.lzsa \
	inside_bg.lzsa \
	inside03.lzsa inside04.lzsa inside05.lzsa inside06.lzsa \
	inside07.lzsa inside08.lzsa inside09.lzsa inside10.lzsa \
	inside11.lzsa inside12.lzsa inside13.lzsa inside14.lzsa \
	inside15.lzsa inside16.lzsa inside17.lzsa inside18.lzsa \
	inside19.lzsa inside20.lzsa inside21.lzsa inside22.lzsa \
	inside23.lzsa inside24.lzsa inside25.lzsa inside26.lzsa \
	inside27.lzsa inside28.lzsa inside29.lzsa inside30.lzsa \
	inside31.lzsa inside32.lzsa inside33.lzsa inside34.lzsa \
	inside35.lzsa inside36.lzsa inside37.lzsa inside38.lzsa \
	inside39.lzsa inside40.lzsa inside41.lzsa inside42.lzsa \
	inside43.lzsa inside44.lzsa inside45.lzsa \
	lidclose_bg.lzsa \
	lidclose01.lzsa lidclose02.lzsa lidclose03.lzsa lidclose04.lzsa \
	lidclose05.lzsa lidclose06.lzsa lidclose07.lzsa lidclose08.lzsa \
	lidclose09.lzsa lidclose10.lzsa lidclose11.lzsa lidclose12.lzsa \
	lidclose13.lzsa lidclose14.lzsa lidclose15.lzsa lidclose16.lzsa \
	lidclose17.lzsa \
	door_open_bg.lzsa \
	door_open01.lzsa door_open02.lzsa door_open03.lzsa door_open04.lzsa \
	door_open05.lzsa door_open06.lzsa door_open07.lzsa door_open08.lzsa \
	door_open09.lzsa door_open10.lzsa door_open11.lzsa door_open12.lzsa \
	door_open13.lzsa \
	entrance_bg.lzsa \
	entering01.lzsa entering02.lzsa entering03.lzsa entering04.lzsa \
	entering05.lzsa entering06.lzsa entering07.lzsa entering08.lzsa \
	entering09.lzsa entering10.lzsa entering11.lzsa entering12.lzsa \
	entering13.lzsa \
	arena_next_bg.lzsa \
	arena_next01.lzsa arena_next02.lzsa arena_next03.lzsa arena_next04.lzsa \
	arena_next05.lzsa arena_next06.lzsa arena_next07.lzsa arena_next08.lzsa \
	arena_next09.lzsa arena_next10.lzsa arena_next11.lzsa arena_next12.lzsa \
	arena_next13.lzsa arena_next14.lzsa arena_next15.lzsa arena_next16.lzsa \
	arena_next17.lzsa arena_next18.lzsa arena_next19.lzsa arena_next20.lzsa \
	arena_next21.lzsa arena_next22.lzsa arena_next23.lzsa arena_next24.lzsa \
	arena_next25.lzsa arena_next26.lzsa arena_next27.lzsa \
	eject01.lzsa eject02.lzsa eject03.lzsa eject04.lzsa eject05.lzsa \
	eject06.lzsa eject07.lzsa eject08.lzsa eject09.lzsa eject10.lzsa \
	sky_bg.lzsa \
	sky01.lzsa sky02.lzsa sky03.lzsa sky04.lzsa sky05.lzsa
	echo "arena_main_bg_lzsa: .incbin \"arena_main_bg.lzsa\"" > ootw_c14_arena.inc
	echo "arena_panel_bg_lzsa: .incbin \"arena_panel_bg.lzsa\"" >> ootw_c14_arena.inc
	echo "inside_bg_lzsa: .incbin \"inside_bg.lzsa\"" >> ootw_c14_arena.inc
	echo "inside03_lzsa: .incbin \"inside03.lzsa\"" >> ootw_c14_arena.inc
	echo "inside04_lzsa: .incbin \"inside04.lzsa\"" >> ootw_c14_arena.inc
	echo "inside05_lzsa: .incbin \"inside05.lzsa\"" >> ootw_c14_arena.inc
	echo "inside06_lzsa: .incbin \"inside06.lzsa\"" >> ootw_c14_arena.inc
	echo "inside07_lzsa: .incbin \"inside07.lzsa\"" >> ootw_c14_arena.inc
	echo "inside08_lzsa: .incbin \"inside08.lzsa\"" >> ootw_c14_arena.inc
	echo "inside09_lzsa: .incbin \"inside09.lzsa\"" >> ootw_c14_arena.inc
	echo "inside10_lzsa: .incbin \"inside10.lzsa\"" >> ootw_c14_arena.inc
	echo "inside11_lzsa: .incbin \"inside11.lzsa\"" >> ootw_c14_arena.inc
	echo "inside12_lzsa: .incbin \"inside12.lzsa\"" >> ootw_c14_arena.inc
	echo "inside13_lzsa: .incbin \"inside13.lzsa\"" >> ootw_c14_arena.inc
	echo "inside14_lzsa: .incbin \"inside14.lzsa\"" >> ootw_c14_arena.inc
	echo "inside15_lzsa: .incbin \"inside15.lzsa\"" >> ootw_c14_arena.inc
	echo "inside16_lzsa: .incbin \"inside16.lzsa\"" >> ootw_c14_arena.inc
	echo "inside17_lzsa: .incbin \"inside17.lzsa\"" >> ootw_c14_arena.inc
	echo "inside18_lzsa: .incbin \"inside18.lzsa\"" >> ootw_c14_arena.inc
	echo "inside19_lzsa: .incbin \"inside19.lzsa\"" >> ootw_c14_arena.inc
	echo "inside20_lzsa: .incbin \"inside20.lzsa\"" >> ootw_c14_arena.inc
	echo "inside21_lzsa: .incbin \"inside21.lzsa\"" >> ootw_c14_arena.inc
	echo "inside22_lzsa: .incbin \"inside22.lzsa\"" >> ootw_c14_arena.inc
	echo "inside23_lzsa: .incbin \"inside23.lzsa\"" >> ootw_c14_arena.inc
	echo "inside24_lzsa: .incbin \"inside24.lzsa\"" >> ootw_c14_arena.inc
	echo "inside25_lzsa: .incbin \"inside25.lzsa\"" >> ootw_c14_arena.inc
	echo "inside26_lzsa: .incbin \"inside26.lzsa\"" >> ootw_c14_arena.inc
	echo "inside27_lzsa: .incbin \"inside27.lzsa\"" >> ootw_c14_arena.inc
	echo "inside28_lzsa: .incbin \"inside28.lzsa\"" >> ootw_c14_arena.inc
	echo "inside29_lzsa: .incbin \"inside29.lzsa\"" >> ootw_c14_arena.inc
	echo "inside30_lzsa: .incbin \"inside30.lzsa\"" >> ootw_c14_arena.inc
	echo "inside31_lzsa: .incbin \"inside31.lzsa\"" >> ootw_c14_arena.inc
	echo "inside32_lzsa: .incbin \"inside32.lzsa\"" >> ootw_c14_arena.inc
	echo "inside33_lzsa: .incbin \"inside33.lzsa\"" >> ootw_c14_arena.inc
	echo "inside34_lzsa: .incbin \"inside34.lzsa\"" >> ootw_c14_arena.inc
	echo "inside35_lzsa: .incbin \"inside35.lzsa\"" >> ootw_c14_arena.inc
	echo "inside36_lzsa: .incbin \"inside36.lzsa\"" >> ootw_c14_arena.inc
	echo "inside37_lzsa: .incbin \"inside37.lzsa\"" >> ootw_c14_arena.inc
	echo "inside38_lzsa: .incbin \"inside38.lzsa\"" >> ootw_c14_arena.inc
	echo "inside39_lzsa: .incbin \"inside39.lzsa\"" >> ootw_c14_arena.inc
	echo "inside40_lzsa: .incbin \"inside40.lzsa\"" >> ootw_c14_arena.inc
	echo "inside41_lzsa: .incbin \"inside41.lzsa\"" >> ootw_c14_arena.inc
	echo "inside42_lzsa: .incbin \"inside42.lzsa\"" >> ootw_c14_arena.inc
	echo "inside43_lzsa: .incbin \"inside43.lzsa\"" >> ootw_c14_arena.inc
	echo "inside44_lzsa: .incbin \"inside44.lzsa\"" >> ootw_c14_arena.inc
	echo "inside45_lzsa: .incbin \"inside45.lzsa\"" >> ootw_c14_arena.inc
	echo "lidclose_bg_lzsa: .incbin \"lidclose_bg.lzsa\"" >> ootw_c14_arena.inc
	echo "lidclose01_lzsa: .incbin \"lidclose01.lzsa\"" >> ootw_c14_arena.inc
	echo "lidclose02_lzsa: .incbin \"lidclose02.lzsa\"" >> ootw_c14_arena.inc
	echo "lidclose03_lzsa: .incbin \"lidclose03.lzsa\"" >> ootw_c14_arena.inc
	echo "lidclose04_lzsa: .incbin \"lidclose04.lzsa\"" >> ootw_c14_arena.inc
	echo "lidclose05_lzsa: .incbin \"lidclose05.lzsa\"" >> ootw_c14_arena.inc
	echo "lidclose06_lzsa: .incbin \"lidclose06.lzsa\"" >> ootw_c14_arena.inc
	echo "lidclose07_lzsa: .incbin \"lidclose07.lzsa\"" >> ootw_c14_arena.inc
	echo "lidclose08_lzsa: .incbin \"lidclose08.lzsa\"" >> ootw_c14_arena.inc
	echo "lidclose09_lzsa: .incbin \"lidclose09.lzsa\"" >> ootw_c14_arena.inc
	echo "lidclose10_lzsa: .incbin \"lidclose10.lzsa\"" >> ootw_c14_arena.inc
	echo "lidclose11_lzsa: .incbin \"lidclose11.lzsa\"" >> ootw_c14_arena.inc
	echo "lidclose12_lzsa: .incbin \"lidclose12.lzsa\"" >> ootw_c14_arena.inc
	echo "lidclose13_lzsa: .incbin \"lidclose13.lzsa\"" >> ootw_c14_arena.inc
	echo "lidclose14_lzsa: .incbin \"lidclose14.lzsa\"" >> ootw_c14_arena.inc
	echo "lidclose15_lzsa: .incbin \"lidclose15.lzsa\"" >> ootw_c14_arena.inc
	echo "lidclose16_lzsa: .incbin \"lidclose16.lzsa\"" >> ootw_c14_arena.inc
	echo "lidclose17_lzsa: .incbin \"lidclose17.lzsa\"" >> ootw_c14_arena.inc
	echo "door_open_bg_lzsa: .incbin \"door_open_bg.lzsa\"" >> ootw_c14_arena.inc
	echo "door_open01_lzsa: .incbin \"door_open01.lzsa\"" >> ootw_c14_arena.inc
	echo "door_open02_lzsa: .incbin \"door_open02.lzsa\"" >> ootw_c14_arena.inc
	echo "door_open03_lzsa: .incbin \"door_open03.lzsa\"" >> ootw_c14_arena.inc
	echo "door_open04_lzsa: .incbin \"door_open04.lzsa\"" >> ootw_c14_arena.inc
	echo "door_open05_lzsa: .incbin \"door_open05.lzsa\"" >> ootw_c14_arena.inc
	echo "door_open06_lzsa: .incbin \"door_open06.lzsa\"" >> ootw_c14_arena.inc
	echo "door_open07_lzsa: .incbin \"door_open07.lzsa\"" >> ootw_c14_arena.inc
	echo "door_open08_lzsa: .incbin \"door_open08.lzsa\"" >> ootw_c14_arena.inc
	echo "door_open09_lzsa: .incbin \"door_open09.lzsa\"" >> ootw_c14_arena.inc
	echo "door_open10_lzsa: .incbin \"door_open10.lzsa\"" >> ootw_c14_arena.inc
	echo "door_open11_lzsa: .incbin \"door_open11.lzsa\"" >> ootw_c14_arena.inc
	echo "door_open12_lzsa: .incbin \"door_open12.lzsa\"" >> ootw_c14_arena.inc
	echo "door_open13_lzsa: .incbin \"door_open13.lzsa\"" >> ootw_c14_arena.inc
	echo "entrance_bg_lzsa: .incbin \"entrance_bg.lzsa\"" >> ootw_c14_arena.inc
	echo "entering01_lzsa: .incbin \"entering01.lzsa\"" >> ootw_c14_arena.inc
	echo "entering02_lzsa: .incbin \"entering02.lzsa\"" >> ootw_c14_arena.inc
	echo "entering03_lzsa: .incbin \"entering03.lzsa\"" >> ootw_c14_arena.inc
	echo "entering04_lzsa: .incbin \"entering04.lzsa\"" >> ootw_c14_arena.inc
	echo "entering05_lzsa: .incbin \"entering05.lzsa\"" >> ootw_c14_arena.inc
	echo "entering06_lzsa: .incbin \"entering06.lzsa\"" >> ootw_c14_arena.inc
	echo "entering07_lzsa: .incbin \"entering07.lzsa\"" >> ootw_c14_arena.inc
	echo "entering08_lzsa: .incbin \"entering08.lzsa\"" >> ootw_c14_arena.inc
	echo "entering09_lzsa: .incbin \"entering09.lzsa\"" >> ootw_c14_arena.inc
	echo "entering10_lzsa: .incbin \"entering10.lzsa\"" >> ootw_c14_arena.inc
	echo "entering11_lzsa: .incbin \"entering11.lzsa\"" >> ootw_c14_arena.inc
	echo "entering12_lzsa: .incbin \"entering12.lzsa\"" >> ootw_c14_arena.inc
	echo "entering13_lzsa: .incbin \"entering13.lzsa\"" >> ootw_c14_arena.inc
	echo "blank_lzsa: .incbin \"blank.lzsa\"" >> ootw_c14_arena.inc
	echo "arena_next_bg_lzsa: .incbin \"arena_next_bg.lzsa\"" >> ootw_c14_arena.inc
	echo "arena_next01_lzsa: .incbin \"arena_next01.lzsa\"" >> ootw_c14_arena.inc
	echo "arena_next02_lzsa: .incbin \"arena_next02.lzsa\"" >> ootw_c14_arena.inc
	echo "arena_next03_lzsa: .incbin \"arena_next03.lzsa\"" >> ootw_c14_arena.inc
	echo "arena_next04_lzsa: .incbin \"arena_next04.lzsa\"" >> ootw_c14_arena.inc
	echo "arena_next05_lzsa: .incbin \"arena_next05.lzsa\"" >> ootw_c14_arena.inc
	echo "arena_next06_lzsa: .incbin \"arena_next06.lzsa\"" >> ootw_c14_arena.inc
	echo "arena_next07_lzsa: .incbin \"arena_next07.lzsa\"" >> ootw_c14_arena.inc
	echo "arena_next08_lzsa: .incbin \"arena_next08.lzsa\"" >> ootw_c14_arena.inc
	echo "arena_next09_lzsa: .incbin \"arena_next09.lzsa\"" >> ootw_c14_arena.inc
	echo "arena_next10_lzsa: .incbin \"arena_next10.lzsa\"" >> ootw_c14_arena.inc
	echo "arena_next11_lzsa: .incbin \"arena_next11.lzsa\"" >> ootw_c14_arena.inc
	echo "arena_next12_lzsa: .incbin \"arena_next12.lzsa\"" >> ootw_c14_arena.inc
	echo "arena_next13_lzsa: .incbin \"arena_next13.lzsa\"" >> ootw_c14_arena.inc
	echo "arena_next14_lzsa: .incbin \"arena_next14.lzsa\"" >> ootw_c14_arena.inc
	echo "arena_next15_lzsa: .incbin \"arena_next15.lzsa\"" >> ootw_c14_arena.inc
	echo "arena_next16_lzsa: .incbin \"arena_next16.lzsa\"" >> ootw_c14_arena.inc
	echo "arena_next17_lzsa: .incbin \"arena_next17.lzsa\"" >> ootw_c14_arena.inc
	echo "arena_next18_lzsa: .incbin \"arena_next18.lzsa\"" >> ootw_c14_arena.inc
	echo "arena_next19_lzsa: .incbin \"arena_next19.lzsa\"" >> ootw_c14_arena.inc
	echo "arena_next20_lzsa: .incbin \"arena_next20.lzsa\"" >> ootw_c14_arena.inc
	echo "arena_next21_lzsa: .incbin \"arena_next21.lzsa\"" >> ootw_c14_arena.inc
	echo "arena_next22_lzsa: .incbin \"arena_next22.lzsa\"" >> ootw_c14_arena.inc
	echo "arena_next23_lzsa: .incbin \"arena_next23.lzsa\"" >> ootw_c14_arena.inc
	echo "arena_next24_lzsa: .incbin \"arena_next24.lzsa\"" >> ootw_c14_arena.inc
	echo "arena_next25_lzsa: .incbin \"arena_next25.lzsa\"" >> ootw_c14_arena.inc
	echo "arena_next26_lzsa: .incbin \"arena_next26.lzsa\"" >> ootw_c14_arena.inc
	echo "arena_next27_lzsa: .incbin \"arena_next27.lzsa\"" >> ootw_c14_arena.inc
	echo "eject01_lzsa: .incbin \"eject01.lzsa\"" >> ootw_c14_arena.inc
	echo "eject02_lzsa: .incbin \"eject02.lzsa\"" >> ootw_c14_arena.inc
	echo "eject03_lzsa: .incbin \"eject03.lzsa\"" >> ootw_c14_arena.inc
	echo "eject04_lzsa: .incbin \"eject04.lzsa\"" >> ootw_c14_arena.inc
	echo "eject05_lzsa: .incbin \"eject05.lzsa\"" >> ootw_c14_arena.inc
	echo "eject06_lzsa: .incbin \"eject06.lzsa\"" >> ootw_c14_arena.inc
	echo "eject07_lzsa: .incbin \"eject07.lzsa\"" >> ootw_c14_arena.inc
	echo "eject08_lzsa: .incbin \"eject08.lzsa\"" >> ootw_c14_arena.inc
	echo "eject09_lzsa: .incbin \"eject09.lzsa\"" >> ootw_c14_arena.inc
	echo "eject10_lzsa: .incbin \"eject10.lzsa\"" >> ootw_c14_arena.inc
	echo "sky_bg_lzsa: .incbin \"sky_bg.lzsa\"" >> ootw_c14_arena.inc
	echo "sky01_lzsa: .incbin \"sky01.lzsa\"" >> ootw_c14_arena.inc
	echo "sky02_lzsa: .incbin \"sky02.lzsa\"" >> ootw_c14_arena.inc
	echo "sky03_lzsa: .incbin \"sky03.lzsa\"" >> ootw_c14_arena.inc
	echo "sky04_lzsa: .incbin \"sky04.lzsa\"" >> ootw_c14_arena.inc
	echo "sky05_lzsa: .incbin \"sky05.lzsa\"" >> ootw_c14_arena.inc

#####

%.gr:	%.png
	$(PNG2GR) $< $@

%.lzsa:	%.gr
	$(LZSA) -r -f2 $< $@

#####

clean:		
		rm -f *~ *.o *.lst *.lzsa *.inc
