lambda/Makefile

31 lines
429 B
Makefile
Raw Normal View History

2018-02-13 23:43:40 +00:00
.PHONY: all clean
types.cmo: types.ml
ocamlc -o $@ -c $^
parser: parser.mly
ocamlyacc $^
parser.cmo: parser
ocamlc -c parser.mli
ocamlc -c parser.ml
lexer.cmo: lexer.ml
ocamlc -o $@ -c $^
lexer.ml: parser.cmo
ocamllex lexer.mll
lambda.cmo: lambda.ml
ocamlc -o $@ -c $^
clean:
rm -f lexer.ml parser.ml parser.mli
rm -f *.cmo *.cmi
2018-02-20 11:49:46 +00:00
lambda: types.cmo lexer.cmo parser.cmo lambda.cmo
ocamlc -o $@ $^
all: lambda
2018-02-13 23:43:40 +00:00