Improved out-of-place build.
authorFlorian Pose <fp@igh-essen.com>
Wed, 04 Jun 2008 09:59:23 +0000
changeset 945 a5907351e13e
parent 944 3da464db1784
child 946 6ef20c5de875
Improved out-of-place build.
Makefile.am
configure.ac
--- a/Makefile.am	Wed Jun 04 08:43:08 2008 +0000
+++ b/Makefile.am	Wed Jun 04 09:59:23 2008 +0000
@@ -54,14 +54,14 @@
 	README.EoE
 
 modules:
-	$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" modules
+	$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" O="@abs_builddir@" modules
 
 modules_install:
 	$(MAKE) -C master modules_install
 	$(MAKE) -C devices modules_install
 
 clean-local:
-	$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" clean
+	$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" O="@abs_builddir@" clean
 	@rm -f Modules.symvers
 
 mydist:
--- a/configure.ac	Wed Jun 04 08:43:08 2008 +0000
+++ b/configure.ac	Wed Jun 04 09:59:23 2008 +0000
@@ -117,7 +117,7 @@
 if test "x${enable8139too}" = "x1"; then
     AC_MSG_CHECKING([for kernel for 8139too driver])
 
-    kernels=`ls -1 devices/ | grep -oE "^8139too-.*-" | cut -d "-" -f 2 | uniq`
+    kernels=`ls -1 ${srcdir}/devices/ | grep -oE "^8139too-.*-" | cut -d "-" -f 2 | uniq`
     found=0
     for k in $kernels; do
         if test "$kernel8139too" = "$k"; then
@@ -172,7 +172,7 @@
 if test "x${enablee100}" = "x1"; then
     AC_MSG_CHECKING([for kernel for e100 driver])
 
-    kernels=`ls -1 devices/ | grep -oE "^e100-.*-" | cut -d "-" -f 2 | uniq`
+    kernels=`ls -1 ${srcdir}/devices/ | grep -oE "^e100-.*-" | cut -d "-" -f 2 | uniq`
     found=0
     for k in $kernels; do
         if test "$kernele100" = "$k"; then
@@ -227,7 +227,7 @@
 if test "x${enableforcedeth}" = "x1"; then
     AC_MSG_CHECKING([for kernel for forcedeth driver])
 
-    kernels=`ls -1 devices/ | grep -oE "^forcedeth-.*-" | cut -d "-" -f 2 | uniq`
+    kernels=`ls -1 ${srcdir}/devices/ | grep -oE "^forcedeth-.*-" | cut -d "-" -f 2 | uniq`
     found=0
     for k in $kernels; do
         if test "$kernelforcedeth" = "$k"; then
@@ -282,7 +282,7 @@
 if test "x${enablee1000}" = "x1"; then
     AC_MSG_CHECKING([for kernel for e1000 driver])
 
-    kernels=`ls -1 devices/e1000/ | grep -oE "^e1000_main-.*" | cut -d "-" -f 2 | uniq`
+    kernels=`ls -1 ${srcdir}/devices/e1000/ | grep -oE "^e1000_main-.*" | cut -d "-" -f 2 | uniq`
     found=0
     for k in $kernels; do
         if test "$kernele1000" = "$k"; then
@@ -337,7 +337,7 @@
 if test "x${enabler8169}" = "x1"; then
     AC_MSG_CHECKING([for kernel for r8169 driver])
 
-    kernels=`ls -1 devices/ | grep -oE "^r8169-.*-" | cut -d "-" -f 2 | uniq`
+    kernels=`ls -1 ${srcdir}/devices/ | grep -oE "^r8169-.*-" | cut -d "-" -f 2 | uniq`
     found=0
     for k in $kernels; do
         if test "$kernelr8169" = "$k"; then