mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
... as building and interpreting Ocaml objects in C is rather fragile. For C producing objects for Ocaml to consume, one trick to check validity is Gc.compact() which forces a major sweep, walking all objects. If this doesn't segfault, then we at least got the pointer <-> integer aspects right. For now, start with a very simple version call. (Re)introduce tools/ocaml/tests and add test-ocaml-bindings which is installed into $(DESTDIR)$(LIBEXEC)/tests to be picked up automatically with the other dom0 tests. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Acked-by: Andrii Sultanov <andriy.sultanov@vates.tech>
39 lines
730 B
Makefile
39 lines
730 B
Makefile
XEN_ROOT = $(CURDIR)/../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
SUBDIRS := libs
|
|
SUBDIRS += xenstored
|
|
SUBDIRS += tests
|
|
|
|
.NOTPARALLEL:
|
|
# targets here must be run in order, otherwise we can try
|
|
# to build programs before the libraries are done
|
|
|
|
.PHONY: all
|
|
all: subdirs-all
|
|
|
|
.PHONY: install
|
|
install: subdirs-install
|
|
|
|
.PHONY: uninstall
|
|
uninstall: subdirs-uninstall
|
|
|
|
.PHONY: clean
|
|
clean: subdirs-clean
|
|
|
|
.PHONY: distclean
|
|
distclean: subdirs-distclean
|
|
|
|
.PHONY: build-tools-oxenstored
|
|
build-tools-oxenstored:
|
|
$(MAKE) -s -C libs/eventchn
|
|
$(MAKE) -s -C libs/mmap
|
|
$(MAKE) -s -C libs/xb
|
|
$(MAKE) -s -C libs/xc
|
|
$(MAKE) -s -C libs/xsd_glue
|
|
$(MAKE) -C xenstored
|
|
|
|
.PHONY: format
|
|
format:
|
|
git ls-files '*.ml' '*.mli' | xargs -n1 ocp-indent -i
|