# makefile for GAMBIT compiler

SH= /bin/sh
MAKE= /bin/make
RM= /bin/rm -f

.SUFFIXES: .scm .FIX .GEN

all:		front target-m68000

gsc-files:	.t
		$(SH) -c "HOST_SYSTEM=gambit $(MAKE) all"

clean:		.t
		$(RM) compiler/*.FIX compiler/*.GEN
		$(RM) GSC/gambit/*.scm GSC/gambit/*.O GSC/gambit/*.o
		$(RM) GSC/mit/*.scm GSC/mit/*.com
		$(RM) GSC/t/*.scm GSC/t/*.mo

front:		compiler/host.FIX \
		compiler/utils.FIX \
		compiler/parms.FIX \
		compiler/scheme.FIX \
		compiler/source.FIX \
		compiler/env.FIX \
		compiler/ptree1.FIX \
		compiler/ptree2.FIX \
		compiler/pvm.FIX \
		compiler/back.FIX \
		compiler/front.FIX

target-m68000:	compiler/target-m68000-1.GEN \
		compiler/target-m68000-2.GEN \
		compiler/target-m68000-3.GEN

.scm.FIX:
		BIN/SCHEME_COMP fix `pwd`/$*

.scm.GEN:
		BIN/SCHEME_COMP gen `pwd`/$*

.t:
