OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [ecos-2.0/] [tools/] [src/] [infra/] [Makefile.am] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1254 phoenix
## Process this file with automake to produce Makefile.in
2
## =====================================================================
3
##
4
##     Makefile.am
5
##
6
##     Host side implementation of the eCos infrastructure
7
##
8
## =====================================================================
9
#######ECOSHOSTGPLCOPYRIGHTBEGIN####
10
## ----------------------------------------------------------------------------
11
# Copyright (C) 2002 Bart Veer
12
# Copyright (C) 1998, 1999, 2000, 2001 Red Hat, Inc.
13
#
14
# This file is part of the eCos host tools.
15
#
16
# This program is free software; you can redistribute it and/or modify it
17
# under the terms of the GNU General Public License as published by the Free
18
# Software Foundation; either version 2 of the License, or (at your option)
19
# any later version.
20
#
21
# This program is distributed in the hope that it will be useful, but WITHOUT
22
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
23
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
24
# more details.
25
#
26
# You should have received a copy of the GNU General Public License along with
27
# this program; if not, write to the Free Software Foundation, Inc.,
28
# 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
29
#
30
## ----------------------------------------------------------------------------
31
#######ECOSHOSTGPLCOPYRIGHTEND####
32
## =====================================================================
33
#######DESCRIPTIONBEGIN####
34
##
35
## Author(s):   bartv
36
## Contact(s):  bartv
37
## Date:        1998/07/13
38
## Version:     0.01
39
##
40
######DESCRIPTIONEND####
41
## =====================================================================
42
 
43
AUTOMAKE_OPTIONS = 1.3 foreign
44
SUBDIRS          = testsuite
45
 
46
## The generated makefile is responsible for the following:
47
##
48
##   1) copy across the shared header files cyg_type.h, cyg_ass.h and
49
##      cyg_trac.h from the include directory into the appropriate part
50
##      of the build tree.
51
##
52
##   2) on the target side the infrastructure headers depend on
53
##      the configuration system via , and on the
54
##      HAL package via . These two files need
55
##      to be implemented somewhat differently on the host side.
56
##      There are usable versions in the source tree.
57
##
58
##   3) build libcyginfra.a
59
##
60
##   4) allow the whole system to be installed, and all the usual
61
##      makefile targets.
62
 
63
## The main target is a static library. The problem is naming it
64
## correctly. automake seems to insist on calling it libcyginfra.a,
65
## even when compiling it with VC++. Various attempts to use
66
## cyginfra.lib instead with VC++ have failed. Instead the library
67
## will always be built as libcyginfra.a, but it may get installed
68
## as cyginfra.lib.
69
 
70
noinst_LIBRARIES      = libcyginfra.a
71
libcyginfra_a_SOURCES = assert.cxx    \
72
                        trace.cxx     \
73
                        checkdata.cxx \
74
                        testcase.cxx
75
 
76
## Pick up compiler flags etc. from configury
77
INCLUDES        = @ecos_INCLUDES@
78
LIBS            = @ecos_LIBS@ @ecos_LDADD@
79
AM_CFLAGS       = @ecos_CFLAGS@
80
AM_CXXFLAGS     = @ecos_CXXFLAGS@
81
 
82
if MSVC
83
all-local: cyginfra.lib
84
 
85
cyginfra.lib: libcyginfra.a
86
        $(INSTALL) $< $@
87
 
88
clean-local:
89
        $(RM) cyginfra.lib
90
 
91
install-exec-local: all-local
92
        $(mkinstalldirs) $(DESTDIR)$(libdir)
93
        $(INSTALL) cyginfra.lib $(DESTDIR)$(libdir)/cyginfra.lib
94
 
95
else
96
 
97
all-local:
98
clean-local:
99
 
100
install-exec-local: libcyginfra.a
101
        $(mkinstalldirs) $(DESTDIR)$(libdir)
102
        $(INSTALL) libcyginfra.a $(DESTDIR)$(libdir)/libcyginfra.a
103
 
104
endif
105
 
106
## ----------------------------------------------------------------------------
107
## The header files do not all belong in the same directory. This
108
## causes problems with automake. First list the header files.
109
 
110
copies = cyg/infra/cyg_type.h \
111
         cyg/infra/cyg_ass.h  \
112
         cyg/infra/cyg_trac.h \
113
         cyg/infra/testcase.h \
114
         cyg/hal/basetype.h   \
115
         pkgconf/infra.h      \
116
         pkgconf/hostinfra.h
117
 
118
## The headers are not installed as part of the default install
119
## target, instead a data hook is used. This avoids problems when the
120
## appropriate directories do not yet exist in the install tree.
121
noinst_HEADERS = $(copies)
122
 
123
install-data-local: $(copies)
124
        $(mkinstalldirs)  $(DESTDIR)$(includedir) \
