From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: [PATCH] Enhance libkvm Makefile Date: Thu, 02 Nov 2006 19:03:52 -0600 Message-ID: <454A9578.1080100@cs.utexas.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------030406030405090704050803" Return-path: To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, Avi Kivity List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org This is a multi-part message in MIME format. --------------030406030405090704050803 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit The attached patch allows for DESTDIR/PREFIX to be used with the libkvm Makefile as one may expect the should be used. Also, it lets KERNELDIR be specified. Regards, Anthony Liguori Signed-off-by: Anthony Liguori --------------030406030405090704050803 Content-Type: text/x-patch; name="libkvm-build.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="libkvm-build.diff" diff -r ca0347086805 Makefile --- a/Makefile Thu Nov 02 18:59:50 2006 -0600 +++ b/Makefile Thu Nov 02 19:00:05 2006 -0600 @@ -1,12 +1,11 @@ -KERNELDIR = ../kernel +KERNELDIR ?= ../kernel +PREFIX ?= /usr/local CFLAGS = -I $(KERNELDIR)/include $(autodepend-flags) -g CXXFLAGS = $(autodepend-flags) autodepend-flags = -MMD -MF $(dir $*).$(notdir $*).d - -DESTDIR = /usr/local ifeq ($(shell uname -m), x86_64) LIBDIR = /lib64 @@ -25,10 +24,10 @@ flatfiles: test/simple.flat test/stringi test/irq.flat test/sieve.flat test/bootstrap install: - install -D kvmctl.h $(DESTDIR)/include/kvmctl.h + install -D kvmctl.h $(DESTDIR)$(PREFIX)/include/kvmctl.h install -D $(KERNELDIR)/include/linux/kvm.h \ - $(DESTDIR)/include/linux/kvm.h - install -D libkvm.a $(DESTDIR)/$(LIBDIR)/libkvm.a + $(DESTDIR)$(PREFIX)/include/linux/kvm.h + install -D libkvm.a $(DESTDIR)$(PREFIX)/$(LIBDIR)/libkvm.a %.flat: %.o gcc -nostdlib -o $@ -Wl,-T,flat.lds $^ --------------030406030405090704050803 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 --------------030406030405090704050803 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel --------------030406030405090704050803--