source: SVN/cambria/redboot/host/libcdl/Makefile.am @ 1

Last change on this file since 1 was 1, checked in by Tim Harvey, 2 years ago

restored latest version of files from server backup

Signed-off-by: Tim Harvey <tharvey@…>

File size: 5.3 KB
Line 
1## Process this file with automake to produce Makefile.in
2## =====================================================================
3##
4##     Makefile.am
5##
6##     libcdl.a
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/12/16
38## Version:     0.01
39##
40######DESCRIPTIONEND####
41## =====================================================================
42
43AUTOMAKE_OPTIONS        = 1.3 foreign
44SUBDIRS                 = testsuite
45
46## Pick up compiler flags etc. from configury
47INCLUDES                = @ecos_INCLUDES@
48LIBS                    = @ecos_LIBS@ @ecos_LDADD@
49AM_CFLAGS               = @ecos_CFLAGS@
50AM_CXXFLAGS             = @ecos_CXXFLAGS@
51ecos_infra_incdir       = @ecos_infra_incdir@
52
53## This package exports its interface via cdl.hxx
54include_HEADERS = cdlcore.hxx cdl.hxx
55
56## The main target is a static library. The problem is naming it
57## correctly. automake seems to insist on calling it libcdl.a,
58## even when compiling it with VC++. Various attempts to use
59## cdl.lib instead with VC++ have failed. Instead the library
60## will always be built as libcdl.a, but gets copied to cdl.lib
61## when necessary.
62
63sources := interp.cxx       \
64           expr.cxx         \
65           func.cxx         \
66           refer.cxx        \
67           cdlmisc.cxx      \
68           conflict.cxx     \
69           property.cxx     \
70           parse.cxx        \
71           base.cxx         \
72           value.cxx        \
73           build.cxx        \
74           dialog.cxx       \
75           wizard.cxx       \
76           interface.cxx    \
77           transact.cxx     \
78           infer.cxx        \
79           database.cxx     \
80           config.cxx       \
81           package.cxx      \
82           component.cxx    \
83           option.cxx
84
85noinst_LIBRARIES = libcdl.a
86libcdl_a_SOURCES = $(sources)
87
88if MSVC
89all-local: cdl.lib
90
91cdl.lib: libcdl.a
92        $(INSTALL) $< $@
93
94clean-local:
95        $(RM) cdl.lib
96
97install-exec-local: all-local
98        $(mkinstalldirs) $(DESTDIR)$(libdir)
99        $(INSTALL) cdl.lib $(DESTDIR)$(libdir)/cdl.lib
100
101else
102
103all-local:
104clean-local:
105install-exec-local: libcdl.a
106        $(mkinstalldirs) $(DESTDIR)$(libdir)
107        $(INSTALL) libcdl.a $(DESTDIR)$(libdir)/libcdl.a
108endif
109
110
111## Add specific dependencies for all source files.
112## Every module in libcdl uses assertions and tracing.
113## These pull in the others.
114infra_headers := $(ecos_infra_incdir)/cyg/infra/cyg_ass.h  \
115                 $(ecos_infra_incdir)/cyg/infra/cyg_trac.h \
116                 $(ecos_infra_incdir)/pkgconf/infra.h      \
117                 $(ecos_infra_incdir)/pkgconf/hostinfra.h  \
118                 $(ecos_infra_incdir)/cyg/infra/cyg_type.h
119
120## Depending on the flavor of CDL being implemented, different
121## headers will get included.
122cdlcore_headers := cdlconfig.h cdlcore.hxx
123cdl_headers     := $(cdlcore_headers) cdl.hxx
124
125interp.$(OBJEXT)    : Makefile $(cdlcore_headers) $(infra_headers)
126
127expr.$(OBJEXT)      : Makefile $(cdlcore_headers) $(infra_headers)
128
129infer.$(OBJEXT)     : Makefile $(cdlcore_headers) $(infra_headers)
130
131func.$(OBJEXT)      : Makefile $(cdlcore_headers) $(infra_headers)
132
133refer.$(OBJEXT)     : Makefile $(cdlcore_headers) $(infra_headers)
134
135cdlmisc.$(OBJEXT)   : Makefile $(cdlcore_headers) $(infra_headers)
136
137conflict.$(OBJEXT)  : Makefile $(cdlcore_headers) $(infra_headers)
138
139property.$(OBJEXT)  : Makefile $(cdlcore_headers) $(infra_headers)
140
141parse.$(OBJEXT)     : Makefile $(cdlcore_headers) $(infra_headers)
142
143base.$(OBJEXT)      : Makefile $(cdlcore_headers) $(infra_headers)
144
145value.$(OBJEXT)     : Makefile $(cdlcore_headers) $(infra_headers)
146
147build.$(OBJEXT)     : Makefile $(cdlcore_headers) $(infra_headers)
148
149dialog.$(OBJEXT)    : Makefile $(cdlcore_headers) $(infra_headers)
150
151wizard.$(OBJEXT)    : Makefile $(cdlcore_headers) $(infra_headers)
152
153interface.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
154
155transact.$(OBJEXT)  : Makefile $(cdlcore_headers) $(infra_headers)
156
157database.$(OBJEXT)  : Makefile $(cdl_headers) $(infra_headers)
158
159config.$(OBJEXT)    : Makefile $(cdl_headers) $(infra_headers)
160
161package.$(OBJEXT)   : Makefile $(cdl_headers) $(infra_headers)
162
163component.$(OBJEXT) : Makefile $(cdl_headers) $(infra_headers)
164
165option.$(OBJEXT)    : Makefile $(cdl_headers) $(infra_headers)
166
167
Note: See TracBrowser for help on using the repository browser.