summaryrefslogtreecommitdiff
path: root/extras/multipath
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-02-03 00:51:51 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:32:25 -0700
commit977083c253a6c7ec282f1cf36c496ee280dbf069 (patch)
treed96c100588e6e646dc3dfd62af2472466b470466 /extras/multipath
parentc7e2a0bc082321bceea7ac86fa6e1a42bcc91072 (diff)
[PATCH] add KERNEL_DIR option so that the distros will be happy
Based on a patch from Svetoslav Slavtchev <svetljo@gmx.de>
Diffstat (limited to 'extras/multipath')
-rw-r--r--extras/multipath/Makefile4
-rw-r--r--extras/multipath/libdevmapper/Makefile2
2 files changed, 3 insertions, 3 deletions
diff --git a/extras/multipath/Makefile b/extras/multipath/Makefile
index 3f13532e16..0aac146a87 100644
--- a/extras/multipath/Makefile
+++ b/extras/multipath/Makefile
@@ -15,7 +15,7 @@ CC = gcc
GCCINCDIR := ${shell $(CC) -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp"}
CFLAGS = -pipe -g -O2 -Wall -Wunused -Wstrict-prototypes -nostdinc \
-I$(klibcdir)/klibc/include -I$(klibcdir)/klibc/include/bits32 \
- -I$(GCCINCDIR) -I$(klibcdir)/linux/include -I$(sysfsdir) -I.
+ -I$(GCCINCDIR) -I$(KERNEL_DIR)/include -I$(sysfsdir) -I.
OBJS = main.o
CRT0 = ../../klibc/klibc/crt0.o
@@ -32,7 +32,7 @@ SUBDIRS = libdevmapper
recurse:
@for dir in $(SUBDIRS); do\
- $(MAKE) -C $$dir ; \
+ $(MAKE) KERNEL_DIR=$(KERNEL_DIR) -C $$dir ; \
done
$(MAKE) $(EXEC)
diff --git a/extras/multipath/libdevmapper/Makefile b/extras/multipath/libdevmapper/Makefile
index b160075416..a05a31e85a 100644
--- a/extras/multipath/libdevmapper/Makefile
+++ b/extras/multipath/libdevmapper/Makefile
@@ -10,7 +10,7 @@ CC = gcc
GCCINCDIR := ${shell $(CC) -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp"}
CFLAGS = -pipe -g -O2 -Wall -Wunused -Wstrict-prototypes -nostdinc \
-I$(klibcdir)/klibc/include -I$(klibcdir)/klibc/include/bits32 \
- -I$(GCCINCDIR) -I$(klibcdir)/linux/include -I. -Iioctl
+ -I$(GCCINCDIR) -I$(KERNEL_DIR)/include -I. -Iioctl
OBJS = ioctl/libdevmapper.o libdm-common.o