Source

planck / test / OMakefile

.PHONY: all clean

BYTE_ENABLED= true

OCAMLINCLUDES += ../lib

OCAMLFLAGS    += -annot -w Ae
OCAMLCFLAGS   +=
OCAMLOPTFLAGS +=
OCAML_LINK_FLAGS += 
OCAML_BYTE_LINK_FLAGS += planck.cmo
OCAML_NATIVE_LINK_FLAGS += planck.cmx

CAMLP4PACKS[]= sexplib

OCAMLPACKS[]= 
    sexplib
    spotlib

# CR jfuruse: depflags need to list the packages manually
OCAMLDEPFLAGS= -syntax camlp4o -package sexplib.syntax
OCAMLPPFLAGS= -syntax camlp4o -package sexplib.syntax

OCAML_LIBS +=
OCAML_CLIBS +=
OCAML_OTHER_LIBS +=
OCAML_LIB_FLAGS +=

%.cmo %.cmi %.cma %.annot %.spot %.spit : ../lib/planck.cmo ../lib/planck.cmi
%.cmx %.cmxa : ../lib/planck.cmx ../lib/planck.cmo

NO_INSTALL=true
Test(name) = 
   MyOCamlProgram($(name), $(name)) # No install
   export

Test(expr)
# Test(exprexn)
# Test(exprref)

.PHONY: test

expr_test.ml: expr
    ./expr > $@

# Check the parsed result using ocaml toplevel
test: expr_test.ml
     println(Testing the output of expr)
     ocaml $<
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.