]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/Makefile.in
Copyright updates for 2007.
[thirdparty/binutils-gdb.git] / sim / Makefile.in
1 # Makefile template for Configure for the sim library.
2 # Copyright (C) 1993, 1995, 1997, 1998, 2007 Free Software Foundation, Inc.
3 # Written by Cygnus Support.
4 #
5 # This file is part of BFD, the Binary File Descriptor library.
6 #
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
11 #
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20
21 VPATH = @srcdir@
22 srcdir = @srcdir@
23
24 prefix = @prefix@
25 exec_prefix = @exec_prefix@
26
27 host_alias = @host_alias@
28 target_alias = @target_alias@
29 program_transform_name = @program_transform_name@
30 bindir = @bindir@
31 libdir = @libdir@
32 tooldir = $(libdir)/$(target_alias)
33
34 datadir = @datadir@
35 mandir = @mandir@
36 man1dir = $(mandir)/man1
37 man2dir = $(mandir)/man2
38 man3dir = $(mandir)/man3
39 man4dir = $(mandir)/man4
40 man5dir = $(mandir)/man5
41 man6dir = $(mandir)/man6
42 man7dir = $(mandir)/man7
43 man8dir = $(mandir)/man8
44 man9dir = $(mandir)/man9
45 infodir = @infodir@
46 includedir = @includedir@
47
48 SHELL = @SHELL@
49
50 INSTALL = @INSTALL@
51 INSTALL_PROGRAM = @INSTALL_PROGRAM@
52 INSTALL_DATA = @INSTALL_DATA@
53
54 AR = @AR@
55 AR_FLAGS = rc
56 CC = @CC@
57 CFLAGS = @CFLAGS@
58 CC_FOR_BUILD = @CC_FOR_BUILD@
59 CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
60 MAKEINFO = makeinfo
61 RANLIB = @RANLIB@
62
63 SUBDIRS = @subdirs@
64
65 INCDIR = $(srcdir)/../include
66 CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
67 DEP = mkdep
68
69 #### Makefile fragments come in here.
70 # @target_makefile_frag@
71 ###
72
73 # Name of the ChangeLog file.
74 ChangeLog = ChangeLog
75
76
77 RUNTEST = `if [ -f $${srcdir}/../dejagnu/runtest ] ; then \
78 echo $${srcdir}/../dejagnu/runtest ; else echo runtest; \
79 fi`
80 RUNTESTFLAGS=
81
82 FLAGS_TO_PASS = \
83 "prefix=$(prefix)" \
84 "exec_prefix=$(exec_prefix)" \
85 "bindir=$(bindir)" \
86 "mandir=$(mandir)" \
87 "libdir=$(libdir)" \
88 "against=$(against)" \
89 "AR=$(AR)" \
90 "AR_FLAGS=$(AR_FLAGS)" \
91 "CC=$(CC)" \
92 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
93 "CFLAGS=$(CFLAGS)" \
94 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
95 "RANLIB=$(RANLIB)" \
96 "MAKEINFO=$(MAKEINFO)" \
97 "INSTALL=$(INSTALL)" \
98 "INSTALL_DATA=$(INSTALL_DATA)" \
99 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
100 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
101 "SHELL=$(SHELL)"
102
103 # The use of $$(x_FOR_TARGET) reduces the command line length by not
104 # duplicating the lengthy definition.
105 TARGET_FLAGS_TO_PASS = \
106 "prefix=$(prefix)" \
107 "exec_prefix=$(exec_prefix)" \
108 "against=$(against)" \
109 'CC=$$(CC_FOR_TARGET)' \
110 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
111 "CFLAGS=$(CFLAGS)" \
112 "CHILLFLAGS=$(CHILLFLAGS)" \
113 'CHILL=$$(CHILL_FOR_TARGET)' \
114 "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \
115 "CHILL_LIB=$(CHILL_LIB)" \
116 'CXX=$$(CXX_FOR_TARGET)' \
117 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
118 "CXXFLAGS=$(CXXFLAGS)" \
119 "INSTALL=$(INSTALL)" \
120 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
121 "INSTALL_DATA=$(INSTALL_DATA)" \
122 "MAKEINFO=$(MAKEINFO)" \
123 "RUNTESTFLAGS=$(RUNTESTFLAGS)"
124
125
126 all:
127 @rootme=`pwd` ; export rootme ; \
128 for dir in . `echo ${SUBDIRS} | sed 's/testsuite//'` ; do \
129 if [ "$$dir" = "." ]; then \
130 true; \
131 elif [ -d $$dir ]; then \
132 (cd $$dir; $(MAKE) $(FLAGS_TO_PASS)) || exit 1; \
133 else true; fi; \
134 done
135
136 clean mostlyclean:
137 @rootme=`pwd` ; export rootme ; \
138 for dir in . ${SUBDIRS}; do \
139 if [ "$$dir" = "." ]; then \
140 true; \
141 elif [ -d $$dir ]; then \
142 (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) $@) || exit 1; \
143 else true; fi; \
144 done
145
146 distclean maintainer-clean realclean:
147 @rootme=`pwd` ; export rootme ; \
148 for dir in . ${SUBDIRS}; do \
149 if [ "$$dir" = "." ]; then \
150 true; \
151 elif [ -d $$dir ]; then \
152 (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) $@) || exit 1; \
153 else true; fi; \
154 done
155 rm -f Makefile config.cache config.log config.status
156
157 install:
158 @rootme=`pwd` ; export rootme ; \
159 for dir in . ${SUBDIRS}; do \
160 if [ "$$dir" = "." ]; then \
161 true; \
162 elif [ -d $$dir ]; then \
163 (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) install) || exit 1; \
164 else true; fi; \
165 done
166
167 installcheck:
168 @echo No installcheck target is available yet for the GNU simulators.
169
170 installcheck:
171
172 # The check target can not use subdir_do, because subdir_do does not
173 # use TARGET_FLAGS_TO_PASS.
174 check: force
175 @if [ -f testsuite/Makefile ]; then \
176 rootme=`pwd`; export rootme; \
177 rootsrc=`cd $(srcdir); pwd`; export rootsrc; \
178 cd testsuite; \
179 $(MAKE) $(TARGET_FLAGS_TO_PASS) check; \
180 else true; fi
181
182
183
184 info:
185 install-info:
186 dvi:
187
188 ###
189 ###
190
191 .NOEXPORT:
192 MAKEOVERRIDES=
193
194 .PHONY: check installcheck
195 check:
196 installcheck:
197
198 TAGS:
199
200 force:
201
202 Makefile: Makefile.in config.status
203 $(SHELL) ./config.status
204
205 config.status: configure
206 $(SHELL) ./config.status --recheck
207
208 # Utility to run autoconf in each directory that uses the common framework.
209 # This is intended to be invoked in $srcdir as
210 # "make -f Makefile.in autoconf-common SHELL=/bin/sh".
211 .PHONY: autoconf-common autoheader-common
212 autoconf-common autoheader-common:
213 for d in * ; \
214 do \
215 if [ -d $$d -a -f $$d/configure.ac ] ; \
216 then \
217 echo "Running autoconf in $$d ..." ; \
218 (cd $$d && autoconf --force) ; \
219 if [ $@ = autoheader-common ] && [ -f $$d/config.in ] ; \
220 then \
221 echo "Running autoheader in $$d ..." ; \
222 (cd $$d && autoheader --force) ; \
223 fi ; \
224 fi ; \
225 done
226
227 autoconf-changelog autoheader-changelog:
228 id=$(ID) ; \
229 test x$$id = x && id="`id | sed -e 's/^[^(]*(\([^)]*\).*$$/\1/'`" ; \
230 name=$(NAME) ; \
231 test x$$name = x && name=`grep "^$$id:" /etc/passwd | cut -f 5 -d ':'` ; \
232 host=$(HOST) ; \
233 test x$$host = x && host="`hostname`" ; \
234 date=$(DATE) ; \
235 test x$$date = x && date="`date +%Y-%m-%d`" ; \
236 echo "$$date $$name $$id@$$host" ; \
237 for d in * ; \
238 do \
239 if [ -d $$d -a -f $$d/configure.ac ] ; \
240 then \
241 echo "Creating new-$(ChangeLog) in $$d ..." ; \
242 ( echo "$$date $$name <$$id@$$host>" ; \
243 echo "" ; \
244 echo " * configure: Regenerated to track ../common/aclocal.m4 changes." ; \
245 if [ $@ = autoheader-changelog ] ; \
246 then \
247 echo " * config.in: Ditto." ; \
248 fi ; \
249 echo "" ; \
250 cat $$d/$(ChangeLog) \
251 ) > $$d/new-$(ChangeLog) ; \
252 fi ; \
253 done
254
255 autoconf-install autoheader-install:
256 for d in * ; \
257 do \
258 if [ -d $$d -a -f $$d/configure.ac ] ; \
259 then \
260 echo "Moving $$d/new-$(ChangeLog) to $$d/$(ChangeLog) ..." ; \
261 mv $$d/new-$(ChangeLog) $$d/$(ChangeLog) ; \
262 fi ; \
263 done