Makefiles verbessert.

This commit is contained in:
Florian Pose 2006-01-06 16:36:03 +00:00
parent 368dcff9b2
commit c844656194
4 changed files with 26 additions and 8 deletions

View File

@ -29,7 +29,7 @@ modules:
clean:
$(MAKE) -C $(KERNELDIR) M=`pwd` clean
rm -rvf */.tmp_versions
@rm -rf */.tmp_versions
doc docs:
doxygen Doxyfile

View File

@ -32,11 +32,17 @@ else
#------------------------------------------------------------------------------
# Default-Abschnitt
ifneq ($(wildcard ethercat.conf),)
include ethercat.conf
else
KERNELDIR = /lib/modules/`uname -r`/build
endif
modules:
$(MAKE) -C ..
$(MAKE) -C $(KERNELDIR) M=`pwd` modules
clean:
$(MAKE) -C .. clean
$(MAKE) -C $(KERNELDIR) M=`pwd` clean
#------------------------------------------------------------------------------

View File

@ -24,11 +24,17 @@ else
#----------------------------------------------------------------
# Default-Abschnitt
ifneq ($(wildcard ethercat.conf),)
include ethercat.conf
else
KERNELDIR = /lib/modules/`uname -r`/build
endif
modules:
$(MAKE) -C ..
$(MAKE) -C $(KERNELDIR) M=`pwd` modules
clean:
$(MAKE) -C .. clean
$(MAKE) -C $(KERNELDIR) M=`pwd` clean
#----------------------------------------------------------------

View File

@ -37,11 +37,17 @@ else
#------------------------------------------------------------------------------
# Default-Abschnitt
default:
$(MAKE) -C ..
ifneq ($(wildcard ethercat.conf),)
include ethercat.conf
else
KERNELDIR = /lib/modules/`uname -r`/build
endif
modules:
$(MAKE) -C $(KERNELDIR) M=`pwd` modules
clean:
$(MAKE) -C .. clean
$(MAKE) -C $(KERNELDIR) M=`pwd` clean
#------------------------------------------------------------------------------