fp@2133: #------------------------------------------------------------------------------ fp@2133: # fp@2133: # $Id$ fp@2133: # fp@2133: # Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH fp@2133: # fp@2133: # This file is part of the IgH EtherCAT Master. fp@2133: # fp@2133: # The IgH EtherCAT Master is free software; you can redistribute it and/or fp@2133: # modify it under the terms of the GNU General Public License version 2, as fp@2133: # published by the Free Software Foundation. fp@2133: # fp@2133: # The IgH EtherCAT Master is distributed in the hope that it will be useful, fp@2133: # but WITHOUT ANY WARRANTY; without even the implied warranty of fp@2133: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General fp@2133: # Public License for more details. fp@2133: # fp@2133: # You should have received a copy of the GNU General Public License along fp@2133: # with the IgH EtherCAT Master; if not, write to the Free Software fp@2133: # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA fp@2133: # fp@2133: # --- fp@2133: # fp@2133: # The license mentioned above concerns the source code only. Using the fp@2133: # EtherCAT technology and brand is only permitted in compliance with the fp@2133: # industrial property and similar rights of Beckhoff Automation GmbH. fp@2133: # fp@2133: # --- fp@2133: # fp@2133: # vim: syntax=make fp@2133: # fp@2133: #------------------------------------------------------------------------------ fp@2133: fp@2133: TOPDIR := $(src)/../.. fp@2133: fp@2133: REV := $(shell if test -s $(TOPDIR)/revision; then \ fp@2133: cat $(TOPDIR)/revision; \ fp@2133: else \ fp@2133: hg id -i $(TOPDIR) 2>/dev/null || echo "unknown"; \ fp@2133: fi) fp@2133: fp@2133: ifeq (@ENABLE_E1000E@,1) fp@2133: EC_E1000E_OBJ := \ fp@2133: 82571-@KERNEL_E1000E@-ethercat.o \ fp@2133: es2lan-@KERNEL_E1000E@-ethercat.o \ fp@2133: ethtool-@KERNEL_E1000E@-ethercat.o \ fp@2133: ich8lan-@KERNEL_E1000E@-ethercat.o \ fp@2133: lib-@KERNEL_E1000E@-ethercat.o \ fp@2133: netdev-@KERNEL_E1000E@-ethercat.o \ fp@2133: param-@KERNEL_E1000E@-ethercat.o \ fp@2133: phy-@KERNEL_E1000E@-ethercat.o fp@2133: obj-m += ec_e1000e.o fp@2133: ec_e1000e-objs := $(EC_E1000E_OBJ) fp@2133: CFLAGS_netdev-@KERNEL_E1000E@-ethercat.o = -DREV=$(REV) fp@2133: endif fp@2133: fp@2133: KBUILD_EXTRA_SYMBOLS := \ fp@2133: @abs_top_builddir@/$(LINUX_SYMVERS) \ fp@2133: @abs_top_builddir@/master/$(LINUX_SYMVERS) fp@2133: fp@2133: #------------------------------------------------------------------------------