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)
14 gui.ml: hbugs_gui.glade
20 $(NAME): gui.cmo $(NAME).ml
21 $(OCAMLC) -thread -package threads -linkpkg -o $@ $^
22 $(NAME).opt: gui.cmx $(NAME).ml
23 $(OCAMLOPT) -thread -package threads -linkpkg -o $@ $^
25 rm -f *.cm[aixo] *.cmxa *.[oa] $(NAME){,.opt} gui.ml
26 .PHONY: all world byte opt clean