[klibc] [PATCH 05/16] Specify VPATH

Mike Waychison mikew at google.com
Mon Mar 1 23:45:54 PST 2010


Specifing VPATH allows make(1) to use an alternate path for sources.  This
allows implicit build rules to find sources when $(srctree) != `pwd`.

Signed-off-by: Mike Waychison <mikew at google.com>
---
 Makefile |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index e9d003b..83c5338 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,9 @@ export KLIBCINC := usr/include
 export KLIBCOBJ := usr/klibc
 export KLIBCKERNELSRC := linux/
 export KLIBCKERNELOBJ := linux/
+
+export VPATH := $(srctree)
+
 include $(srctree)/scripts/Kbuild.include
 
 KLIBCROSS	?= $(CROSS_COMPILE)



More information about the klibc mailing list