--- a/Makefile Mon Feb 20 08:30:30 2006 +0000
+++ b/Makefile Mon Feb 20 08:36:03 2006 +0000
@@ -13,7 +13,7 @@
#------------------------------------------------------------------------------
# Kbuild-Abschnitt
-obj-m := master/ devices/ rt/ mini/
+obj-m := master/ devices/
#------------------------------------------------------------------------------
@@ -22,7 +22,11 @@
#------------------------------------------------------------------------------
# Default-Abschnitt
+ifneq ($(wildcard ethercat.conf),)
include ethercat.conf
+else
+KERNELDIR := /usr/src/linux
+endif
modules:
$(MAKE) -C $(KERNELDIR) M=`pwd`