diff options
Diffstat (limited to 'klibc/MCONFIG')
-rw-r--r-- | klibc/MCONFIG | 14 |
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 |