mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
configure checks just for ocamlc, but the tools in tools/ocaml depend also on ocamlfind. On my workstation I have just ocamlc installed, but no ocamlfind. As a result make will fail. Update configure.ac to check also for OCAMLFIND, update various Makefiles and replace hardcoded ocamlfind string with $(OCAMLFIND) Please rerun autogen.sh after applying this patch. Signed-off-by: Olaf Hering <olaf@aepfle.de> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
31 lines
667 B
Makefile
31 lines
667 B
Makefile
TOPLEVEL=$(CURDIR)/../..
|
|
XEN_ROOT=$(TOPLEVEL)/../..
|
|
include $(TOPLEVEL)/common.make
|
|
|
|
OBJS = xenmmap
|
|
INTF = $(foreach obj, $(OBJS),$(obj).cmi)
|
|
LIBS = xenmmap.cma xenmmap.cmxa
|
|
|
|
all: $(INTF) $(LIBS) $(PROGRAMS)
|
|
|
|
bins: $(PROGRAMS)
|
|
|
|
libs: $(LIBS)
|
|
|
|
xenmmap_OBJS = $(OBJS)
|
|
xenmmap_C_OBJS = xenmmap_stubs
|
|
OCAML_LIBRARY = xenmmap
|
|
|
|
.PHONY: install
|
|
install: $(LIBS) META
|
|
mkdir -p $(OCAMLDESTDIR)
|
|
$(OCAMLFIND) remove -destdir $(OCAMLDESTDIR) xenmmap
|
|
$(OCAMLFIND) install -destdir $(OCAMLDESTDIR) -ldconf ignore xenmmap META $(INTF) $(LIBS) *.a *.so *.cmx
|
|
|
|
.PHONY: uninstall
|
|
uninstall:
|
|
$(OCAMLFIND) remove -destdir $(OCAMLDESTDIR) xenmmap
|
|
|
|
include $(TOPLEVEL)/Makefile.rules
|
|
|