drivers/Makefile
author Florian Pose <fp@igh-essen.com>
Fri, 16 Dec 2005 12:04:59 +0000
branchkernel2.6
changeset 33 f4171b8aadf8
parent 27 d75ef6b46e33
child 34 c1e8d61fa395
permissions -rw-r--r--
Master-Reservierung und Use-Count f?r NIC-Treiber.
#----------------------------------------------------------------
#
#  Makefile
#
#  IgH EtherCAT-Treiber
#
#  $Id$
#
#----------------------------------------------------------------

ifneq ($(KERNELRELEASE),)

#----------------------------------------------------------------
# Kbuild-Abschnitt

obj-m := 8139too-ecat.o ecat-master.o

8139too-ecat-objs := 8139too.o

ecat-master-objs := ec_module.o ec_master.o ec_device.o \
			ec_slave.o ec_command.o ec_types.o

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

else

#----------------------------------------------------------------
# Default-Abschnitt

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

include $(CONFIG_FILE)

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

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

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

endif