From: Konrad Rzeszutek Wilk Date: Mon, 1 May 2017 01:06:24 +0000 (-0400) Subject: Makefile: Build libvmi X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=5ba7defb58c975a25cee9846a317782804f7cbaf;p=xentesttools%2Fbootstrap.git Makefile: Build libvmi With Xen headers and all that. Signed-off-by: Konrad Rzeszutek Wilk --- diff --git a/root_image/Makefile b/root_image/Makefile index d67f0ab..8ef451c 100644 --- a/root_image/Makefile +++ b/root_image/Makefile @@ -1072,6 +1072,17 @@ ifeq ($(RPM_ARCH), x86_64) (cd userspace/usr$(LIBSDIR); ln -fs ../lib/libraw1394.so.11) endif +.PHONY: libvmi-install +libvmi-install: + if ! [ -e libvmi/configure ]; then (cd libvmi; ./autogen.sh); fi + if ! [ -e libvmi/config.h ]; then (cd libvmi; CFLAGS="-I$(XEN_SRC)/dist/install/usr/include" LDLIBS="-L$(shell pwd)/userspace/$(LIBSDIR)" ./configure --prefix=/usr --disable-kvm); fi + $(MAKE) -C libvmi clean + $(MAKE) -C libvmi + $(MAKE) $(MFLAGS) -C libvmi DESTDIR=$(CURDIR)/userspace install +ifeq ($(RPM_ARCH), x86_64) + (cd userspace/usr$(LIBSDIR); ln -fs ../lib/libvmi-0.11.so) +endif + .PHONY: gdb-install gdb-install: add-debug-bins $(call RPM_TO_USERSPACE,*libexpat.so*,$(RPM_DIR)/expat)