open configure/Configure
static. =
PP =
ConfMsgChecking(for ocamlfind)
if $(not $(where ocamlfind))
ConfMsgError($"not found")
ConfMsgResult(found)
ConfMsgChecking(for ocamlnet)
if $(not $(equal $(shell-code ocamlfind query netstring |& cat >/dev/null), 0))
ConfMsgError("not found")
ConfMsgResult(found)
ocamlnet_version = $(shell ocamlfind query -format '%v' netstring)
ConfMsgChecking(for ocamlnet-4)
match $(ocamlnet_version)
case $"4\..*"
ConfMsgResult(found)
OCAMLNET4 = true
PP += -ppopt '-D OCAMLNET4'
export
default
ConfMsgResult(not found)
OCAMLNET4 = false
export
USE_OCAMLFIND = true
BYTE_ENABLED = true
OCAMLDEP_MODULES_ENABLED = false
FILES = webdav_compat \
webdav_http webdav_xml webdav_client_methods webdav_client \
webdav_client_ha \
webdav_netfs
OCAMLPACKS = pxp,netstring,netclient,pxp-pp,camlp4.macro
OCAMLFLAGS = -dtypes
OCAMLFINDFLAGS += -syntax camlp4o $(PP)
.DEFAULT: webdav.cma webdav.cmxa
.PHONY: clean
clean:
rm -f *.o *.a *.cm* *~ *.annot *.run *.opt
OCamlLibrary(webdav, $(FILES))
#OCamlProgram(test_robots, $(FILES) test_robots)