mini/Makefile
changeset 220 342ad851ec78
parent 219 7572c5bf7bb3
child 221 9864f39319a5
equal deleted inserted replaced
219:7572c5bf7bb3 220:342ad851ec78
     1 #----------------------------------------------------------------
       
     2 #
       
     3 #  Makefile
       
     4 #
       
     5 #  Minimal EtherCAT module.
       
     6 #
       
     7 #  $Id$
       
     8 #
       
     9 #  Copyright (C) 2006  Florian Pose, Ingenieurgemeinschaft IgH
       
    10 #
       
    11 #  This file is part of the IgH EtherCAT Master.
       
    12 #
       
    13 #  The IgH EtherCAT Master is free software; you can redistribute it
       
    14 #  and/or modify it under the terms of the GNU General Public License
       
    15 #  as published by the Free Software Foundation; version 2 of the License.
       
    16 #
       
    17 #  The IgH EtherCAT Master is distributed in the hope that it will be
       
    18 #  useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    19 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       
    20 #  GNU General Public License for more details.
       
    21 #
       
    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
       
    24 #  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
       
    25 #
       
    26 #----------------------------------------------------------------
       
    27 
       
    28 ifneq ($(KERNELRELEASE),)
       
    29 
       
    30 #----------------------------------------------------------------
       
    31 #  kbuild section
       
    32 #----------------------------------------------------------------
       
    33 
       
    34 obj-m := ec_mini.o
       
    35 
       
    36 ec_mini-objs := mini.o
       
    37 
       
    38 #----------------------------------------------------------------
       
    39 
       
    40 else
       
    41 
       
    42 #----------------------------------------------------------------
       
    43 #  default section
       
    44 #----------------------------------------------------------------
       
    45 
       
    46 ifneq ($(wildcard ethercat.conf),)
       
    47 include ethercat.conf
       
    48 else
       
    49 KERNELDIR = /usr/src/linux
       
    50 endif
       
    51 
       
    52 modules:
       
    53 	$(MAKE) -C $(KERNELDIR) M=`pwd`
       
    54 
       
    55 clean:
       
    56 	$(MAKE) -C $(KERNELDIR) M=`pwd` clean
       
    57 
       
    58 #----------------------------------------------------------------
       
    59 
       
    60 endif