master/Makefile
branchstable-1.0
changeset 1619 0d4119024f55
parent 1618 5cff10efb927
child 1621 4bbe090553f7
equal deleted inserted replaced
1618:5cff10efb927 1619:0d4119024f55
    10 #
    10 #
    11 #  This file is part of the IgH EtherCAT Master.
    11 #  This file is part of the IgH EtherCAT Master.
    12 #
    12 #
    13 #  The IgH EtherCAT Master is free software; you can redistribute it
    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
    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.
    15 #  as published by the Free Software Foundation; either version 2 of the
       
    16 #  License, or (at your option) any later version.
    16 #
    17 #
    17 #  The IgH EtherCAT Master is distributed in the hope that it will be
    18 #  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 #  useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
    19 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    20 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    20 #  GNU General Public License for more details.
    21 #  GNU General Public License for more details.
    21 #
    22 #
    22 #  You should have received a copy of the GNU General Public License
    23 #  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 #  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 #  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
       
    26 #
       
    27 #  The right to use EtherCAT Technology is granted and comes free of
       
    28 #  charge under condition of compatibility of product made by
       
    29 #  Licensee. People intending to distribute/sell products based on the
       
    30 #  code, have to sign an agreement to guarantee that products using
       
    31 #  software based on IgH EtherCAT master stay compatible with the actual
       
    32 #  EtherCAT specification (which are released themselves as an open
       
    33 #  standard) as the (only) precondition to have the right to use EtherCAT
       
    34 #  Technology, IP and trade marks.
    25 #
    35 #
    26 #------------------------------------------------------------------------------
    36 #------------------------------------------------------------------------------
    27 
    37 
    28 ifneq ($(KERNELRELEASE),)
    38 ifneq ($(KERNELRELEASE),)
    29 
    39 
    31 #  kbuild section
    41 #  kbuild section
    32 
    42 
    33 obj-m := ec_master.o
    43 obj-m := ec_master.o
    34 
    44 
    35 ec_master-objs := module.o master.o device.o slave.o command.o types.o \
    45 ec_master-objs := module.o master.o device.o slave.o command.o types.o \
    36 			domain.o mailbox.o canopen.o ethernet.o
    46 		domain.o mailbox.o canopen.o ethernet.o debug.o fsm.o
    37 
    47 
    38 REV := $(shell svnversion $(src) 2>/dev/null)
    48 REV := $(shell svnversion $(src) 2>/dev/null)
    39 
    49 
    40 EXTRA_CFLAGS := -DSVNREV=$(REV) -DUSER=$(USER)
    50 EXTRA_CFLAGS := -DSVNREV=$(REV) -DUSER=$(USER)
    41 
    51