* MAINTAINERS: Add self as authorized committer for *.
[deliverable/binutils-gdb.git] / sim / Makefile.in
CommitLineData
c906108c
SS
1# Makefile template for Configure for the sim library.
2# Copyright (C) 1993, 1995, 1997, 1998 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
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)" \
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.
105TARGET_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
126all:
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 \
8bdcadb1 132 (cd $$dir; $(MAKE) $(FLAGS_TO_PASS)) || exit 1; \
c906108c
SS
133 else true; fi; \
134 done
135
136clean mostlyclean:
137 @rootme=`pwd` ; export rootme ; \
138 for dir in . ${SUBDIRS}; do \
139 if [ "$$dir" = "." ]; then \
140 true; \
141 elif [ -d $$dir ]; then \
8bdcadb1 142 (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) $@) || exit 1; \
c906108c
SS
143 else true; fi; \
144 done
145
146distclean 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 \
8bdcadb1 152 (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) $@) || exit 1; \
c906108c
SS
153 else true; fi; \
154 done
155 rm -f Makefile config.cache config.log config.status
156
157install:
158 @rootme=`pwd` ; export rootme ; \
159 for dir in . ${SUBDIRS}; do \
160 if [ "$$dir" = "." ]; then \
161 true; \
162 elif [ -d $$dir ]; then \
8bdcadb1 163 (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) install) || exit 1; \
c906108c
SS
164 else true; fi; \
165 done
166
167installcheck:
168 @echo No installcheck target is available yet for the GNU simulators.
169
170installcheck:
171
172# The check target can not use subdir_do, because subdir_do does not
173# use TARGET_FLAGS_TO_PASS.
174check: 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
184info:
185install-info:
186dvi:
187
188###
189###
190
191.NOEXPORT:
192MAKEOVERRIDES=
193
194.PHONY: check installcheck
195check:
196installcheck:
197
198TAGS:
199
200force:
201
202Makefile: Makefile.in config.status
203 $(SHELL) ./config.status
204
205config.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".
211.PHONY: autoconf-common
212autoconf-common autoheader-common:
213 for d in * ; \
214 do \
38f48d72 215 if [ -d $$d -a -f $$d/configure.ac ] ; \
c906108c
SS
216 then \
217 echo "Running autoconf in $$d ..." ; \
38f48d72 218 (cd $$d && autoconf --force) ; \
c906108c
SS
219 if [ $@ = autoheader-common ] ; \
220 then \
221 echo "Running autoheader in $$d ..." ; \
38f48d72 222 (cd $$d && autoheader --force) ; \
c906108c
SS
223 fi ; \
224 fi ; \
225 done
226
227autoconf-changelog autoheader-changelog:
3832c25c
AC
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`" ; \
c906108c
SS
236 echo "$$date $$name $$id@$$host" ; \
237 for d in * ; \
238 do \
38f48d72 239 if [ -d $$d -a -f $$d/configure.ac ] ; \
c906108c 240 then \
c93abbcc 241 echo "Creating new-$(ChangeLog) in $$d ..." ; \
c906108c
SS
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 "" ; \
c93abbcc
AC
250 cat $$d/$(ChangeLog) \
251 ) > $$d/new-$(ChangeLog) ; \
c906108c
SS
252 fi ; \
253 done
254
255autoconf-install autoheader-install:
256 for d in * ; \
257 do \
38f48d72 258 if [ -d $$d -a -f $$d/configure.ac ] ; \
c906108c 259 then \
c93abbcc
AC
260 echo "Moving $$d/new-$(ChangeLog) to $$d/$(ChangeLog) ..." ; \
261 mv $$d/new-$(ChangeLog) $$d/$(ChangeLog) ; \
c906108c
SS
262 fi ; \
263 done
This page took 0.329095 seconds and 4 git commands to generate.