# Win32 Makefile stub for separate compilation with Moscow ML.  

MOSMLHOME=d:\mosml
MOSMLTOOLS=camlrunm $(MOSMLHOME)\tools
MOSMLC=mosmlc -c
MOSMLL=mosmlc
MOSMLLEX=mosmllex
MOSMLYACC=mosmlyac

UNITS= -structure Expr Reduce -toplevel Evaluate Test

.SUFFIXES :
.SUFFIXES : .sig .sml .ui .uo

all: Evaluate.uo Expr.uo Reduce.uo

clean:
	del *.ui
	del *.uo
	del Makefile.bak

.sig.ui:
	$(MOSMLC) $<

.sml.uo:
	$(MOSMLC) $<

depend: 
	del Makefile.bak
	ren Makefile Makefile.bak
	$(MOSMLTOOLS)\cutdeps < Makefile.bak > Makefile
	$(MOSMLTOOLS)\mosmldep $(UNITS) >> Makefile

### DO NOT DELETE THIS LINE
Expr.uo: Expr.sml 
	$(MOSMLC) -structure Expr.sml 
Reduce.ui: Reduce.sig Expr.uo 
	$(MOSMLC) -structure Expr.ui Reduce.sig 
Reduce.uo: Reduce.sml Reduce.ui Expr.uo 
	$(MOSMLC) -structure Expr.ui Reduce.sml 
Evaluate.ui: Evaluate.sig Expr.uo Reduce.ui 
	$(MOSMLC) -toplevel Expr.ui Reduce.ui Evaluate.sig 
Evaluate.uo: Evaluate.sml Evaluate.ui Expr.uo Reduce.ui 
	$(MOSMLC) -toplevel Expr.ui Reduce.ui \
    Evaluate.sml 
Test.uo: Test.sml Expr.uo Reduce.ui Evaluate.ui 
	$(MOSMLC) -toplevel Expr.ui Reduce.ui \
    Evaluate.ui Test.sml 

