ocaml/otherlibs/labltk/compiler/Makefile

37 lines
700 B
Makefile

include ../support/Makefile.common
OBJS=tsort.cmo tables.cmo lexer.cmo parser.cmo compile.cmo intf.cmo \
maincompile.cmo
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