X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=benchmark%2FMakefile;h=f02d6b8daad7f708743128642e69ceba6e13cd8d;hb=0c2338bfcdae0df1c68112a10247dc4e68a483ff;hp=11f49910b646311f8f669f39fef4b3a96c4ab4ad;hpb=3623eefccfb5fc69e19ad975a3669f51a2a8b276;p=SXSI%2Fxpathcomp.git diff --git a/benchmark/Makefile b/benchmark/Makefile index 11f4991..f02d6b8 100644 --- a/benchmark/Makefile +++ b/benchmark/Makefile @@ -1,10 +1,10 @@ -MLSRCS = benchmark.ml main.ml +MLSRCS = benchmark.ml main.ml MLISRCS = benchmark.mli MLOBJS = $(MLSRCS:.ml=.cmx) MLCINT = $(MLISRCS:.mli=.cmi) -OCAMLPACKAGES = unix,str +OCAMLPACKAGES = unix,str,camlp4 PPINCLUDES=$(OCAMLINCLUDES:%=-ppopt %) @@ -13,11 +13,11 @@ OCAMLOPT = ocamlopt OCAMLFIND = ocamlfind OCAMLMKLIB = ocamlmklib OCAMLDEP = ocamldep -LINK=$(OCAMLOPT) -linkpkg - +LINK=$(OCAMLOPT) -linkpkg camlp4lib.cmxa +SYNTAX=-syntax camlp4o -ppopt pa_macro.cmo all: $(MLOBJS) - $(OCAMLFIND) $(LINK) -o test_suite -package "$(OCAMLPACKAGES)" $(MLOBJS) + $(OCAMLFIND) $(LINK) -o test_suite -package "$(OCAMLPACKAGES)" $(SYNTAX) $(MLOBJS) .SUFFIXES: .ml .mli .cmx .cmi .PHONY: depend @@ -33,7 +33,7 @@ clean: depend: $(MLSRCS) $(MLISRCS) - @ $(OCAMLFIND) $(OCAMLDEP) -package "$(OCAMLPACKAGES)" $(MLSRCS) $(MLISRCS) >depend + @$(OCAMLFIND) $(OCAMLDEP) -package "$(OCAMLPACKAGES)" $(SYNTAX) $(MLSRCS) $(MLISRCS) >depend include depend