master/Makefile
changeset 180 786d4cba38fb
parent 145 11a82e4fd31b
child 191 ca805255a935
--- a/master/Makefile	Mon Apr 10 15:00:03 2006 +0000
+++ b/master/Makefile	Tue Apr 11 08:26:18 2006 +0000
@@ -2,7 +2,7 @@
 #
 #  Makefile
 #
-#  IgH EtherCAT-Treiber
+#  IgH EtherCAT master module
 #
 #  $Id$
 #
@@ -11,7 +11,7 @@
 ifneq ($(KERNELRELEASE),)
 
 #------------------------------------------------------------------------------
-# Kbuild-Abschnitt
+#  kbuild section
 
 obj-m := ec_master.o
 
@@ -25,28 +25,22 @@
 else
 
 #------------------------------------------------------------------------------
-# Default-Abschnitt
+#  default section
 
-ifneq ($(wildcard ethercat.conf),)
-include ethercat.conf
+ifneq ($(wildcard ../ethercat.conf),)
+include ../ethercat.conf
 else
-KERNELDIR = /lib/modules/`uname -r`/build
+KERNEL := $(shell uname -r)
 endif
 
+KERNELDIR = /lib/modules/$(KERNEL)/build
+
 modules:
-	$(MAKE) -C $(KERNELDIR) M=`pwd` modules
+	$(MAKE) -C $(KERNELDIR) M=`pwd`
 
-clean: cleandoc
+clean:
 	$(MAKE) -C $(KERNELDIR) M=`pwd` clean
 
-doc:
-	doxygen Doxyfile
-
-cleandoc:
-	@rm -rf doc
-
-.PHONY: doc cleandoc modules clean
-
 #------------------------------------------------------------------------------
 
 endif