1 ## Process this file with automake to produce Makefile.in
2 ## =====================================================================
6 ## Build support for the host-side synthetic target support,
7 ## the ethernetpackage.
9 ## =====================================================================
10 ######COPYRIGHTBEGIN####
12 # ----------------------------------------------------------------------------
13 # Copyright (C) 2002, 2003 Bart Veer
15 # This file is part of the eCos synthetic target ethernet support.
17 # This program is free software; you can redistribute it and/or modify it
18 # under the terms of the GNU General Public License as published by the Free
19 # Software Foundation; either version 2 of the License, or (at your option)
22 # This program is distributed in the hope that it will be useful, but WITHOUT
23 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
24 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
27 # You should have received a copy of the GNU General Public License along with
28 # this program; if not, write to the Free Software Foundation, Inc.,
29 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
30 # ----------------------------------------------------------------------------
32 ######COPYRIGHTEND####
33 ## =====================================================================
34 #######DESCRIPTIONBEGIN####
41 ######DESCRIPTIONEND####
42 ## =====================================================================
44 AUTOMAKE_OPTIONS = 1.3 foreign
46 ## Only some platforms are supported. Having the configure script throw
47 ## an error when attempting to configure on an unsupported platform
48 ## would be a mistake, since that would prevent any configury from
49 ## the toplevel on unsupported platforms. Instead an automake conditional
50 ## is used, leading to null makefiles on unsupported platforms.
54 AM_CFLAGS = @ecos_CFLAGS@ -DECOSYNTH_VERSION=\"@VERSION@\" \
55 -DECOS_REPOSITORY=\"@ECOS_REPOSITORY@\" \
56 -DLIBEXECDIR=\"$(libexecdir)\" \
57 -DPACKAGE_DIR=\"@PACKAGE_DIR@\" \
58 -DPACKAGE_VERSION=\"@PACKAGE_VERSION@\" \
59 -DPACKAGE_INSTALL=\"@PACKAGE_INSTALL@\"
60 AM_CXXFLAGS = @ecos_CXXFLAGS@
61 INCLUDES = @ecos_INCLUDES@
62 LIBS = @ecos_LIBS@ @ecos_LDADD@
64 ## The synthetic target support consists of a single program rawether,
65 ## a number of Tcl scripts, and some additional data files. These are
66 ## all installed in a single directory $(libexec)/ecos/<package>_<version>/
67 ## Neither the rawether executable nor any of the scripts are directly
68 ## executable, instead rawether gets fork()'d/execve()'d by the Tcl
69 ## script so $(libexec) is appropriate. Strictly speaking the
70 ## Tcl scripts and data files are architecture-independent so should
71 ## probably be installed in an analogous directory below $(datadir),
72 ## but that would add more directories for little real gain. The scripts
73 ## are treated as data files since they should not be executed directly,
74 ## i.e. they should not be installed with the execute bit set.
76 etherdir = $(libexecdir)/ecos/@PACKAGE_INSTALL@
77 ether_PROGRAMS = rawether
78 ether_DATA = ethernet.tcl ethernet.tdf netrecord.xbm
80 rawether_SOURCES = rawether.c
82 ## Manual dependencies
83 rawether.$(OBJEXT) : Makefile ../src/protocol.h
85 ## The rawether program needs to run with root privileges, or it will
86 ## be unable to access the ethernet hardware.
88 chown root $(etherdir)/rawether
89 chmod u+s $(etherdir)/rawether
92 ## When automake scans for hooks it does not take conditionals fully
93 ## into account. If the conditional is not satisfied the generated
94 ## makefile will still try to invoke the hook, so dummy hooks are needed.
96 echo Nothing to be done for this platform