20 lines
340 B
Makefile
20 lines
340 B
Makefile
calc: lexer.cmo parser.cmo calc.cmo
|
|
ocamlc -o calc lexer.cmo parser.cmo calc.cmo
|
|
|
|
lexer.cmo: lexer.ml
|
|
ocaml -c lexer.ml
|
|
|
|
parser.cmo: parser.ml
|
|
ocaml -c parser.ml
|
|
|
|
calc.cmo: calc.ml
|
|
ocaml -c calc.ml
|
|
|
|
parser.ml: parser.mli
|
|
ocamlc -c parser.mli
|
|
|
|
lexer.ml: lexer.mll
|
|
ocamllex lexer.mll
|
|
|
|
parser.mli: parser.mly
|
|
ocamlyacc parser.mly
|