ALLEGRO_DAT = dat

DST_EXT = map
SRC_EXT1 = pcx
SRC_EXT2 = bmp
MAP_NAMES = \
	007 \
	2d \
	213 \
	3d \
	3x3 \
	4zones \
	666 \
	8 \
	ac \
	alstar1 \
	anaglyph1 \
	anaglyph2 \
	aquarium \
	around \
	bestiole \
	biere \
	big \
	blemmya \
	boa \
	bored \
	bonoball \
	bubbles \
	card \
	carreaux \
	carres \
	centrik \
	charming \
	chenille \
	chess \
	chinois \
	circle \
	circlus \
	clean \
	clown \
	coccinel \
	coeurs \
	confuse \
	cornet3b \
	crown \
	darkone1 \
	darkone2 \
	darkone3 \
	darkone4 \
	derivsol \
	dirt \
	donuts \
	echange \
	echlune \
	egg \
	etoile \
	eyes \
	feuille \
	fille \
	fils \
	flo1 \
	garcon \
	garden \
	glasses \
	h \
	haricot \
	hi \
	honey \
	honeymoon \
	jabberwocky \
	lapin \
	labyrint \
	liqwar \
	logo \
	lost \
	lw \
	lwtab002 \
	lwtab003 \
	lwtab004 \
	lwtab005 \
	lwtab006 \
	lwtab008 \
	lwtab009 \
	lwtabbar \
	lwtabdrt \
	lwtabgen \
	lwtabmic \
	lwtabrec \
	lwtabses \
	lwtabto2 \
	lwtabto4 \
	lwtabtom \
	lwtabtru \
	lwtabvid \
	marionet \
	metation \
	mouse1 \
	muehle \
	musique \
	net1 \
	net2 \
	ordino \
	paper \
	papercut \
	papillon \
	pastel \
	place \
	penta \
	peur \
	pieuvre \
	pigface \
	platform \
	poisson \
	policier \
	portable \
	psyforcegeometry \
	psyforcemultiroom \
	psyforcespheralcube \
	psyforcesquares \
	psyforceultramultiroom \
	puckman \
	quaders \
	rect \
	rectangle \
	rene02 \
	rene03 \
	rene04 \
	rolz \
	rough \
	sgdb \
	skull \
	skullbig \
	slimy \
	smile \
	sol \
	solsystembyn \
	sonnesystem \
	spagueti \
	strike \
	tag \
	tuyaux \
	tiles \
	tilt \
	tipi \
	titanic \
	trumpet \
	tulipes \
	underground \
	velo \
	village \
	void \
	volet \
	watch \
	world1 \
	world2 \
	world3 \
	world4 \
	z

MAP_FILES = $(addsuffix .$(DST_EXT), $(MAP_NAMES))

all: map.dat

map.dat: $(MAP_FILES)
	@rm -f $@
	@echo Creating map.dat
	@dat -a -t raw map.dat $(MAP_FILES)

clean:
	@rm -f *.$(DST_EXT) *.dat

distclean:
	@rm -f Makefile

%.$(DST_EXT): %.$(SRC_EXT1)
	@echo Converting $< to $@
	@../../utils/liquidwarmap -s $<

%.$(DST_EXT): %.$(SRC_EXT2)
	@echo Converting $< to $@
	@../../utils/liquidwarmap -s $<



