diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -12,12 +12,11 @@ noconfig_targets := menuconfig config oldconfig randconfig \ | |||
12 | defconfig allyesconfig allnoconfig clean distclean \ | 12 | defconfig allyesconfig allnoconfig clean distclean \ |
13 | release tags | 13 | release tags |
14 | 14 | ||
15 | ifndef TOPDIR | 15 | # the toplevel sourcedir |
16 | TOPDIR=$(CURDIR)/ | ||
17 | endif | ||
18 | ifndef top_srcdir | 16 | ifndef top_srcdir |
19 | top_srcdir=$(CURDIR) | 17 | top_srcdir=$(CURDIR) |
20 | endif | 18 | endif |
19 | # toplevel directory of the object-tree | ||
21 | ifndef top_builddir | 20 | ifndef top_builddir |
22 | top_builddir=$(CURDIR) | 21 | top_builddir=$(CURDIR) |
23 | endif | 22 | endif |
@@ -70,7 +69,6 @@ $(filter-out _all,$(MAKECMDGOALS)) _all: $(KBUILD_OUTPUT)/Rules.mak $(KBUILD_OUT | |||
70 | $(MAKE) -C $(KBUILD_OUTPUT) \ | 69 | $(MAKE) -C $(KBUILD_OUTPUT) \ |
71 | top_srcdir=$(CURDIR) \ | 70 | top_srcdir=$(CURDIR) \ |
72 | top_builddir=$(KBUILD_OUTPUT) \ | 71 | top_builddir=$(KBUILD_OUTPUT) \ |
73 | TOPDIR=$(KBUILD_OUTPUT) \ | ||
74 | KBUILD_SRC=$(CURDIR) \ | 72 | KBUILD_SRC=$(CURDIR) \ |
75 | -f $(CURDIR)/Makefile $@ | 73 | -f $(CURDIR)/Makefile $@ |
76 | 74 | ||