whenproto_clnt.cmo \
whenjobs.cmo
+XOBJECTS = $(OBJECTS:.cmo=.cmx)
+
libdir.ml: Makefile
rm -f $@ $@-t
echo 'let libdir = "$(libdir)/$(PACKAGE_NAME)"' > $@-t
whenproto.x: ../lib/whenproto.x
ln -f $< $@
+if HAVE_OCAMLOPT
+whenjobs: ../lib/whenlib.cmxa $(XOBJECTS)
+ $(OCAMLFIND) opt $(OCAMLCFLAGS) -ccopt -L../lib \
+ -linkpkg whenlib.cmxa $(XOBJECTS) -o $@
+else
whenjobs: ../lib/whenlib.cma $(OBJECTS)
- $(OCAMLFIND) ocamlc -custom $(OCAMLCFLAGS) -ccopt -L../lib \
+ $(OCAMLFIND) c -custom $(OCAMLCFLAGS) -ccopt -L../lib \
-linkpkg whenlib.cma $(OBJECTS) -o $@
+endif
# Rules for all OCaml files.
%.cmi: %.mli ../lib/whenlib.cma
--stderr --utf8 \
$< > $@
+whenjobs.txt: whenjobs.pod
+ pod2text \
+ --stderr --utf8 \
+ $< > $@
+
CLEANFILES = \
*.cmi *.cmo *.cmx *.cma *.cmxa *~ \
libdir.ml \