drivers/Makefile
author Florian Pose <fp@igh-essen.com>
Fri, 23 Dec 2005 08:23:35 +0000
changeset 41 42c66194c0c8
parent 34 c1e8d61fa395
child 42 a22a202d0f42
permissions -rw-r--r--
Schoenheitskorrekturen.
#------------------------------------------------------------------------------
#
#  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

REV = `svnversion $(src)`
DATE = `date`

EXTRA_CFLAGS = -DEC_REV="$(REV)" -DEC_USER="$(USER)" -DEC_DATE="$(DATE)"

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

else

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

include ../ethercat.conf

modules:
	$(MAKE) -C $(KERNELDIR) M=`pwd` modules

clean:
	$(MAKE) -C $(KERNELDIR) M=`pwd` clean

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

endif