mini/Makefile
author Florian Pose <fp@igh-essen.com>
Fri, 25 Nov 2005 14:52:34 +0000
branchkernel2.6
changeset 22 e8c2cd004e0b
parent 16 f04e93b8af0f
child 24 d417dd9bdc2f
permissions -rw-r--r--
Portierung der Module in drivers/ und mini/ nach Kernel 2.6.
#----------------------------------------------------------------
#
#  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

CONFIG_FILE = ../ethercat.conf
PWD = $(shell pwd)

include $(CONFIG_FILE) # Für KERNELDIR

default:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules

clean:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) clean

#----------------------------------------------------------------

endif