#include ../Makefile.inc

LZSA = ~/research/lzsa/lzsa/lzsa
MAKE_VGI = ../../../graphics/hgr/vgi/make_vgi_asm

all:	mist_graphics.inc

####

mist_graphics.inc:	\
	todo.lzsa \
	clock_s.lzsa \
	dock_n.lzsa dock_s.lzsa dock_e.lzsa dock_w.lzsa \
	dock_switch_n.lzsa \
	spaceship_far_n.lzsa \
	spaceship_door_n.lzsa
#	dock_w_open.lzsa \
#	dock_shipup_e.lzsa dock_shipup_n.lzsa \
#	dock_switch_n.lzsa dock_switch_s.lzsa \
#	dock_switch_shipup_s.lzsa \
#	dock_steps_w.lzsa \
#	cat_letter.lzsa \
#	above_dock_e.lzsa above_dock_n.lzsa above_dock_s.lzsa \
#	above_dock_shipup_s.lzsa above_dock_shipup_e.lzsa \
#	step_base_s.lzsa step_base_n.lzsa \
#	step_land1_w.lzsa step_land1_e.lzsa \
#	step_land1_shipup_e.lzsa \
#	step_land2_e.lzsa step_land2_w.lzsa \
#	step_land2_shipup_e.lzsa \
#	step_dentist_n.lzsa step_dentist_e.lzsa step_dentist_w.lzsa \
#	step_dentist_shipup_e.lzsa \
#	step_land3_w.lzsa step_land3_e.lzsa \
#	step_land3_shipup_e.lzsa \
#	step_top_e.lzsa step_top_w.lzsa step_top_n.lzsa step_top_s.lzsa \
#	step_top_shipup_e.lzsa \
#	pool_n.lzsa pool_s.lzsa pool_e.lzsa pool_w.lzsa \
#	pool_shipup_s.lzsa \
#	clock_e.lzsa clock_n.lzsa clock_s.lzsa clock_bridge.lzsa \
#	spaceship_far_e.lzsa spaceship_far_n.lzsa \
#	tree1_n.lzsa tree1_s.lzsa \
#	tree1_shipup_n.lzsa \
#	tree2_n.lzsa tree2_s.lzsa tree2_e.lzsa tree2_w.lzsa \
#	tree5_n.lzsa tree5_e.lzsa tree5_s.lzsa \
#	gear_n.lzsa gear_w.lzsa gear_s.lzsa gear_open_n.lzsa\
#	gear_shipup_s.lzsa \
#	gear_base_n.lzsa \
#	spaceship_switch_s.lzsa spaceship_switch_n.lzsa \
#	spaceship_path_e.lzsa spaceship_path_w.lzsa \
#	tree4_n.lzsa tree4_s.lzsa tree4_w.lzsa tree4_e.lzsa \
#	clock_island_s.lzsa clock_island_n.lzsa \
#	clock_puzzle_s.lzsa clock_puzzle_bridge.lzsa \
#	clock_inside_n.lzsa clock_inside_s.lzsa clock_inside_open.lzsa \
#	gear_open_e.lzsa \
#	pad_n.lzsa pad_e.lzsa \
#	spaceship_door_n.lzsa spaceship_door_open_n.lzsa \
#	tower2_base_w.lzsa tower2_top_w.lzsa \
#	tower2_path_e.lzsa tower2_path_n.lzsa \
#	pillar_cross.lzsa pillar_eye.lzsa pillar_snake.lzsa pillar_emu.lzsa \
#	pillar_bug.lzsa pillar_anchor.lzsa pillar_arrow.lzsa pillar_leaf.lzsa
	echo "dock_n_lzsa: .incbin \"dock_n.lzsa\"" > mist_graphics.inc
	echo "dock_s_lzsa: .incbin \"dock_s.lzsa\"" >> mist_graphics.inc
	echo "dock_e_lzsa: .incbin \"dock_e.lzsa\"" >> mist_graphics.inc
	echo "dock_w_lzsa: .incbin \"dock_w.lzsa\"" >> mist_graphics.inc
	echo "dock_shipup_e_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "dock_shipup_n_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "dock_w_open_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "dock_switch_n_lzsa: .incbin \"dock_switch_n.lzsa\"" >> mist_graphics.inc
	echo "dock_switch_s_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "dock_switch_shipup_s_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "dock_steps_w_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "cat_letter_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "above_dock_e_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "above_dock_s_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "above_dock_n_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "above_dock_shipup_s_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "above_dock_shipup_e_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "step_base_n_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "step_base_s_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "step_land1_w_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "step_land1_e_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "step_land1_shipup_e_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "step_land2_w_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "step_land2_e_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "step_land2_shipup_e_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "step_dentist_n_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "step_dentist_w_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "step_dentist_e_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "step_dentist_shipup_e_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "step_land3_w_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "step_land3_e_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "step_land3_shipup_e_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "step_top_e_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "step_top_w_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "step_top_n_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "step_top_s_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "step_top_shipup_e_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "pool_n_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "pool_s_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "pool_e_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "pool_w_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "pool_shipup_s_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "clock_s_lzsa: .incbin \"clock_s.lzsa\"" >> mist_graphics.inc
	echo "clock_n_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "clock_e_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "clock_bridge_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "spaceship_far_n_lzsa: .incbin \"spaceship_far_n.lzsa\"" >> mist_graphics.inc
	echo "spaceship_far_e_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "tree1_n_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "tree1_s_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "tree1_shipup_n_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "tree2_n_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "tree2_s_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "tree2_e_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "tree2_w_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "tree5_n_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "tree5_s_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "tree5_e_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "gear_n_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "gear_s_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "gear_w_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "gear_shipup_s_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "gear_open_n_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "gear_base_n_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "spaceship_switch_n_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "spaceship_switch_s_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "spaceship_path_w_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "tree4_n_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "tree4_s_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "tree4_w_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "tree4_e_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "clock_island_s_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "clock_island_n_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "clock_puzzle_s_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "clock_puzzle_bridge_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "clock_inside_s_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "clock_inside_n_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "clock_inside_open_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "gear_open_e_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "pad_n_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "pad_e_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "spaceship_door_n_lzsa: .incbin \"spaceship_door_n.lzsa\"" >> mist_graphics.inc
	echo "spaceship_door_open_n_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "tower2_base_w_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "tower2_top_w_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "tower2_path_e_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "tower2_path_n_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "pillar_cross_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "pillar_eye_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "pillar_snake_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "pillar_emu_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "pillar_bug_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "pillar_anchor_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "pillar_arrow_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc
	echo "pillar_leaf_lzsa: .incbin \"todo.lzsa\"" >> mist_graphics.inc


#####

%.data:	%.vgi
	$(MAKE_VGI) -b < $< > $@

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

####

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