-REQUIRES = http gdome2 gdome2-xslt threads pcre unix
+REQUIRES = http gdome2 gdome2-xslt pcre unix threads
COMMONOPTS = -package "$(REQUIRES)" -pp camlp4o
-OCAMLC = ocamlfind ocamlc $(COMMONOPTS) -thread
-OCAMLOPT = ocamlfind ocamlopt $(COMMONOPTS) -thread
+OCAMLC = ocamlfind ocamlc $(COMMONOPTS)
+OCAMLOPT = ocamlfind ocamlopt $(COMMONOPTS)
OCAMLDEP = ocamlfind ocamldep $(COMMONOPTS)
MODULES = uwobo_common uwobo_styles uwobo_logger uwobo_engine uwobo
OBJS = $(patsubst %,%.cmo,$(MODULES))
uwobo.cmx: uwobo.ml
$(OCAMLOPT) -c $<
uwobo: $(OBJS)
- $(OCAMLC) -linkpkg -o $@ $^
+ $(OCAMLC) -linkpkg -thread -o $@ $^
uwobo.opt: $(OBJSOPT)
- $(OCAMLOPT) -linkpkg -o $@ $^
+ $(OCAMLOPT) -linkpkg -thread -o $@ $^
clean:
rm -f *.cm[aiox] *.o uwobo{,.opt}