2 REQUIRES = http threads hbugs-common
4 COMMONOPTS = -package "$(REQUIRES)" -pp camlp4o
5 OCAMLC = ocamlfind ocamlc -I $(COMMONDIR) $(COMMONOPTS)
6 OCAMLOPT = ocamlfind ocamlopt -I $(COMMONDIR) $(COMMONOPTS)
7 OCAMLDEP = ocamlfind ocamldep $(COMMONOPTS)
8 MODULES = hbugs_broker_registry
10 hbugs_types threadSafe hbugs_misc hbugs_id_generator hbugs_messages
12 OBJS = $(patsubst %,%.cmo,$(MODULES))
13 OBJSOPT = $(patsubst %,%.cmx,$(MODULES))
14 COMMON_OBJS = $(patsubst %,$(COMMONDIR)/%.cmo,$(COMMON_MODULES))
15 COMMON_OBJSOPT = $(patsubst %,$(COMMONDIR)/%.cmx,$(COMMON_MODULES))
24 $(OCAMLDEP) *.ml *.mli > .depend
27 OCAMLPATH=".." $(OCAMLC) -c $<
29 OCAMLPATH=".." $(OCAMLC) -c $<
31 OCAMLPATH=".." $(OCAMLOPT) -c $<
32 include Makefile.overrides
33 $(NAME): $(OBJS) $(NAME).ml
34 OCAMLPATH=".." $(OCAMLC) -linkpkg -thread -o $@ $(COMMON_OBJS) $^
35 $(NAME).opt: $(OBJSOPT) $(NAME).ml
36 OCAMLPATH=".." $(OCAMLOPT) -linkpkg -thread -o $@ $(COMMON_OBJSOPT) $^
40 rm -f *.cm[aiox] *.o $(NAME){,.opt}
42 .PHONY: all byte opt world depend clean