aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenstore
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-05-19 14:13:20 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-05-19 14:13:20 +0100
commitc7367160e47a01e07fabfcb38fcb5951773b04d4 (patch)
tree8877d3a06c90e10389e696cc4563b75926eb106f /tools/xenstore
parent1f876c2e6e48431940adb8ebd0a6960367cdc853 (diff)
downloadxen-c7367160e47a01e07fabfcb38fcb5951773b04d4.tar.gz
xen-c7367160e47a01e07fabfcb38fcb5951773b04d4.tar.bz2
xen-c7367160e47a01e07fabfcb38fcb5951773b04d4.zip
ocaml-xenstored: Allow to build ocaml xenstored instead of C version
To use, set CONFIG_OCAML_XENSTORED=y at build time. Then the build system will automatically download the remote repo to tools/ocaml-xenstored. Signed-off-by: Alex Zeffertt <alex.zeffertt@eu.citrix.com>
Diffstat (limited to 'tools/xenstore')
-rw-r--r--tools/xenstore/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/xenstore/Makefile b/tools/xenstore/Makefile
index 91b854da90..f64ba9face 100644
--- a/tools/xenstore/Makefile
+++ b/tools/xenstore/Makefile
@@ -26,8 +26,13 @@ LIBXENSTORE := libxenstore.a
xenstore xenstore-control: CFLAGS += -static
endif
+ALL_TARGETS = libxenstore.so libxenstore.a clients xs_tdb_dump
+ifneq ($(CONFIG_OCAML_XENSTORED),y)
+ ALL_TARGETS += xenstored
+endif
+
.PHONY: all
-all: libxenstore.so libxenstore.a xenstored clients xs_tdb_dump
+all: $(ALL_TARGETS)
.PHONY: clients
clients: xenstore $(CLIENTS) xenstore-control
@@ -90,12 +95,14 @@ tarball: clean
.PHONY: install
install: all
+ifneq ($(CONFIG_OCAML_XENSTORED),y)
$(INSTALL_DIR) $(DESTDIR)/var/run/xenstored
$(INSTALL_DIR) $(DESTDIR)/var/lib/xenstored
+ $(INSTALL_PROG) xenstored $(DESTDIR)$(SBINDIR)
+endif
$(INSTALL_DIR) $(DESTDIR)$(BINDIR)
$(INSTALL_DIR) $(DESTDIR)$(SBINDIR)
$(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)
- $(INSTALL_PROG) xenstored $(DESTDIR)$(SBINDIR)
$(INSTALL_PROG) xenstore-control $(DESTDIR)$(BINDIR)
$(INSTALL_PROG) xenstore $(DESTDIR)$(BINDIR)
set -e ; for c in $(CLIENTS) ; do \