From: Anthony Liguori <aliguori-NZpS4cJIG2HvQtjrzfazuQ@public.gmane.org>
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
Subject: [PATCH] Enhance libkvm Makefile
Date: Thu, 02 Nov 2006 19:03:52 -0600 [thread overview]
Message-ID: <454A9578.1080100@cs.utexas.edu> (raw)
[-- Attachment #1: Type: text/plain, Size: 269 bytes --]
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 <anthony-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
[-- Attachment #2: libkvm-build.diff --]
[-- Type: text/x-patch, Size: 959 bytes --]
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 $^
[-- Attachment #3: Type: text/plain, Size: 373 bytes --]
-------------------------------------------------------------------------
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
[-- Attachment #4: Type: text/plain, Size: 186 bytes --]
_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel
next reply other threads:[~2006-11-03 1:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-03 1:03 Anthony Liguori [this message]
[not found] ` <454A9578.1080100-NZpS4cJIG2HvQtjrzfazuQ@public.gmane.org>
2006-11-03 6:08 ` [PATCH] Enhance libkvm Makefile Avi Kivity
[not found] ` <454ADCE9.7000505-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2006-11-03 6:41 ` Anthony Liguori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=454A9578.1080100@cs.utexas.edu \
--to=aliguori-nzps4cjig2hvqtjrzfazuq@public.gmane.org \
--cc=avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox