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 $^