ab@2054: #------------------------------------------------------------------------------ ab@2054: # ab@2054: # $Id$ ab@2054: # ab@2054: # Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH ab@2054: # ab@2054: # This file is part of the IgH EtherCAT Master. ab@2054: # ab@2054: # The IgH EtherCAT Master is free software; you can redistribute it and/or ab@2054: # modify it under the terms of the GNU General Public License version 2, as ab@2054: # published by the Free Software Foundation. ab@2054: # ab@2054: # The IgH EtherCAT Master is distributed in the hope that it will be useful, ab@2054: # but WITHOUT ANY WARRANTY; without even the implied warranty of ab@2054: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General ab@2054: # Public License for more details. ab@2054: # ab@2054: # You should have received a copy of the GNU General Public License along ab@2054: # with the IgH EtherCAT Master; if not, write to the Free Software ab@2054: # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ab@2054: # ab@2054: # --- ab@2054: # ab@2054: # The license mentioned above concerns the source code only. Using the EtherCAT ab@2054: # technology and brand is only permitted in compliance with the industrial ab@2054: # property and similar rights of Beckhoff Automation GmbH. ab@2054: # ab@2054: # --- ab@2054: # ab@2054: # vi: syntax=make ab@2054: # ab@2054: #------------------------------------------------------------------------------ ab@2054: ab@2054: obj-m := ec_rtdm.o ab@2054: ab@2054: ec_rtdm-objs := \ ab@2054: module.o ab@2054: ab@2058: ifeq (@ENABLE_XENOMAI@,1) ab@2054: ab@2054: ### Xenomai directory, xeno-config and library directory ########### ab@2054: XENO_DIR := @XENOMAI_DIR@ ab@2054: XENO_CONFIG := $(XENO_DIR)/bin/xeno-config ab@2054: XENO_LIB_DIR := $(shell $(XENO_CONFIG) --library-dir) ab@2054: ab@2054: REV := $(shell if test -s $(src)/../revision; then \ ab@2054: cat $(src)/../revision; \ ab@2054: else \ ab@2054: hg id -i $(src)/.. 2>/dev/null || echo "unknown"; \ ab@2054: fi) ab@2054: ab@2058: CFLAGS_module.o := -DREV=$(REV) -I$(XENO_DIR)/include -DENABLE_XENOMAI ab@2058: ab@2058: endif ab@2058: ab@2058: ifeq (@ENABLE_RTAI@,1) ab@2058: ab@2058: ### RTAI directory, rtai_config and library directory ########### ab@2058: RTAI_DIR := @RTAI_DIR@ ab@2058: RTAI_CONFIG := $(RTAI_DIR)/bin/rtai-config ab@2058: RTAI_LIB_DIR := $(shell $(RTAI_CONFIG) --library-dir) ab@2058: ab@2058: REV := $(shell if test -s $(src)/../revision; then \ ab@2058: cat $(src)/../revision; \ ab@2058: else \ ab@2058: hg id -i $(src)/.. 2>/dev/null || echo "unknown"; \ ab@2058: fi) ab@2058: ab@2058: CFLAGS_module.o := -DREV=$(REV) -I$(RTAI_DIR)/include -DENABLE_RTAI ab@2058: ab@2058: endif ab@2058: ab@2054: ab@2054: KBUILD_EXTRA_SYMBOLS := \ ab@2054: @abs_top_builddir@/$(LINUX_SYMVERS) \ ab@2054: @abs_top_builddir@/master/$(LINUX_SYMVERS) ab@2054: #------------------------------------------------------------------------------