-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 %)
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
depend: $(MLSRCS) $(MLISRCS)
- @ $(OCAMLFIND) $(OCAMLDEP) -package "$(OCAMLPACKAGES)" $(MLSRCS) $(MLISRCS) >depend
+ @$(OCAMLFIND) $(OCAMLDEP) -package "$(OCAMLPACKAGES)" $(SYNTAX) $(MLSRCS) $(MLISRCS) >depend
include depend