fp@364: #------------------------------------------------------------------------------ fp@364: # fp@364: # $Id$ fp@364: # fp@1326: # Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH fp@364: # fp@364: # This file is part of the IgH EtherCAT Master. fp@364: # 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@364: # 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@364: # 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@364: # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA fp@364: # 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@364: # fp@1363: # --- fp@1363: # fp@892: # vim: syntax=make fp@892: # fp@364: #------------------------------------------------------------------------------ fp@364: fp@1528: REV := $(shell if test -s $(src)/../revision; then \ fp@1528: cat $(src)/../revision; \ fp@366: else \ fp@1528: hg id -i $(src)/.. 2>/dev/null || echo "unknown"; \ fp@366: fi) fp@364: fp@1540: ifeq (@ENABLE_GENERIC@,1) fp@1540: EC_GENERIC_OBJ := generic.o fp@1540: obj-m += ec_generic.o fp@1540: ec_generic-objs := $(EC_GENERIC_OBJ) fp@1540: CFLAGS_$(EC_GENERIC_OBJ) = -DREV=$(REV) fp@1540: endif fp@1540: edouard@2709: ifeq (@ENABLE_RTDMNET@,1) edouard@2709: EC_RTDMNET_OBJ := rtdmnet.o edouard@2709: obj-m += ec_rtdmnet.o edouard@2709: ec_rtdmnet-objs := $(EC_RTDMNET_OBJ) edouard@2709: CFLAGS_$(EC_RTDMNET_OBJ) = -DREV=$(REV) -Idrivers/xenomai/net/stack/include edouard@2709: endif edouard@2709: fp@732: ifeq (@ENABLE_8139TOO@,1) fp@732: EC_8139TOO_OBJ := 8139too-@KERNEL_8139TOO@-ethercat.o fp@582: obj-m += ec_8139too.o fp@584: ec_8139too-objs := $(EC_8139TOO_OBJ) fp@1528: CFLAGS_$(EC_8139TOO_OBJ) = -DREV=$(REV) fp@582: endif fp@582: p@2549: ifeq (@ENABLE_CCAT@,1) p@2549: obj-m += ccat/ p@2549: endif p@2549: fp@732: ifeq (@ENABLE_E100@,1) fp@732: EC_E100_OBJ := e100-@KERNEL_E100@-ethercat.o fp@582: obj-m += ec_e100.o fp@584: ec_e100-objs := $(EC_E100_OBJ) fp@1528: CFLAGS_$(EC_E100_OBJ) = -DREV=$(REV) fp@582: endif fp@582: fp@732: ifeq (@ENABLE_E1000@,1) fp@1074: obj-m += e1000/ fp@667: endif fp@667: fp@2216: ifeq (@ENABLE_E1000E@,1) fp@2216: obj-m += e1000e/ fp@2216: endif fp@2216: fp@2685: ifeq (@ENABLE_IGB@,1) fp@2685: obj-m += igb/ fp@2685: endif fp@2685: fp@1353: ifeq (@ENABLE_R8169@,1) fp@1353: EC_R8169_OBJ := r8169-@KERNEL_R8169@-ethercat.o fp@1353: obj-m += ec_r8169.o fp@1353: ec_r8169-objs := $(EC_R8169_OBJ) fp@1528: CFLAGS_$(EC_R8169_OBJ) = -DREV=$(REV) fp@1353: endif fp@1353: fp@1453: KBUILD_EXTRA_SYMBOLS := \ fp@1809: @abs_top_builddir@/$(LINUX_SYMVERS) \ fp@1809: @abs_top_builddir@/master/$(LINUX_SYMVERS) fp@1453: fp@364: #------------------------------------------------------------------------------