Makefile
changeset 71 79d7b9cfdeb9
parent 59 c8bd4fe3b38c
child 73 9f4ea66d89a3
--- 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`