Makefiles nochmals verbessert.
#----------------------------------------------------------------
#
# Makefile
#
# Minimales EtherCAT-Modul
#
# $Id$
#
#----------------------------------------------------------------
ifneq ($(KERNELRELEASE),)
#----------------------------------------------------------------
# Kbuild-Abschnitt
obj-m := ec_mini_mod.o
ec_mini_mod-objs := ec_mini.o
#----------------------------------------------------------------
else
#----------------------------------------------------------------
# Default-Abschnitt
modules:
$(MAKE) -C ..
clean:
$(MAKE) -C .. clean
#----------------------------------------------------------------
endif