aboutsummaryrefslogtreecommitdiffstats
path: root/tools/ocaml/Makefile
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-05-06 11:05:22 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-05-06 11:05:22 +0100
commitd236f2c2449bf963b80d08b6ce40d40be6e0529b (patch)
tree672a79b25cf7d0cd024b5f440220b684c7031950 /tools/ocaml/Makefile
parentf44af660412c358c2fd8c9fd15496b4b6e0018d7 (diff)
downloadxen-d236f2c2449bf963b80d08b6ce40d40be6e0529b.tar.gz
xen-d236f2c2449bf963b80d08b6ce40d40be6e0529b.tar.bz2
xen-d236f2c2449bf963b80d08b6ce40d40be6e0529b.zip
ocaml: Add Makefile rules.
Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
Diffstat (limited to 'tools/ocaml/Makefile')
-rw-r--r--tools/ocaml/Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/tools/ocaml/Makefile b/tools/ocaml/Makefile
new file mode 100644
index 0000000000..73c2988022
--- /dev/null
+++ b/tools/ocaml/Makefile
@@ -0,0 +1,36 @@
+XEN_ROOT = ../..
+include $(XEN_ROOT)/tools/Rules.mk
+
+SUBDIRS_LIBS = \
+ libs/uuid libs/mmap \
+ libs/log libs/xc libs/eventchn \
+ libs/xb libs/xs
+
+SUBDIRS_PROGRAMS = xenstored
+
+SUBDIRS = $(SUBDIRS_LIBS) $(SUBDIRS_PROGRAMS)
+
+.PHONY: all
+all: build
+
+.PHONY: build $(SUBDIRS)
+build: $(SUBDIRS)
+
+$(SUBDIRS):
+ @echo " === building $@"
+ @$(MAKE) --no-print-directory -C $@
+
+.PHONY: install install-libs install-program
+install: install-libs install-program
+
+install-program: $(SUBDIRS_PROGRAMS)
+ $(INSTALL_DIR) $(DESTDIR)$(SBINDIR)
+ $(INSTALL_PROG) xenstored/oxenstored $(DESTDIR)$(SBINDIR)
+
+install-libs: $(SUBDIRS_LIBS)
+
+.PHONY: clean
+clean:
+ @for dir in $(SUBDIRS); do \
+ $(MAKE) --no-print-directory -C $$dir clean; \
+ done