#!/usr/bin/make
#
# This makefile creates all interpreters from their sources in this
# subdirectory and puts them in taplay/fallback.
#
# You'll need to run this Makefile at least once to get interpreters that
# run on your host system.  You can repeat this for every architecture
# within your network, but then you should create subdirs in
# taplay/fallback that are named after the architecture, eg. macosx/,
# linux/, freebsd/, and so on, and put the compiled interpreters there.


# targets.  Calls individual makefiles.
default: frotz magnetic advsys level9 scare

all: frotz magnetic level9 advint adams \
	advsys scare hugo tads2 tads3 alan2 alan3 agt 


# Infocom Z-Machine 
frotz:
	cd frotz-2.43_vw1; make all; cd ..
	cp -R frotz-2.43_vw1/{,x,d}frotz frotz-2.43_vw1/frotz-* ..
	cd ..; cp -R dfrotz tadfrotz; cp -R frotz tafrotz; cp -R xfrotz taxfrotz; cd src

# Magnetic Scrolls Adventures
magnetic:
	cd magnetic-2.2_vw1; make all; cd ..
	cp -R magnetic-2.2_vw1/{,d}magnetic magnetic-2.2_vw1/magnetic-* ..
	cd ..; cp -R dmagnetic tadmagnetic; cp -R magnetic tamagnetic; cd src

# Level 9 A-Code
level9:
	cd level9-4.0_vw1; make all; cd ..
	cp -R level9-4.0_vw1/{,d}level9 level9-4.0_vw1/level9-* ..
	cd ..; cp -R dlevel9 tadlevel9; cp -R level9 talevel9; cd src

# Adventures International
advint:
	 # not available

# Scott Adams Adventure Interpreter / Graphical Adventures (SAAI/SAGA)
adams:
	 # not available

# Adventure System
advsys:
	cd tail_advsys-1.3; make all; cd ..
	cp -R tail_advsys-1.3/{,d}advint tail_advsys-1.3/advsys-* ..
	cd ..; cp -R dadvint tadadvint; cp -R advint taadvint; cd src

# Adrift engine
scare:
	cd scare-1.3.6_vw1; make all; cd ..
	cp -R scare-1.3.6_vw1/{,d}scare scare-1.3.6_vw1/scare-* ..
	cd ..; cp -R dscare tadscare; cp -R scare tascare; cd src

# HUGO engine
hugo:
	 # not available

# Text Adventure Development System, versions 2 and 3
tads:
	 # not available

# Adventure Language, versions 2 and 3
alan:
	 # not available

# Adventure Game Toolkit
agt:
	 # not available


clean:
	cd frotz-2.43_vw1; make clean; cd ..
	cd magnetic-2.2_vw1; make clean; cd ..
	cd level9-4.0_vw1; make clean; cd ..
	cd tail_advsys-1.3; make clean; cd ..
	cd scare-1.3.6_vw1; make clean; cd ..
