sim: delete unused SIM_EXTRA_LIBDEPS
[deliverable/binutils-gdb.git] / sim / Makefile.in
CommitLineData
c906108c 1# Makefile template for Configure for the sim library.
3666a048 2# Copyright (C) 1993-2021 Free Software Foundation, Inc.
c906108c
SS
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
4744ac1b 9# the Free Software Foundation; either version 3 of the License, or
c906108c 10# (at your option) any later version.
4744ac1b 11#
c906108c
SS
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.
4744ac1b 16#
c906108c 17# You should have received a copy of the GNU General Public License
4744ac1b 18# along with this program. If not, see <http://www.gnu.org/licenses/>.
c906108c
SS
19
20VPATH = @srcdir@
21srcdir = @srcdir@
5e25901f
MF
22abs_srcdir = @abs_srcdir@
23srcroot = $(abs_srcdir)/..
c906108c
SS
24
25prefix = @prefix@
26exec_prefix = @exec_prefix@
27
28host_alias = @host_alias@
29target_alias = @target_alias@
30program_transform_name = @program_transform_name@
31bindir = @bindir@
32libdir = @libdir@
33tooldir = $(libdir)/$(target_alias)
34
96e946ca 35datarootdir = @datarootdir@
c906108c
SS
36datadir = @datadir@
37mandir = @mandir@
38man1dir = $(mandir)/man1
39man2dir = $(mandir)/man2
40man3dir = $(mandir)/man3
41man4dir = $(mandir)/man4
42man5dir = $(mandir)/man5
43man6dir = $(mandir)/man6
44man7dir = $(mandir)/man7
45man8dir = $(mandir)/man8
46man9dir = $(mandir)/man9
47infodir = @infodir@
48includedir = @includedir@
49
50SHELL = @SHELL@
51
52INSTALL = @INSTALL@
53INSTALL_PROGRAM = @INSTALL_PROGRAM@
54INSTALL_DATA = @INSTALL_DATA@
55
56AR = @AR@
57AR_FLAGS = rc
58CC = @CC@
5e25901f 59CPP = @CPP@
c906108c
SS
60CFLAGS = @CFLAGS@
61CC_FOR_BUILD = @CC_FOR_BUILD@
4b164edf 62CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
c906108c
SS
63MAKEINFO = makeinfo
64RANLIB = @RANLIB@
65
66SUBDIRS = @subdirs@
67
68INCDIR = $(srcdir)/../include
69CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
70DEP = mkdep
71
c906108c
SS
72#### Makefile fragments come in here.
73# @target_makefile_frag@
74###
75
c93abbcc
AC
76# Name of the ChangeLog file.
77ChangeLog = ChangeLog
78
79
c906108c
SS
80RUNTEST = `if [ -f $${srcdir}/../dejagnu/runtest ] ; then \
81 echo $${srcdir}/../dejagnu/runtest ; else echo runtest; \
82 fi`
83RUNTESTFLAGS=
84
85FLAGS_TO_PASS = \
86 "prefix=$(prefix)" \
87 "exec_prefix=$(exec_prefix)" \
fb72cee0
AS
88 "bindir=$(bindir)" \
89 "mandir=$(mandir)" \
ce928021 90 "libdir=$(libdir)" \
c906108c
SS
91 "against=$(against)" \
92 "AR=$(AR)" \
93 "AR_FLAGS=$(AR_FLAGS)" \
94 "CC=$(CC)" \
95 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
96 "CFLAGS=$(CFLAGS)" \
4b164edf 97 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
c906108c
SS
98 "RANLIB=$(RANLIB)" \
99 "MAKEINFO=$(MAKEINFO)" \
100 "INSTALL=$(INSTALL)" \
101 "INSTALL_DATA=$(INSTALL_DATA)" \
102 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
792fe9c9 103 "RUNTEST=$(RUNTEST)" \
c906108c
SS
104 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
105 "SHELL=$(SHELL)"
106
107# The use of $$(x_FOR_TARGET) reduces the command line length by not
108# duplicating the lengthy definition.
109TARGET_FLAGS_TO_PASS = \
110 "prefix=$(prefix)" \
111 "exec_prefix=$(exec_prefix)" \
112 "against=$(against)" \
113 'CC=$$(CC_FOR_TARGET)' \
114 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
115 "CFLAGS=$(CFLAGS)" \
116 "CHILLFLAGS=$(CHILLFLAGS)" \
117 'CHILL=$$(CHILL_FOR_TARGET)' \
118 "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \
119 "CHILL_LIB=$(CHILL_LIB)" \
120 'CXX=$$(CXX_FOR_TARGET)' \
121 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
122 "CXXFLAGS=$(CXXFLAGS)" \
123 "INSTALL=$(INSTALL)" \
124 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
125 "INSTALL_DATA=$(INSTALL_DATA)" \
126 "MAKEINFO=$(MAKEINFO)" \
792fe9c9 127 "RUNTEST=$(RUNTEST)" \
c906108c
SS
128 "RUNTESTFLAGS=$(RUNTESTFLAGS)"
129
130
131all:
132 @rootme=`pwd` ; export rootme ; \
133 for dir in . `echo ${SUBDIRS} | sed 's/testsuite//'` ; do \
134 if [ "$$dir" = "." ]; then \
135 true; \
136 elif [ -d $$dir ]; then \
8bdcadb1 137 (cd $$dir; $(MAKE) $(FLAGS_TO_PASS)) || exit 1; \
c906108c
SS
138 else true; fi; \
139 done
140
141clean mostlyclean:
142 @rootme=`pwd` ; export rootme ; \
143 for dir in . ${SUBDIRS}; do \
144 if [ "$$dir" = "." ]; then \
145 true; \
146 elif [ -d $$dir ]; then \
8bdcadb1 147 (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) $@) || exit 1; \
c906108c
SS
148 else true; fi; \
149 done
150
151distclean maintainer-clean realclean:
152 @rootme=`pwd` ; export rootme ; \
153 for dir in . ${SUBDIRS}; do \
154 if [ "$$dir" = "." ]; then \
155 true; \
156 elif [ -d $$dir ]; then \
8bdcadb1 157 (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) $@) || exit 1; \
c906108c
SS
158 else true; fi; \
159 done
160 rm -f Makefile config.cache config.log config.status
161
162install:
163 @rootme=`pwd` ; export rootme ; \
164 for dir in . ${SUBDIRS}; do \
165 if [ "$$dir" = "." ]; then \
166 true; \
167 elif [ -d $$dir ]; then \
8bdcadb1 168 (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) install) || exit 1; \
c906108c
SS
169 else true; fi; \
170 done
171
78aa740b
TT
172install-strip:
173 @rootme=`pwd` ; export rootme ; \
174 for dir in . ${SUBDIRS}; do \
175 if [ "$$dir" = "." ]; then \
176 true; \
177 elif [ -d $$dir ]; then \
178 (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) install-strip) || exit 1; \
179 else true; fi; \
180 done
181
c906108c
SS
182installcheck:
183 @echo No installcheck target is available yet for the GNU simulators.
184
185installcheck:
186
187# The check target can not use subdir_do, because subdir_do does not
188# use TARGET_FLAGS_TO_PASS.
189check: force
190 @if [ -f testsuite/Makefile ]; then \
191 rootme=`pwd`; export rootme; \
192 rootsrc=`cd $(srcdir); pwd`; export rootsrc; \
193 cd testsuite; \
194 $(MAKE) $(TARGET_FLAGS_TO_PASS) check; \
195 else true; fi
196
197
198
199info:
200install-info:
201dvi:
9453113a 202pdf:
89a34d1b
JM
203install-pdf:
204html:
205install-html:
c906108c
SS
206
207###
208###
209
210.NOEXPORT:
211MAKEOVERRIDES=
212
213.PHONY: check installcheck
214check:
215installcheck:
216
217TAGS:
218
219force:
220
221Makefile: Makefile.in config.status
222 $(SHELL) ./config.status
223
224config.status: configure
225 $(SHELL) ./config.status --recheck
226
5e25901f
MF
227# Generate nltvals.def for newlib/libgloss using devo and build tree.
228# This file is shipped with distributions so we build in the source dir.
229# Use `make nltvals' to rebuild.
230# Note: If gdb releases begin to contain target header files (not a good idea,
231# but if they did ...), nltvals.def coud be generated at build time.
232# An alternative is to slurp in the tables at runtime.
233.PHONY: nltvals
234nltvals:
9a7ba4aa 235 $(abs_srcdir)/common/gennltvals.py --cpp "$(CPP)" --output nltvals.def --srcroot $(srcroot) && \
5e25901f
MF
236 $(SHELL) $(srcroot)/move-if-change nltvals.def $(abs_srcdir)/common/nltvals.def
237
c906108c
SS
238# Utility to run autoconf in each directory that uses the common framework.
239# This is intended to be invoked in $srcdir as
e80204fc
HPN
240# "make -f Makefile.in autoconf-common SHELL=/bin/sh".
241.PHONY: autoconf-common autoheader-common
c906108c
SS
242autoconf-common autoheader-common:
243 for d in * ; \
244 do \
38f48d72 245 if [ -d $$d -a -f $$d/configure.ac ] ; \
c906108c
SS
246 then \
247 echo "Running autoconf in $$d ..." ; \
38f48d72 248 (cd $$d && autoconf --force) ; \
570ee7f0 249 if [ $@ = autoheader-common ] && [ -f $$d/config.in ] ; \
c906108c
SS
250 then \
251 echo "Running autoheader in $$d ..." ; \
38f48d72 252 (cd $$d && autoheader --force) ; \
c906108c
SS
253 fi ; \
254 fi ; \
255 done
256
257autoconf-changelog autoheader-changelog:
3832c25c
AC
258 id=$(ID) ; \
259 test x$$id = x && id="`id | sed -e 's/^[^(]*(\([^)]*\).*$$/\1/'`" ; \
260 name=$(NAME) ; \
261 test x$$name = x && name=`grep "^$$id:" /etc/passwd | cut -f 5 -d ':'` ; \
262 host=$(HOST) ; \
263 test x$$host = x && host="`hostname`" ; \
264 date=$(DATE) ; \
265 test x$$date = x && date="`date +%Y-%m-%d`" ; \
c906108c
SS
266 echo "$$date $$name $$id@$$host" ; \
267 for d in * ; \
268 do \
38f48d72 269 if [ -d $$d -a -f $$d/configure.ac ] ; \
c906108c 270 then \
c93abbcc 271 echo "Creating new-$(ChangeLog) in $$d ..." ; \
c906108c
SS
272 ( echo "$$date $$name <$$id@$$host>" ; \
273 echo "" ; \
274 echo " * configure: Regenerated to track ../common/aclocal.m4 changes." ; \
275 if [ $@ = autoheader-changelog ] ; \
276 then \
277 echo " * config.in: Ditto." ; \
278 fi ; \
279 echo "" ; \
c93abbcc
AC
280 cat $$d/$(ChangeLog) \
281 ) > $$d/new-$(ChangeLog) ; \
c906108c
SS
282 fi ; \
283 done
284
285autoconf-install autoheader-install:
286 for d in * ; \
287 do \
38f48d72 288 if [ -d $$d -a -f $$d/configure.ac ] ; \
c906108c 289 then \
c93abbcc
AC
290 echo "Moving $$d/new-$(ChangeLog) to $$d/$(ChangeLog) ..." ; \
291 mv $$d/new-$(ChangeLog) $$d/$(ChangeLog) ; \
c906108c
SS
292 fi ; \
293 done
This page took 0.953656 seconds and 4 git commands to generate.