diff -r 36d1fa37f5e1 -r bae4965439b8 libec/Makefile --- /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 + +