summaryrefslogtreecommitdiff
path: root/ecos/packages/hal/synth/arch/current/host/Makefile.am
blob: 578bfb5b033c3517281de7e6cdb3869d69f3a1b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
## Process this file with automake to produce Makefile.in
## =====================================================================
##
##     Makefile.am
##
##     Build support for the host-side synthetic target support,
##     the arch package.
##     
##
## =====================================================================
######COPYRIGHTBEGIN####
#                                                                          
# ----------------------------------------------------------------------------
# Copyright (C) 2002, 2003 Bart Veer
#
# This file is part of the eCos synthetic target support.
#
# This program is free software; you can redistribute it and/or modify it 
# under the terms of the GNU General Public License as published by the Free 
# Software Foundation; either version 2 of the License, or (at your option) 
# any later version.
# 
# This program is distributed in the hope that it will be useful, but WITHOUT 
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for 
# more details.
# 
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 
# 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
#
# ----------------------------------------------------------------------------
#                                                                          
######COPYRIGHTEND####
## =====================================================================
#######DESCRIPTIONBEGIN####
##
## Author(s):	bartv
## Contact(s):	bartv
## Date:	2002/08/06
## Version:	0.01
##
######DESCRIPTIONEND####
## =====================================================================

AUTOMAKE_OPTIONS = 1.3 foreign

## Only some platforms are supported. Having the configure script throw
## an error when attempting to configure on an unsupported platform
## would be a mistake, since that would prevent any configury from
## the toplevel on unsupported platforms. Instead an automake conditional
## is used, leading to null makefiles on unsupported platforms.

if SUPPORTED

AM_CFLAGS       = @ecos_CFLAGS@ -DECOSYNTH_VERSION=\"@VERSION@\" \
 -DECOS_REPOSITORY=\"@ECOS_REPOSITORY@\" \
 -DLIBEXECDIR=\"$(libexecdir)\" \
 -DPACKAGE_DIR=\"@PACKAGE_DIR@\" \
 -DPACKAGE_VERSION=\"@PACKAGE_VERSION@\" \
 -DPACKAGE_INSTALL=\"@PACKAGE_INSTALL@\"
AM_CXXFLAGS     = @ecos_CXXFLAGS@
INCLUDES        = @ecos_INCLUDES@ @ecos_tk_includes@
LIBS            = @ecos_LIBS@ @ecos_LDADD@

## The synthetic target support consists of a single program ecosynth,
## a number of Tcl scripts, and some additional data files. These are
## all installed in a single directory $(libexec)/ecos/<package>_<version>/
## Neither the ecosynth executable nor any of the scripts are directly
## executable, instead ecosynth gets fork()'d/execve()'d by the eCos
## application so $(libexec) is appropriate. Strictly speaking the
## Tcl scripts and data files are architecture-independent so should
## probably be installed in an analogous directory below $(datadir),
## but that would add more directories for little real gain. The scripts
## are treated as data files since they should not be executed directly,
## i.e. they should not be installed with the execute bit set.

synthdir 		= $(libexecdir)/ecos/@PACKAGE_INSTALL@
synth_PROGRAMS		= ecosynth
synth_DATA		= ecosynth.tcl default.tdf user_initrc.tcl user_mainrc.tcl \
                          console.tcl \
                          ecosicon.xbm ecosiconmask.xbm tick_yes.xbm tick_no.xbm \
                          save.xbm cut.xbm copy.xbm paste.xbm help.xbm running1.ppm \
                          saveall.xbm

ecosynth_SOURCES	= ecosynth.c
ecosynth_LDADD		= @ecos_tk_libs@

## Manual dependencies
ecosynth.$(OBJEXT)	: Makefile ../src/synth_protocol.h

endif