1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
.NOTPARALLEL:
.SUFFIXES:
.PHONY: all opt run clean
TESTS := $(wildcard test_*.ml)
ifdef minimal
TESTS := $(filter-out test_Base64.ml test_Unzip.ml test_UChar.ml test_UTF8.ml, $(TESTS))
endif
all:
ifndef INSTALLED
$(MAKE) -C ../src all minimal=$(minimal)
ocamlc -I ../src extLib.cma util.ml $(TESTS) runner.ml -o extlib_test
else
ocamlfind ocamlc -linkall -linkpkg -package extlib util.ml $(TESTS) runner.ml -o extlib_test
endif
opt:
ifndef INSTALLED
$(MAKE) -C ../src opt minimal=$(minimal)
ocamlopt -I ../src extLib.cmxa util.ml $(TESTS) runner.ml -o extlib_test
else
ocamlfind ocamlopt -linkall -linkpkg -package extlib util.ml $(TESTS) runner.ml -o extlib_test
endif
run:
./extlib_test
clean:
rm -rf *.cm* *.o *.obj extlib_test
|