PP = -pp 'camlp4o $(OCAMLLIB)/bisect/bisect.cma bitstring.cma bitstring_persistent.cma pa_bitstring.cmo'
endif
-test: pa_bitstring.cmo bitstring.cma bitstring_persistent.cma tests/test.bmpp
+test: pa_bitstring.cmo \
+ bitstring.cma bitstring_persistent.cma \
+ bitstring.cmxa bitstring_persistent.cmxa \
+ tests/test.bmpp
@for f in $(TESTS); do \
echo Building $$f; \
$(OCAMLFIND) ocamlopt $(OCAMLOPTFLAGS) $(PP) -package unix $(OCAMLOPTLIBS) -I . bitstring.cmxa $$f.ml -o $$f.opt; \
# Clean.
clean:
- rm -f core *~ *.cmi *.cmo *.cmx *.cma *.cmxa *.a *.o
- rm -f tests/*~ tests/*.cmi tests/*.cmo tests/*.opt
- rm -f examples/*~ examples/*.cmi examples/*.cmo $(EXAMPLES)
+ rm -f core *~ *.cmi *.cmo *.cmx *.cma *.cmxa *.cmp *.a *.o *.so
+ rm -f tests/*~ tests/*.cmi tests/*.cmo tests/*.cmx tests/*.opt
+ rm -f tests/*.o
+ rm -f examples/*~ examples/*.cmi examples/*.cmo examples/*.cmx
+ rm -f examples/*.o $(EXAMPLES)
rm -f benchmarks/*~ benchmarks/*.cmi benchmarks/*.cmo
+ rm -f benchmarks/*.cmx benchmarks/*.o
rm -f benchmarks/*.opt benchmarks/*.opt.p benchmarks/*.profile
+ rm -f create_test_pattern bitstring-objinfo
@for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
distclean: clean