rt/Makefile
changeset 50 458e704afc6e
parent 46 f2d7a73d2f32
child 56 36d1fa37f5e1
--- a/rt/Makefile	Fri Jan 06 16:19:35 2006 +0000
+++ b/rt/Makefile	Fri Jan 06 16:36:03 2006 +0000
@@ -37,11 +37,17 @@
 #------------------------------------------------------------------------------
 # 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
 
 #------------------------------------------------------------------------------