#------------------------------------------------------------------------------ # # 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