tool/Makefile.am
author Florian Pose <fp@igh-essen.com>
Wed, 13 Aug 2008 13:23:52 +0000
changeset 1200 ce1a65f06efc
parent 1184 75cd6681eb08
child 1254 c19d273a9e76
permissions -rw-r--r--
Added phy commands.
922
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     1
#------------------------------------------------------------------------------
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     2
#
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     3
#  $Id$
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     4
#
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     5
#  Copyright (C) 2006  Florian Pose, Ingenieurgemeinschaft IgH
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     6
#
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     7
#  This file is part of the IgH EtherCAT Master.
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     8
#
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     9
#  The IgH EtherCAT Master is free software; you can redistribute it
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    10
#  and/or modify it under the terms of the GNU General Public License
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    11
#  as published by the Free Software Foundation; either version 2 of the
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    12
#  License, or (at your option) any later version.
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    13
#
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    14
#  The IgH EtherCAT Master is distributed in the hope that it will be
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    15
#  useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    16
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    17
#  GNU General Public License for more details.
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    18
#
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    19
#  You should have received a copy of the GNU General Public License
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    20
#  along with the IgH EtherCAT Master; if not, write to the Free Software
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    21
#  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    22
#
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    23
#  The right to use EtherCAT Technology is granted and comes free of
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    24
#  charge under condition of compatibility of product made by
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    25
#  Licensee. People intending to distribute/sell products based on the
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    26
#  code, have to sign an agreement to guarantee that products using
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    27
#  software based on IgH EtherCAT master stay compatible with the actual
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    28
#  EtherCAT specification (which are released themselves as an open
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    29
#  standard) as the (only) precondition to have the right to use EtherCAT
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    30
#  Technology, IP and trade marks.
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    31
#
1142
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    32
#  vim: syntax=make
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    33
#
922
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    34
#------------------------------------------------------------------------------
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    35
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    36
bin_PROGRAMS = ethercat
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    37
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    38
ethercat_SOURCES = \
1168
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    39
	Command.cpp \
1142
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    40
	CommandAlias.cpp \
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    41
	CommandConfig.cpp \
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    42
	CommandData.cpp \
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    43
	CommandDebug.cpp \
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    44
	CommandDomains.cpp \
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    45
	CommandDownload.cpp \
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    46
	CommandMaster.cpp \
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    47
	CommandPdos.cpp \
1200
ce1a65f06efc Added phy commands.
Florian Pose <fp@igh-essen.com>
parents: 1184
diff changeset
    48
	CommandPhyRead.cpp \
ce1a65f06efc Added phy commands.
Florian Pose <fp@igh-essen.com>
parents: 1184
diff changeset
    49
	CommandPhyWrite.cpp \
1142
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    50
	CommandSdos.cpp \
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    51
	CommandSiiRead.cpp \
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    52
	CommandSiiWrite.cpp \
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    53
	CommandSlaves.cpp \
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    54
	CommandStates.cpp \
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    55
	CommandUpload.cpp \
1165
c5d6e28eec91 Added 'ethercat version' command.
Florian Pose <fp@igh-essen.com>
parents: 1142
diff changeset
    56
	CommandVersion.cpp \
1142
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    57
	CommandXml.cpp \
1168
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    58
	MasterDevice.cpp \
1184
75cd6681eb08 Introduced SdoCommand class to replace coe_datatypes.[ch]; added CoE abort codes in user space-
Florian Pose <fp@igh-essen.com>
parents: 1168
diff changeset
    59
	SdoCommand.cpp \
1168
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    60
	main.cpp \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    61
	sii_crc.cpp
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    62
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    63
noinst_HEADERS = \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    64
	Command.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    65
	CommandAlias.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    66
	CommandConfig.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    67
	CommandData.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    68
	CommandDebug.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    69
	CommandDomains.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    70
	CommandDownload.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    71
	CommandMaster.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    72
	CommandPdos.h \
1200
ce1a65f06efc Added phy commands.
Florian Pose <fp@igh-essen.com>
parents: 1184
diff changeset
    73
	CommandPhyRead.h \
ce1a65f06efc Added phy commands.
Florian Pose <fp@igh-essen.com>
parents: 1184
diff changeset
    74
	CommandPhyWrite.h \
1168
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    75
	CommandSdos.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    76
	CommandSiiRead.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    77
	CommandSiiWrite.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    78
	CommandSlaves.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    79
	CommandStates.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    80
	CommandUpload.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    81
	CommandVersion.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    82
	CommandXml.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    83
	MasterDevice.h  \
1184
75cd6681eb08 Introduced SdoCommand class to replace coe_datatypes.[ch]; added CoE abort codes in user space-
Florian Pose <fp@igh-essen.com>
parents: 1168
diff changeset
    84
	SdoCommand.h \
1168
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    85
	byteorder.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    86
	sii_crc.h
922
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    87
1165
c5d6e28eec91 Added 'ethercat version' command.
Florian Pose <fp@igh-essen.com>
parents: 1142
diff changeset
    88
REV = `if test -s $(srcdir)/../svnrevision; then \
c5d6e28eec91 Added 'ethercat version' command.
Florian Pose <fp@igh-essen.com>
parents: 1142
diff changeset
    89
		cat $(srcdir)/../svnrevision; \
c5d6e28eec91 Added 'ethercat version' command.
Florian Pose <fp@igh-essen.com>
parents: 1142
diff changeset
    90
	else \
c5d6e28eec91 Added 'ethercat version' command.
Florian Pose <fp@igh-essen.com>
parents: 1142
diff changeset
    91
		svnversion $(srcdir)/.. 2>/dev/null || echo "unknown"; \
c5d6e28eec91 Added 'ethercat version' command.
Florian Pose <fp@igh-essen.com>
parents: 1142
diff changeset
    92
	fi`
c5d6e28eec91 Added 'ethercat version' command.
Florian Pose <fp@igh-essen.com>
parents: 1142
diff changeset
    93
c5d6e28eec91 Added 'ethercat version' command.
Florian Pose <fp@igh-essen.com>
parents: 1142
diff changeset
    94
ethercat_CXXFLAGS = -I../master -Wall -DSVNREV=$(REV)
922
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    95
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    96
#------------------------------------------------------------------------------