tool/Makefile.am
author Florian Pose <fp@igh-essen.com>
Tue, 12 Jan 2010 23:38:35 +0100
branch1.4-foe
changeset 1765 2b0269221410
parent 1707 11ec009e145d
permissions -rw-r--r--
Closed branch.
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
#
1685
399ef727bf62 Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents: 1184
diff changeset
     5
#  Copyright (C) 2006-2008  Florian Pose, Ingenieurgemeinschaft IgH
922
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
#
1685
399ef727bf62 Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents: 1184
diff changeset
     9
#  The IgH EtherCAT Master is free software; you can redistribute it and/or
399ef727bf62 Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents: 1184
diff changeset
    10
#  modify it under the terms of the GNU General Public License version 2, as
399ef727bf62 Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents: 1184
diff changeset
    11
#  published by the Free Software Foundation.
922
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    12
#
1685
399ef727bf62 Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents: 1184
diff changeset
    13
#  The IgH EtherCAT Master is distributed in the hope that it will be useful,
399ef727bf62 Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents: 1184
diff changeset
    14
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
399ef727bf62 Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents: 1184
diff changeset
    15
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
399ef727bf62 Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents: 1184
diff changeset
    16
#  Public License for more details.
922
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    17
#
1685
399ef727bf62 Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents: 1184
diff changeset
    18
#  You should have received a copy of the GNU General Public License along
399ef727bf62 Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents: 1184
diff changeset
    19
#  with the IgH EtherCAT Master; if not, write to the Free Software
922
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    20
#  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
    21
#
1685
399ef727bf62 Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents: 1184
diff changeset
    22
#  Using the EtherCAT technology and brand is permitted in compliance with the
399ef727bf62 Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents: 1184
diff changeset
    23
#  industrial property and similar rights of Beckhoff Automation GmbH.
922
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    24
#
1142
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    25
#  vim: syntax=make
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    26
#
922
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    27
#------------------------------------------------------------------------------
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    28
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    29
bin_PROGRAMS = ethercat
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    30
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    31
ethercat_SOURCES = \
1168
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    32
	Command.cpp \
1142
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    33
	CommandAlias.cpp \
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    34
	CommandConfig.cpp \
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    35
	CommandData.cpp \
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    36
	CommandDebug.cpp \
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    37
	CommandDomains.cpp \
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    38
	CommandDownload.cpp \
1707
11ec009e145d Included FoE patch from Olav Zarges.
Florian Pose <fp@igh-essen.com>
parents: 1685
diff changeset
    39
	CommandFoeRead.cpp \
11ec009e145d Included FoE patch from Olav Zarges.
Florian Pose <fp@igh-essen.com>
parents: 1685
diff changeset
    40
	CommandFoeWrite.cpp \
1142
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    41
	CommandMaster.cpp \
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    42
	CommandPdos.cpp \
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    43
	CommandSdos.cpp \
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    44
	CommandSiiRead.cpp \
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    45
	CommandSiiWrite.cpp \
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    46
	CommandSlaves.cpp \
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    47
	CommandStates.cpp \
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    48
	CommandUpload.cpp \
1165
c5d6e28eec91 Added 'ethercat version' command.
Florian Pose <fp@igh-essen.com>
parents: 1142
diff changeset
    49
	CommandVersion.cpp \
1142
59be91dfcbe1 Redesigned command interface.
Florian Pose <fp@igh-essen.com>
parents: 1134
diff changeset
    50
	CommandXml.cpp \
1707
11ec009e145d Included FoE patch from Olav Zarges.
Florian Pose <fp@igh-essen.com>
parents: 1685
diff changeset
    51
	FoeCommand.cpp \
1168
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    52
	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
    53
	SdoCommand.cpp \
1168
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    54
	main.cpp \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    55
	sii_crc.cpp
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    56
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    57
noinst_HEADERS = \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    58
	Command.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    59
	CommandAlias.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    60
	CommandConfig.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    61
	CommandData.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    62
	CommandDebug.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    63
	CommandDomains.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    64
	CommandDownload.h \
1707
11ec009e145d Included FoE patch from Olav Zarges.
Florian Pose <fp@igh-essen.com>
parents: 1685
diff changeset
    65
	CommandFoeRead.h \
11ec009e145d Included FoE patch from Olav Zarges.
Florian Pose <fp@igh-essen.com>
parents: 1685
diff changeset
    66
	CommandFoeWrite.h \
1168
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    67
	CommandMaster.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    68
	CommandPdos.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    69
	CommandSdos.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    70
	CommandSiiRead.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    71
	CommandSiiWrite.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    72
	CommandSlaves.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    73
	CommandStates.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    74
	CommandUpload.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    75
	CommandVersion.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    76
	CommandXml.h \
1707
11ec009e145d Included FoE patch from Olav Zarges.
Florian Pose <fp@igh-essen.com>
parents: 1685
diff changeset
    77
	FoeCommand.h \
11ec009e145d Included FoE patch from Olav Zarges.
Florian Pose <fp@igh-essen.com>
parents: 1685
diff changeset
    78
	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
    79
	SdoCommand.h \
1168
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    80
	byteorder.h \
b4c464c54a46 Added noinst_HEADERS variable.
Florian Pose <fp@igh-essen.com>
parents: 1165
diff changeset
    81
	sii_crc.h
922
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    82
1165
c5d6e28eec91 Added 'ethercat version' command.
Florian Pose <fp@igh-essen.com>
parents: 1142
diff changeset
    83
REV = `if test -s $(srcdir)/../svnrevision; then \
c5d6e28eec91 Added 'ethercat version' command.
Florian Pose <fp@igh-essen.com>
parents: 1142
diff changeset
    84
		cat $(srcdir)/../svnrevision; \
c5d6e28eec91 Added 'ethercat version' command.
Florian Pose <fp@igh-essen.com>
parents: 1142
diff changeset
    85
	else \
c5d6e28eec91 Added 'ethercat version' command.
Florian Pose <fp@igh-essen.com>
parents: 1142
diff changeset
    86
		svnversion $(srcdir)/.. 2>/dev/null || echo "unknown"; \
c5d6e28eec91 Added 'ethercat version' command.
Florian Pose <fp@igh-essen.com>
parents: 1142
diff changeset
    87
	fi`
c5d6e28eec91 Added 'ethercat version' command.
Florian Pose <fp@igh-essen.com>
parents: 1142
diff changeset
    88
c5d6e28eec91 Added 'ethercat version' command.
Florian Pose <fp@igh-essen.com>
parents: 1142
diff changeset
    89
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
    90
fede1d8f5b71 Added the new ethercat comman-line tool with lsec functionality.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    91
#------------------------------------------------------------------------------