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