OCAML_LIBS    = ../util/version ../idl/ocaml_backend/common ../idl/ocaml_backend/client
OCAMLINCLUDES = ../idl/ocaml_backend ../idl ../autogen ../client_records
OCAMLPACKS    = xml-light2 stdext stunnel http-svr log rpc-light

OCamlProgram(multipathrt, \
	multipathrt multipathrt_exceptions \
	utils devmapper_utils iscsi_utils netapp_utils hba_utils alert_utils \
	globs ../client_records/record_util \
	tc_9068 tc_9069 tc_9071 tc_9072 tc_9078 tc_9079 tc_9074)

.PHONY: clean

clean:
	rm -f *.cmi *.cmx *.cmo *.a *.cma *.cmxa *.run *.opt *.annot *.o multipathrt

.PHONY: install
install:
	mkdir -p $(DEBUGDIST)
	$(IPROG) multipathrt $(DEBUGDIST)
	mkdir -p $(DESTDIR)/etc/xapi.d/plugins
	$(IPROG) multipathrt-helper $(DESTDIR)/etc/xapi.d/plugins/multipathrt-helper
