3 REQUIRES = lablgtk threads hbugs-common
4 PREDICATES = glade init
5 COMMONOPTS = -package "$(REQUIRES)" -predicates "$(PREDICATES)"
6 OCAMLC = OCAMLPATH="$(METADIR)" ocamlfind ocamlc $(COMMONOPTS)
7 OCAMLOPT = OCAMLPATH="$(METADIR)" ocamlfind ocamlopt $(COMMONOPTS)
10 DEPS = $(shell $(OCAMLFIND) query -recursive -predicates byte -format "%d/%a" $(REQUIRES))
11 DEPSOPT = $(shell $(OCAMLFIND) query -recursive -predicates native -format "%d/%a" $(REQUIRES))
18 hbugs_client_gui.ml: hbugs_gui.glade
20 hbugs_client_gui.cmo: hbugs_client_gui.ml
22 hbugs_client_gui.cmx: hbugs_client_gui.ml
24 hbugs_client.cmi: hbugs_client.mli
26 hbugs_client.cmo: hbugs_client.ml hbugs_client.cmi
28 hbugs_client.cmx: hbugs_client.ml hbugs_client.cmi
30 $(NAME): $(DEPS) hbugs_client_gui.cmo $(NAME).cmo main.ml
31 $(OCAMLC) -thread -package threads -linkpkg -o $@ hbugs_client_gui.cmo $(NAME).cmo main.ml
32 $(NAME).opt: $(DEPSOPT) hbugs_client_gui.cmx $(NAME).cmx main.ml
33 $(OCAMLOPT) -thread -package threads -linkpkg -o $@ hbugs_client_gui.cmx $(NAME).cmx main.ml
35 rm -f *.cm[aixo] *.cmxa *.[oa] $(NAME){,.opt} hbugs_client_gui.ml
37 .PHONY: all world byte opt clean