TOP=../.. ############################################################################## # Variables ############################################################################## TARGET=lib -include $(TOP)/Makefile.config SRC= ast_c.ml meta_ast_c.ml visitor_c.ml \ ast_c_simple_build.ml \ lib_parsing_c.ml \ parse_c.ml \ test_parsing_c.ml unit_parsing_c.ml \ SYSLIBS= str.cma unix.cma LIBS=$(TOP)/commons/lib.cma \ $(TOP)/h_program-lang/lib.cma \ $(TOP)/lang_cpp/parsing/lib.cma INCLUDEDIRS= \ $(TOP)/commons\ $(TOP)/globals \ $(TOP)/h_program-lang \ $(TOP)/lang_cpp/parsing \ ############################################################################## # Generic variables ############################################################################## -include $(TOP)/Makefile.common ############################################################################## # Top rules ############################################################################## all:: $(TARGET).cma all.opt:: $(TARGET).cmxa $(TARGET).cma: $(OBJS) $(OCAMLC) -a -o $(TARGET).cma $(OBJS) $(TARGET).cmxa: $(OPTOBJS) $(LIBS:.cma=.cmxa) $(OCAMLOPT) -a -o $(TARGET).cmxa $(OPTOBJS) $(TARGET).top: $(OBJS) $(LIBS) $(OCAMLMKTOP) -o $(TARGET).top $(SYSLIBS) $(LIBS) $(OBJS) clean:: rm -f $(TARGET).top visitor_c.cmo: visitor_c.ml $(OCAMLC) -w y -c $< ############################################################################## # Generic rules ############################################################################## ############################################################################## # Literate Programming rules ##############################################################################