1 REQUIRES = helm-xml helm-pxp pcre pxp http
2 COMMONOPTS = -package "$(REQUIRES)" -pp camlp4o
4 OCAMLC = $(OCAMLFIND) ocamlc -thread $(COMMONOPTS)
5 OCAMLOPT = $(OCAMLFIND) ocamlopt -thread $(COMMONOPTS)
6 OCAMLDEP = $(OCAMLFIND) ocamldep $(COMMONOPTS)
9 $(shell $(OCAMLFIND) query -i-format helm-xml) \
10 $(shell $(OCAMLFIND) query -i-format helm-pxp) \
11 $(shell $(OCAMLFIND) query -i-format pcre) \
12 $(shell $(OCAMLFIND) query -i-format pxp-engine) \
13 $(shell $(OCAMLFIND) query -i-format threads) \
14 $(shell $(OCAMLFIND) query -i-format http)
16 hbugs_types threadSafe hbugs_misc \
17 hbugs_common hbugs_id_generator hbugs_messages
19 OBJS = $(patsubst %,%.cmo,$(MODULES))
20 OBJSOPT = $(patsubst %,%.cmx,$(MODULES))
21 DEPS = $(shell $(OCAMLFIND) query -recursive -predicates byte -format "%d/%a" $(REQUIRES))
22 DEPSOPT = $(shell $(OCAMLFIND) query -recursive -predicates native -format "%d/%a" $(REQUIRES))
29 hbugs_common.dot: *.ml *.mli
30 $(OCAMLDOC) -dot -o $@ $^
34 $(OCAMLDEP) *.ml *.mli > .depend
42 include Makefile.overrides
44 $(OBJSOPT): $(DEPSOPT)
48 rm -f *.cm[aiox] *.o $(NAME){,.opt}
50 .PHONY: all byte opt world depend clean