2000-01-31 21:43:25 -08:00
|
|
|
!include ..\support\Makefile.common.nt
|
|
|
|
|
|
|
|
OBJS=tsort.cmo tables.cmo lexer.cmo parser.cmo compile.cmo intf.cmo \
|
2000-02-21 19:28:19 -08:00
|
|
|
printer.cmo maincompile.cmo
|
2000-01-31 21:43:25 -08:00
|
|
|
|
|
|
|
tkcompiler : $(OBJS)
|
|
|
|
$(LABLC) $(LINKFLAGS) -o tkcompiler $(OBJS)
|
|
|
|
|
|
|
|
lexer.ml: lexer.mll
|
|
|
|
$(LABLLEX) lexer.mll
|
|
|
|
|
|
|
|
parser.ml parser.mli: parser.mly
|
|
|
|
$(LABLYACC) -v parser.mly
|
|
|
|
|
|
|
|
clean :
|
|
|
|
rm -f *.cm* parser.ml parser.mli lexer.ml tkcompiler parser.output
|
|
|
|
|
|
|
|
scratch :
|
|
|
|
rm -f *.cm* parser.ml parser.mli lexer.ml tkcompiler
|
|
|
|
|
|
|
|
install:
|
|
|
|
cp tkcompiler $(LABLTKDIR)
|
|
|
|
|
|
|
|
.SUFFIXES :
|
|
|
|
.SUFFIXES : .mli .ml .cmi .cmo .mlp
|
|
|
|
|
|
|
|
.mli.cmi:
|
|
|
|
$(LABLCOMP) $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
.ml.cmo:
|
|
|
|
$(LABLCOMP) $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
depend: parser.ml parser.mli lexer.ml
|
|
|
|
$(LABLDEP) *.mli *.ml > .depend
|
|
|
|
|
|
|
|
!include .depend
|