Actually commit the files.
[SXSI/xpathcomp.git] / benchmark / Makefile
index 11f4991..f02d6b8 100644 (file)
@@ -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