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