SCRIPT_LEXER_SOURCES = lexer_script.mll
PARSER_SOURCES = parser_cocci_menhir.mly
SOURCES = flag_parsing_cocci.ml type_cocci.ml ast_cocci.ml ast0_cocci.ml \
-pretty_print_cocci.ml unparse_ast0.ml \
+pretty_print_cocci.ml unparse_ast0.ml visitor_ast0_types.ml \
visitor_ast.ml visitor_ast0.ml compute_lines.ml comm_assoc.ml \
iso_pattern.ml iso_compile.ml single_statement.ml simple_assignments.ml \
ast0toast.ml check_meta.ml top_level.ml type_infer.ml test_exps.ml \
$(SCRIPT_LEXER_SOURCES:.mll=.ml) \
get_constants.ml get_constants2.ml parse_cocci.ml
-LIBS=../commons/commons.cma ../globals/globals.cma
+LIBS=../commons/commons.cma ../globals/globals.cma
SYSLIBS = str.cma unix.cma
#MENHIR_PATH=$(shell ocamlfind query menhirLib)
$(OCAMLC) -I $(MENHIR_PATH) -a -o $(LIB) $(MENHIR) $(OBJS)
-$(OPTLIB): $(GENERATED) $(OPTOBJS)
+$(OPTLIB): $(GENERATED) $(OPTOBJS)
$(OCAMLOPT) -I $(MENHIR_PATH) -a -o $(OPTLIB) $(MENHIRO) $(OPTOBJS)
clean::
rm -f $(LIB)
- rm -f $(OPTLIB) $(LIB:.cma=.a)
+ rm -f $(OPTLIB) $(LIB:.cma=.a)
rm -f $(TARGET)
# clean rule for others files
clean::
rm -f *.cm[iox] *.o *.annot
- rm -f *~ .*~ #*#
+ rm -f *~ .*~ #*#
+
+distclean::
+ rm -f .depend
depend: $(GENERATED)
$(OCAMLDEP) *.mli *.ml > .depend