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