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