NAME = hbugs_broker
METADIR = ../meta
-REQUIRES = http threads hbugs-common hbugs-thread-safe
+REQUIRES = http threads hbugs-common hbugs-thread-safe threads
COMMONOPTS = -package "$(REQUIRES)" -pp camlp4o
OCAMLFIND = ocamlfind
-OCAMLC = $(OCAMLFIND) ocamlc $(COMMONOPTS)
-OCAMLOPT = $(OCAMLFIND) ocamlopt $(COMMONOPTS)
+OCAMLC = $(OCAMLFIND) ocamlc -thread $(COMMONOPTS)
+OCAMLOPT = $(OCAMLFIND) ocamlopt -thread $(COMMONOPTS)
OCAMLDEP = $(OCAMLFIND) ocamldep $(COMMONOPTS)
MODULES = hbugs_broker_registry
OCAMLDOC = \
REQUIRES = lablgtk2 threads hbugs-common
PREDICATES = glade init
COMMONOPTS = -package "$(REQUIRES)" -predicates "$(PREDICATES)"
-OCAMLC = OCAMLPATH="$(METADIR)" ocamlfind ocamlc $(COMMONOPTS)
-OCAMLOPT = OCAMLPATH="$(METADIR)" ocamlfind ocamlopt $(COMMONOPTS)
+OCAMLC = OCAMLPATH="$(METADIR)" ocamlfind ocamlc -thread $(COMMONOPTS)
+OCAMLOPT = OCAMLPATH="$(METADIR)" ocamlfind ocamlopt -thread $(COMMONOPTS)
OCAMLFIND = ocamlfind
DEPS = $(shell $(OCAMLFIND) query -recursive -predicates byte -format "%d/%a" $(REQUIRES))
REQUIRES = helm-xml helm-pxp pcre pxp http
COMMONOPTS = -package "$(REQUIRES)" -pp camlp4o
OCAMLFIND = ocamlfind
-OCAMLC = $(OCAMLFIND) ocamlc $(COMMONOPTS)
-OCAMLOPT = $(OCAMLFIND) ocamlopt $(COMMONOPTS)
+OCAMLC = $(OCAMLFIND) ocamlc -thread $(COMMONOPTS)
+OCAMLOPT = $(OCAMLFIND) ocamlopt -thread $(COMMONOPTS)
OCAMLDEP = $(OCAMLFIND) ocamldep $(COMMONOPTS)
OCAMLDOC = \
ocamldoc \
-requires="pcre pxp http hbugs-common"
+requires="pcre pxp http hbugs-common lablgtk2.glade"
directory="@HBUGS_CLIENT_DIR@"
archive(byte) = "hbugs_client_gui.cmo hbugs_client.cmo"
archive(native) = "hbugs_client_gui.cmx hbugs_client.cmx"