1 # make all: make bytecode executable
2 # make clean: remove intermediate files (in this directory)
3 # make CLEAN: remove intermediate files (recursively)
5 #----------------------------------------------------------------------
7 SRC = ast.ml lexer.ml parser.ml generator.ml
10 #----------------------------------------------------------------------
18 rm -f *.cmi *.cmo *.cma *.cmx *.o *.a *.cmxa lexer.ml parser.ml \
26 rm -f *~ depend depend.pkg m2parsergen a.out x.ml
28 #----------------------------------------------------------------------
32 OCAMLC = ocamlc -g $(OPTIONS) $(ROPTIONS)
33 OCAMLOPT = ocamlopt -p $(OPTIONS) $(ROPTIONS)
34 OCAMLDEP = ocamldep $(OPTIONS)
37 #----------------------------------------------------------------------
40 $(OCAMLDEP) $(SRC) >depend
43 $(OCAMLC) -o m2parsergen $(OBJ)
45 .SUFFIXES: .cmo .cmi .cmx .ml .mli .mll .mly