1 # This Makefile must be included by another one defining:
7 # and put in a directory where there is a .depend file.
9 BIN_DIR = /usr/local/bin
10 OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)"
11 OCAMLC = ocamlfind ocamlc $(OCAMLOPTIONS)
12 OCAMLOPT = ocamlfind ocamlopt $(OCAMLOPTIONS)
15 ARCHIVE = $(PACKAGE).cma
16 ARCHIVE_OPT = $(PACKAGE).cmxa
19 $(ARCHIVE): $(OBJECTS)
22 $(ARCHIVE_OPT): $(OBJECTS:.cmo=.cmx)
23 $(OCAMLOPT) -a -o $@ $^
29 $(OCAMLDEP) $(DEPOBJS) > .depend
31 .SUFFIXES: .ml .mli .cmo .cmi .cmx
40 rm -f *.cm[ioax] *.cmxa *.o
48 .PHONY: all opt depend install uninstall clean