summaryrefslogtreecommitdiff
path: root/klibc/MCONFIG
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-12-14 11:42:06 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:13:48 -0700
commit027263f0056e7cbd43c0860ba5dcafd9e4cac916 (patch)
tree263cde65f32acbc82cd616751f758fbd6417cc10 /klibc/MCONFIG
parentbc0410fdb64e295ae74d990185fa0bbc883e5432 (diff)
[PATCH] update klibc to 0.194
Diffstat (limited to 'klibc/MCONFIG')
-rw-r--r--klibc/MCONFIG14
1 files changed, 9 insertions, 5 deletions
diff --git a/klibc/MCONFIG b/klibc/MCONFIG
index d2aa23626c..7da150d031 100644
--- a/klibc/MCONFIG
+++ b/klibc/MCONFIG
@@ -6,19 +6,23 @@
# Eventually support separate compilation, but we don't have it yet...
OBJROOT = $(SRCROOT)
+# Kernel trees (source and obj) - can potentially be different
+KRNLSRC = $(SRCROOT)/linux
+KRNLOBJ = $(SRCROOT)/linux
+
ARCH = $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/)
CROSS =
CC = $(CROSS)gcc
LD = $(CROSS)ld
KLIBSRC = $(SRCROOT)/klibc
KLIBOBJ = $(OBJROOT)/klibc
-REQFLAGS = $(ARCHREQFLAGS) -nostdinc -iwithprefix include \
- -D__KLIBC__ -DBITSIZE=$(BITSIZE) \
- -I$(SRCROOT)/include/arch/$(ARCH) \
+INCLUDE = -I$(SRCROOT)/include/arch/$(ARCH) \
-I$(SRCROOT)/include/bits$(BITSIZE) \
-I$(SRCROOT)/include \
- -I$(SRCROOT)/linux/include -I$(SRCROOT)/linux/include2
-
+ -I$(KRNLOBJ)/include -I$(KRNLOBJ)/include2 -I$(KRNLSRC)/include
+REQFLAGS = $(ARCHREQFLAGS) -nostdinc -iwithprefix include \
+ -D__KLIBC__ -DBITSIZE=$(BITSIZE) \
+ $(INCLUDE)
LDFLAGS =
AR = $(CROSS)ar
RANLIB = $(CROSS)ranlib