125
                $(DESTDIR)$(includedir)/cyg       \
126
                $(DESTDIR)$(includedir)/cyg/infra \
127
                $(DESTDIR)$(includedir)/cyg/hal   \
128
                $(DESTDIR)$(includedir)/pkgconf
129
        $(INSTALL_DATA) cyg/infra/cyg_type.h    $(DESTDIR)$(includedir)/cyg/infra
130
        $(INSTALL_DATA) cyg/infra/cyg_ass.h     $(DESTDIR)$(includedir)/cyg/infra
131
        $(INSTALL_DATA) cyg/infra/cyg_trac.h    $(DESTDIR)$(includedir)/cyg/infra
132
        $(INSTALL_DATA) cyg/infra/testcase.h    $(DESTDIR)$(includedir)/cyg/infra
133
        $(INSTALL_DATA) cyg/hal/basetype.h      $(DESTDIR)$(includedir)/cyg/hal
134
        $(INSTALL_DATA) pkgconf/infra.h         $(DESTDIR)$(includedir)/pkgconf
135
        $(INSTALL_DATA) pkgconf/hostinfra.h     $(DESTDIR)$(includedir)/pkgconf
136
 
137
## It is necessary to have an extra set of rules to copy the header files
138
## into the build tree, so that they are in a sensible location when
139
## building the sources in this package. There are explicit dependencies
140
## for all the object files on these headers.
141
##
142
## The header file copies should be part of the clean.
143
CLEANFILES = $(copies)
144
 
145
cyg/infra/cyg_type.h: cyg_type.h
146
        @if [ -d cyg ] ; then true ; else mkdir cyg ; fi
147
        @if [ -d cyg/infra ] ; then true ; else mkdir cyg/infra ; fi
148
        $(INSTALL_DATA) $(<) $(@)
149
 
150
cyg/infra/cyg_ass.h: cyg_ass.h
151
        @if [ -d cyg ] ; then true ; else mkdir cyg ; fi
152
        @if [ -d cyg/infra ] ; then true ; else mkdir cyg/infra ; fi
153
        $(INSTALL_DATA) $(<) $(@)
154
 
155
cyg/infra/cyg_trac.h: cyg_trac.h
156
        @if [ -d cyg ] ; then true ; else mkdir cyg ; fi
157
        @if [ -d cyg/infra ] ; then true ; else mkdir cyg/infra ; fi
158
        $(INSTALL_DATA) $(<) $(@)
159
 
160
cyg/infra/testcase.h: testcase.h
161
        @if [ -d cyg ] ; then true ; else mkdir cyg ; fi
162
        @if [ -d cyg/infra ] ; then true ; else mkdir cyg/infra ; fi
163
        $(INSTALL_DATA) $(<) $(@)
164
 
165
pkgconf/infra.h : infra.h
166
        @if [ -d pkgconf ] ; then true ; else mkdir pkgconf ; fi
167
        $(INSTALL_DATA) $(<) $(@)
168
 
169
pkgconf/hostinfra.h : hostinfra.h
170
        @if [ -d pkgconf ] ; then true ; else mkdir pkgconf ; fi
171
        $(INSTALL_DATA) $(<) $(@)
172
 
173
cyg/hal/basetype.h : basetype.h
174
        @if [ -d cyg ] ; then true ; else mkdir cyg ; fi
175
        @if [ -d cyg/hal ] ; then true ; else mkdir cyg/hal ; fi
176
        $(INSTALL_DATA) $(<) $(@)
177
 
178
## ----------------------------------------------------------------------------
179
## Add specific dependencies for all source files
180
 
181
assert.$(OBJEXT) :  Makefile \
182
                    pkgconf/infra.h      \
183
                    pkgconf/hostinfra.h  \
184
                    cyg/infra/cyg_type.h \
185
                    cyg/hal/basetype.h   \
186
                    cyg/infra/cyg_ass.h
187
 
188
trace.$(OBJEXT) :   Makefile \
189
                    pkgconf/infra.h      \
190
                    pkgconf/hostinfra.h  \
191
                    cyg/infra/cyg_type.h \
192
                    cyg/hal/basetype.h   \
193
                    cyg/infra/cyg_ass.h  \
194
                    cyg/infra/cyg_trac.h
195
 
196
checkdata.$(OBJEXT) : Makefile \
197
                      cyg/infra/cyg_ass.h       \
198
                      pkgconf/infra.h           \
199
                      pkgconf/hostinfra.h       \
200
                      cyg/infra/cyg_type.h      \
201
                      cyg/hal/basetype.h
202
 
203
testcase.$(OBJEXT): Makefile \
204
                    cyg/infra/testcase.h \
205
                    cyg/infra/cyg_type.h \
206
                    cyg/hal/basetype.h   \
207
                    pkgconf/infra.h      \
208
                    pkgconf/hostinfra.h

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.