Source

orakuda / OMakefile

Full commit
# How-to-build using OMake
#
# cp OMakeroot.in OMakeroot # to create OMakeroot for the first time

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

.SUBDIRS: pa test

USE_OCAMLFIND = true

OCAMLPACKS[]= pcre camlp4 spotlib

if $(not $(OCAMLFIND_EXISTS))
   eprintln(This project requires ocamlfind, but is was not found.)
   eprintln(You need to install ocamlfind and run "omake --configure".)
   exit 1

NATIVE_ENABLED = $(OCAMLOPT_EXISTS)
BYTE_ENABLED = true

LIBFILES[] = 
  regexp
  cformat
  std

LIB = orakuda

MyOCamlPackageExtras[] = pa/pa_orakuda.cma pa/pa_orakuda.cmxa

MyOCamlPackage($(LIB), $(LIBFILES), $(EMPTY), $(EMPTY))