diff -r 3f8e769ca747 -r 458e704afc6e drivers/Makefile --- a/drivers/Makefile Fri Jan 06 16:19:35 2006 +0000 +++ b/drivers/Makefile Fri Jan 06 16:36:03 2006 +0000 @@ -32,11 +32,17 @@ #------------------------------------------------------------------------------ # 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 #------------------------------------------------------------------------------