1 CAMLP4FLAGS=@CAMLP4FLAGS@
2 PPOPTSFLAGS= $($CAMLP4FLAGS:%=ppopt(%))
3 OCAMLBUILDFLAGS=-j 0 -use-ocamlfind @OCAMLBUILDFLAGS@
4 OCAMLBUILD=@OCAMLBUILD@
5 PACKAGE = @PACKAGE_TARNAME@
6 NATIVE=$(PACKAGE).native
15 TAGS= -tag 'inline($(INLINE))'
18 .PHONY: clean distclean test test_byte test_native do_test all $(TARGETS)
24 @ $(OCAMLBUILD) $(OCAMLBUILDFLAGS) $(TAGS) $(PPOPTFLAGS:%=-tag %) $@
27 @ $(OCAMLBUILD) $(OCAMLBUILDFLAGS) -clean
30 @ rm -rf configure config.log config.status autom4te.cache Makefile
37 test_native: PROG=$(NATIVE)
38 test_native: $(NATIVE) do_test
40 test_byte: PROG=$(BYTE)
41 test_byte: $(BYTE) do_test
45 for test in tests/test_*.sh ; \
47 $${test} $(PROG) tests ; \