examples/rtai/Makefile
changeset 222 321eba07fafb
parent 221 9864f39319a5
child 225 9e8150db6fc8
equal deleted inserted replaced
221:9864f39319a5 222:321eba07fafb
     1 #----------------------------------------------------------------
     1 #------------------------------------------------------------------------------
     2 #
     2 #
     3 #  Makefile
     3 #  Makefile
     4 #
     4 #
     5 #  Minimal EtherCAT module.
     5 #  RTAI sample module for the IgH EtherCAT master.
     6 #
     6 #
     7 #  $Id$
     7 #  $Id$
     8 #
     8 #
     9 #  Copyright (C) 2006  Florian Pose, Ingenieurgemeinschaft IgH
     9 #  Copyright (C) 2006  Florian Pose, Ingenieurgemeinschaft IgH
    10 #
    10 #
    21 #
    21 #
    22 #  You should have received a copy of the GNU General Public License
    22 #  You should have received a copy of the GNU General Public License
    23 #  along with the IgH EtherCAT Master; if not, write to the Free Software
    23 #  along with the IgH EtherCAT Master; if not, write to the Free Software
    24 #  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    24 #  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    25 #
    25 #
    26 #----------------------------------------------------------------
    26 #------------------------------------------------------------------------------
    27 
    27 
    28 ifneq ($(KERNELRELEASE),)
    28 ifneq ($(KERNELRELEASE),)
    29 
    29 
    30 #----------------------------------------------------------------
    30 #------------------------------------------------------------------------------
    31 #  kbuild section
    31 #  kbuild section
    32 #----------------------------------------------------------------
    32 #------------------------------------------------------------------------------
    33 
    33 
    34 obj-m := ec_mini.o
    34 obj-m := ec_rtai_sample.o
    35 
    35 
    36 ec_mini-objs := mini.o
    36 ec_rtai_sample-objs := rtai_sample.o
    37 
    37 
    38 #----------------------------------------------------------------
    38 #------------------------------------------------------------------------------
    39 
    39 
    40 else
    40 else
    41 
    41 
    42 #----------------------------------------------------------------
    42 #------------------------------------------------------------------------------
    43 #  default section
    43 #  default section
    44 #----------------------------------------------------------------
    44 #------------------------------------------------------------------------------
    45 
    45 
    46 ifneq ($(wildcard ethercat.conf),)
    46 ifneq ($(wildcard kernel.conf),)
    47 include ethercat.conf
    47 include kernel.conf
    48 else
    48 else
    49 KERNELDIR = /usr/src/linux
    49 KERNELDIR = /usr/src/linux
    50 endif
    50 endif
    51 
    51 
    52 modules:
    52 modules:
    53 	$(MAKE) -C $(KERNELDIR) M=`pwd`
    53 	$(MAKE) -C $(KERNELDIR) M=`pwd`
    54 
    54 
    55 clean:
    55 clean:
    56 	$(MAKE) -C $(KERNELDIR) M=`pwd` clean
    56 	$(MAKE) -C $(KERNELDIR) M=`pwd` clean
    57 
    57 
    58 #----------------------------------------------------------------
    58 #------------------------------------------------------------------------------
    59 
    59 
    60 endif
    60 endif