1 ## Process this file with automake to produce Makefile.in
2 ## =====================================================================
8 ## =====================================================================
9 #######ECOSHOSTGPLCOPYRIGHTBEGIN####
10 ## ----------------------------------------------------------------------------
11 # Copyright (C) 2002 Bart Veer
12 # Copyright (C) 1998, 1999, 2000, 2001 Red Hat, Inc.
14 # This file is part of the eCos host tools.
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)
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
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.
30 ## ----------------------------------------------------------------------------
31 #######ECOSHOSTGPLCOPYRIGHTEND####
32 ## =====================================================================
33 #######DESCRIPTIONBEGIN####
40 ######DESCRIPTIONEND####
41 ## =====================================================================
43 AUTOMAKE_OPTIONS = 1.3 foreign
46 ## Pick up compiler flags etc. from configury
47 INCLUDES = @ecos_INCLUDES@
48 LIBS = @ecos_LIBS@ @ecos_LDADD@
49 AM_CFLAGS = @ecos_CFLAGS@
50 AM_CXXFLAGS = @ecos_CXXFLAGS@
51 ecos_infra_incdir = @ecos_infra_incdir@
53 ## This package exports its interface via cdl.hxx
54 include_HEADERS = cdlcore.hxx cdl.hxx
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
63 sources := interp.cxx \
85 noinst_LIBRARIES = libcdl.a
86 libcdl_a_SOURCES = $(sources)
97 install-exec-local: all-local
98 $(mkinstalldirs) $(DESTDIR)$(libdir)
99 $(INSTALL) cdl.lib $(DESTDIR)$(libdir)/cdl.lib
105 install-exec-local: libcdl.a
106 $(mkinstalldirs) $(DESTDIR)$(libdir)
107 $(INSTALL) libcdl.a $(DESTDIR)$(libdir)/libcdl.a
111 ## Add specific dependencies for all source files.
112 ## Every module in libcdl uses assertions and tracing.
113 ## These pull in the others.
114 infra_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
120 ## Depending on the flavor of CDL being implemented, different
121 ## headers will get included.
122 cdlcore_headers := cdlconfig.h cdlcore.hxx
123 cdl_headers := $(cdlcore_headers) cdl.hxx
125 interp.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
127 expr.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
129 infer.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
131 func.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
133 refer.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
135 cdlmisc.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
137 conflict.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
139 property.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
141 parse.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
143 base.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
145 value.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
147 build.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
149 dialog.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
151 wizard.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
153 interface.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
155 transact.$(OBJEXT) : Makefile $(cdlcore_headers) $(infra_headers)
157 database.$(OBJEXT) : Makefile $(cdl_headers) $(infra_headers)
159 config.$(OBJEXT) : Makefile $(cdl_headers) $(infra_headers)
161 package.$(OBJEXT) : Makefile $(cdl_headers) $(infra_headers)
163 component.$(OBJEXT) : Makefile $(cdl_headers) $(infra_headers)
165 option.$(OBJEXT) : Makefile $(cdl_headers) $(infra_headers)