master/Kbuild.in
changeset 2589 2b9c78543663
parent 1877 7b77000f9764
child 2597 0e145bb05859
equal deleted inserted replaced
2415:af21f0bdc7c9 2589:2b9c78543663
     1 #------------------------------------------------------------------------------
     1 #------------------------------------------------------------------------------
     2 #
     2 #
     3 #  $Id$
     3 #  $Id$
     4 #
     4 #
     5 #  Copyright (C) 2006-2008  Florian Pose, Ingenieurgemeinschaft IgH
     5 #  Copyright (C) 2006-2012  Florian Pose, Ingenieurgemeinschaft IgH
     6 #
     6 #
     7 #  This file is part of the IgH EtherCAT Master.
     7 #  This file is part of the IgH EtherCAT Master.
     8 #
     8 #
     9 #  The IgH EtherCAT Master is free software; you can redistribute it and/or
     9 #  The IgH EtherCAT Master is free software; you can redistribute it and/or
    10 #  modify it under the terms of the GNU General Public License version 2, as
    10 #  modify it under the terms of the GNU General Public License version 2, as
    18 #  You should have received a copy of the GNU General Public License along
    18 #  You should have received a copy of the GNU General Public License along
    19 #  with the IgH EtherCAT Master; if not, write to the Free Software
    19 #  with the IgH EtherCAT Master; if not, write to the Free Software
    20 #  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    20 #  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    21 #
    21 #
    22 #  ---
    22 #  ---
    23 #  
    23 #
    24 #  The license mentioned above concerns the source code only. Using the EtherCAT
    24 #  The license mentioned above concerns the source code only. Using the EtherCAT
    25 #  technology and brand is only permitted in compliance with the industrial
    25 #  technology and brand is only permitted in compliance with the industrial
    26 #  property and similar rights of Beckhoff Automation GmbH.
    26 #  property and similar rights of Beckhoff Automation GmbH.
    27 #
    27 #
    28 #  ---
    28 #  ---
    33 
    33 
    34 obj-m := ec_master.o
    34 obj-m := ec_master.o
    35 
    35 
    36 ec_master-objs := \
    36 ec_master-objs := \
    37 	cdev.o \
    37 	cdev.o \
       
    38 	coe_emerg_ring.o \
    38 	datagram.o \
    39 	datagram.o \
       
    40 	datagram_pair.o \
    39 	device.o \
    41 	device.o \
    40 	domain.o \
    42 	domain.o \
    41 	fmmu_config.o \
    43 	fmmu_config.o \
    42 	foe_request.o \
    44 	foe_request.o \
    43 	fsm_change.o \
    45 	fsm_change.o \
    49 	fsm_sii.o \
    51 	fsm_sii.o \
    50 	fsm_slave.o \
    52 	fsm_slave.o \
    51 	fsm_slave_config.o \
    53 	fsm_slave_config.o \
    52 	fsm_slave_scan.o \
    54 	fsm_slave_scan.o \
    53 	fsm_soe.o \
    55 	fsm_soe.o \
       
    56 	ioctl.o \
    54 	mailbox.o \
    57 	mailbox.o \
    55 	master.o \
    58 	master.o \
    56 	module.o \
    59 	module.o \
    57 	pdo.o \
    60 	pdo.o \
    58 	pdo_entry.o \
    61 	pdo_entry.o \
    59 	pdo_list.o \
    62 	pdo_list.o \
       
    63 	reg_request.o \
    60 	sdo.o \
    64 	sdo.o \
    61 	sdo_entry.o \
    65 	sdo_entry.o \
    62 	sdo_request.o \
    66 	sdo_request.o \
    63 	slave.o \
    67 	slave.o \
    64 	slave_config.o \
    68 	slave_config.o \
    67 	sync.o \
    71 	sync.o \
    68 	sync_config.o \
    72 	sync_config.o \
    69 	voe_handler.o
    73 	voe_handler.o
    70 
    74 
    71 ifeq (@ENABLE_EOE@,1)
    75 ifeq (@ENABLE_EOE@,1)
    72 	ec_master-objs += ethernet.o
    76 ec_master-objs += ethernet.o
    73 endif
    77 endif
       
    78 
    74 ifeq (@ENABLE_DEBUG_IF@,1)
    79 ifeq (@ENABLE_DEBUG_IF@,1)
    75 	ec_master-objs += debug.o
    80 ec_master-objs += debug.o
    76 endif
    81 endif
       
    82 
       
    83 ifeq (@ENABLE_RTDM@,1)
       
    84 
       
    85 ec_master-objs += rtdm.o
       
    86 
       
    87 ifeq (@ENABLE_XENOMAI@, 1)
       
    88 CFLAGS_rtdm.o := -I@XENOMAI_DIR@/include
       
    89 endif
       
    90 
       
    91 ifeq (@ENABLE_RTAI@, 1)
       
    92 CFLAGS_rtdm.o := -I@RTAI_DIR@/include
       
    93 endif
       
    94 
       
    95 ec_master-objs += rtdm-ioctl.o
       
    96 CFLAGS_rtdm-ioctl.o := -DEC_IOCTL_RTDM
       
    97 
       
    98 endif # ENABLE_RTDM
    77 
    99 
    78 REV := $(shell if test -s $(src)/../revision; then \
   100 REV := $(shell if test -s $(src)/../revision; then \
    79 		cat $(src)/../revision; \
   101 		cat $(src)/../revision; \
    80 	else \
   102 	else \
    81 		hg id -i $(src)/.. 2>/dev/null || echo "unknown"; \
   103 		hg id -i $(src)/.. 2>/dev/null || echo "unknown"; \