1999-12-07 07:25:56 -08:00
|
|
|
include ../support/Makefile.common
|
1999-11-30 06:59:39 -08:00
|
|
|
|
2001-09-06 01:52:32 -07:00
|
|
|
OBJS= ../support/support.cmo tsort.cmo tables.cmo printer.cmo lexer.cmo \
|
|
|
|
parser.cmo compile.cmo intf.cmo maincompile.cmo
|
1999-11-30 06:59:39 -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:
|
2001-09-06 01:52:32 -07:00
|
|
|
$(LABLCOMP) $(COMPFLAGS) -I ../support $<
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
.ml.cmo:
|
2001-09-06 01:52:32 -07:00
|
|
|
$(LABLCOMP) $(COMPFLAGS) -I ../support $<
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
depend: parser.ml parser.mli lexer.ml
|
|
|
|
$(LABLDEP) *.mli *.ml > .depend
|
|
|
|
|
|
|
|
include .depend
|