--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/libec/Makefile Fri Jan 20 17:50:35 2006 +0000
@@ -0,0 +1,41 @@
+#------------------------------------------------------------------------------
+#
+# Makefile
+#
+# EtherCAT-Library
+#
+# $Id$
+#
+#------------------------------------------------------------------------------
+
+ifneq ($(KERNELRELEASE),)
+
+#------------------------------------------------------------------------------
+# Kbuild-Abschnitt
+
+lib-m := libec.o
+
+#------------------------------------------------------------------------------
+
+else
+
+#------------------------------------------------------------------------------
+# Default-Abschnitt
+
+ifneq ($(wildcard ethercat.conf),)
+include ethercat.conf
+else
+KERNELDIR = /lib/modules/`uname -r`/build
+endif
+
+modules:
+ $(MAKE) -C $(KERNELDIR) M=`pwd`
+
+clean:
+ $(MAKE) -C $(KERNELDIR) M=`pwd` clean
+
+#------------------------------------------------------------------------------
+
+endif
+
+