PP = $(PP_SYNTAX) pa_infix.cmo pa_vec.cmo
OCAMLDEPFLAGS = -pp "$(PP)"
OCAMLPPFLAGS = -pp "$(PP)"

# Tell the dependency which cannot be inferred from the source file:
NeedCamlp4Extension(use, pa_vec)
NeedCamlp4Extension(vec, pa_vec)

COMPILED_PGM = $(OCamlProgram use, vec use)
.DEFAULT: $(COMPILED_PGM)

# Show the result of the Camlp4 transformation
.PHONY: show
show: pa_vec.cmo
  $(PP) $^ -printer o use.ml


clean:
  rm -f $(glob *~ *.annot *.cmi *.cmo *.cma *.cmx *.o) $(COMPILED_PGM)



