summaryrefslogtreecommitdiff
path: root/extras/multipath/Makefile
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/Makefile
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/Makefile')
-rw-r--r--extras/multipath/Makefile4
1 files changed, 2 insertions, 2 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)