comparison host/libcdl/Makefile.am @ 76:435cced73e2f ecos-v1_3_1-release

eCos v1.3.1 merged from eCos master repository on 2000-03-27-23:22:51-BST
author jlarmour
date Tue, 28 Mar 2000 14:10:45 +0000
parents
children 511f4dc167f6
comparison
equal deleted inserted replaced
75:41bf073c0c32 76:435cced73e2f
1 ## Process this file with automake to produce Makefile.in
2 ## =====================================================================
3 ##
4 ## Makefile.am
5 ##
6 ## libcdl.a
7 ##
8 ## =====================================================================
9 ######COPYRIGHTBEGIN####
10 ##
11 ## ----------------------------------------------------------------------------
12 ## Copyright (C) 1998, 1999, 2000 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 ##
32 ######COPYRIGHTEND####
33 ## =====================================================================
34 #######DESCRIPTIONBEGIN####
35 ##
36 ## Author(s): bartv
37 ## Contact(s): bartv
38 ## Date: 1998/12/16
39 ## Version: 0.01
40 ##
41 ######DESCRIPTIONEND####
42 ## =====================================================================
43
44 AUTOMAKE_OPTIONS = 1.3 cygnus
45 SUBDIRS = testsuite
46
47 ## Pick up an appropriate header file search path from configure
48 INCLUDES = @INCLUDES@
49
50 ## This package exports its interface via cdl.hxx
51 include_HEADERS = cdlcore.hxx cdl.hxx
52
53 ## The main target is a static library. The problem is naming it
54 ## correctly. automake seems to insist on calling it libcdl.a,
55 ## even when compiling it with VC++. Various attempts to use
56 ## cdl.lib instead with VC++ have failed. Instead the library
57 ## will always be built as libcdl.a, but gets copied to cdl.lib
58 ## when necessary.
59
60 sources := interp.cxx \
61 expr.cxx \
62 refer.cxx \
63 cdlmisc.cxx \
64 conflict.cxx \
65 property.cxx \
66 parse.cxx \
67 base.cxx \
68 value.cxx \
69 build.cxx \
70 dialog.cxx \
71 wizard.cxx \
72 interface.cxx \
73 transact.cxx \
74 infer.cxx \
75 database.cxx \
76 config.cxx \
77 package.cxx \
78 component.cxx \
79 option.cxx
80
81 noinst_LIBRARIES = libcdl.a
82 libcdl_a_SOURCES = $(sources)
83
84 if MSVC
85 all-local: cdl.lib
86
87 cdl.lib: libcdl.a
88 $(INSTALL) $< $@
89
90 clean-local:
91 $(RM) cdl.lib
92
93 install-exec-local: all-local
94 $(mkinstalldirs) $(DESTDIR)$(libdir)
95 $(INSTALL) cdl.lib $(DESTDIR)$(libdir)/cdl.lib
96
97 else
98
99 all-local:
100 clean-local:
101 install-exec-local: libcdl.a
102 $(mkinstalldirs) $(DESTDIR)$(libdir)
103 $(INSTALL) libcdl.a $(DESTDIR)$(libdir)/libcdl.a
104 endif
105
106
107 ## Add specific dependencies for all source files.
108 ## Every module in libcdl uses assertions and tracing.
109 ## These pull in the others.
110 infra_headers := $(cyg_ac_infra_incdir)/cyg/infra/cyg_ass.h \
111 $(cyg_ac_infra_incdir)/cyg/infra/cyg_trac.h \
112 $(cyg_ac_infra_incdir)/pkgconf/infra.h \
113 $(cyg_ac_infra_incdir)/pkgconf/hostinfra.h \
114 $(cyg_ac_infra_incdir)/cyg/infra/cyg_type.h
115
116 ## Depending on the flavor of CDL being implemented, different
117 ## headers will get included.
118 cdlcore_headers := cdlconfig.h cdlcore.hxx
119 cdl_headers := $(cdlcore_headers) cdl.hxx
120
121 interp.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
122
123 expr.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
124
125 refer.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
126
127 cdlmisc.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
128
129 conflict.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
130
131 property.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
132
133 parse.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
134
135 base.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
136
137 value.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
138
139 build.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
140
141 dialog.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
142
143 wizard.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
144
145 interface.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
146
147 transact.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
148
149 database.$(OBJEXT) : Makefile $(cdl_headers) $(infra_headers)
150
151 config.$(OBJEXT) : Makefile $(cdl_headers) $(infra_headers)
152
153 package.$(OBJEXT) : Makefile $(cdl_headers) $(infra_headers)
154
155 component.$(OBJEXT) : Makefile $(cdl_headers) $(infra_headers)
156
157 option.$(OBJEXT) : Makefile $(cdl_headers) $(infra_headers)
158
159