Source

planck / pa_bind_inline / OMakefile

Full commit
.PHONY: all install clean

USE_OCAMLFIND = true

OCAMLPACKS[] =
	camlp4

NATIVE_ENABLED = $(OCAMLOPT_EXISTS)
BYTE_ENABLED = true

FILES[] =
	pa_bind_inline

LIB = pa_bind_inline

.DEFAULT: $(OCamlLibrary $(LIB), $(FILES))

clean:
	rm $(filter-proper-targets $(ls R, .))

OCAMLDEPFLAGS=-pp camlp4of
OCAMLPPFLAGS=-pp camlp4of

top_test: pa_bind_inline.cma
	ocaml -I +camlp4 dynlink.cma camlp4o.cma pa_bind_inline.cma 

.PHONY: test

test: pa_bind_inline.cma
	camlp4o -printer OCaml -I . pa_bind_inline.cma test_pa_bind_inline.ml  

# It is local use

# install: pa_bind_inline.cma pa_bind_inline.cmxa
# 	ocamlfind remove bind_inline
# 	ocamlfind install bind_inline META pa*.cmo pa*.cmx pa*.cmi pa*.cma pa*.cmxa