diff -r f4313f5aba88 -r 3bdd7a747fae master/Kbuild.in --- a/master/Kbuild.in Thu Sep 20 09:20:51 2012 +0200 +++ b/master/Kbuild.in Thu Sep 20 15:28:25 2012 +0200 @@ -2,7 +2,7 @@ # # $Id$ # -# Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH +# Copyright (C) 2006-2012 Florian Pose, Ingenieurgemeinschaft IgH # # This file is part of the IgH EtherCAT Master. # @@ -52,6 +52,7 @@ fsm_slave_config.o \ fsm_slave_scan.o \ fsm_soe.o \ + ioctl.o \ mailbox.o \ master.o \ module.o \ @@ -70,12 +71,30 @@ voe_handler.o ifeq (@ENABLE_EOE@,1) - ec_master-objs += ethernet.o +ec_master-objs += ethernet.o endif + ifeq (@ENABLE_DEBUG_IF@,1) - ec_master-objs += debug.o +ec_master-objs += debug.o endif +ifeq (@ENABLE_RTDM@,1) + +ec_master-objs += rtdm.o + +ifeq (@ENABLE_XENOMAI@, 1) +CFLAGS_rtdm.o := -I@XENOMAI_DIR@/include +endif + +ifeq (@ENABLE_RTAI@, 1) +CFLAGS_rtdm.o := -I@RTAI_DIR@/include +endif + +ec_master-objs += rtdm-ioctl.o +CFLAGS_rtdm-ioctl.o := -DEC_IOCTL_RTDM + +endif # ENABLE_RTDM + REV := $(shell if test -s $(src)/../revision; then \ cat $(src)/../revision; \ else \