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

# Tell the dependency which cannot be inderred from the source file:
NeedCamlp4Extension(use, pa_length)
NeedCamlp4Extension(length, pa_length)

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

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

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



