fp@46: #------------------------------------------------------------------------------ fp@0: # fp@0: # Globales Makefile fp@0: # fp@0: # IgH EtherCAT-Treiber fp@0: # fp@148: # $Revision$ fp@148: # $Date$ fp@148: # $Author$ fp@148: # $URL$ fp@0: # fp@46: #------------------------------------------------------------------------------ fp@12: fp@46: ifneq ($(KERNELRELEASE),) fp@16: fp@46: #------------------------------------------------------------------------------ fp@46: # Kbuild-Abschnitt fp@12: fp@71: obj-m := master/ devices/ fp@45: fp@46: #------------------------------------------------------------------------------ fp@45: fp@46: else fp@0: fp@46: #------------------------------------------------------------------------------ fp@46: # Default-Abschnitt fp@46: fp@71: ifneq ($(wildcard ethercat.conf),) fp@46: include ethercat.conf fp@71: else fp@71: KERNELDIR := /usr/src/linux fp@71: endif fp@46: fp@46: modules: fp@57: $(MAKE) -C $(KERNELDIR) M=`pwd` fp@45: fp@45: clean: fp@45: $(MAKE) -C $(KERNELDIR) M=`pwd` clean fp@0: fp@73: #------------------------------------------------------------------------------ fp@46: fp@46: endif