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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [host/] [infra/] [Makefile.am] - Blame information for rev 839

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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