Source

ocaml-pure-polyrecord / OMakefile

Full commit
# How-to-build using OMake
#
# yes no | omake --install # to create OMakeroot for the first time

# If OMakeroot is here, include OMyMakefile
if $(file-exists OMakeroot)
   include OMyMakefile
   export

.PHONY: all install clean

OCAMLFLAGS = -annot -w A-4-9-39 
OCAMLDEPFLAGS += -pp camlp4of
OCAMLPPFLAGS  += -pp camlp4of

FILES[] =
    polyrecord

MyOCamlLibrary(polyrecord, $(FILES))

OCAMLPACKS[] =
    camlp4

FILES[]=
    pa_polyrecord

MyOCamlLibrary(pa_polyrecord, $(FILES))

%.out.ml: %.ml pa_polyrecord.cma
    camlp4o pa_polyrecord.cma -printer Camlp4OCamlPrinter $< > $@

test.exe: test.out.ml polyrecord.cma
    ocamlc -o test.exe polyrecord.cma test.out.ml

.DEFAULT: test.exe