Clean up formatting of instruction traces.
[deliverable/binutils-gdb.git] / sim / Makefile.in
CommitLineData
e856060f 1# Makefile template for Configure for the sim library.
b69cc8ab 2# Copyright (C) 1993, 1995, 1997 Free Software Foundation, Inc.
e856060f
SC
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
9fc3ba75 19# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
e856060f 20
1ffd292b
C
21VPATH = @srcdir@
22srcdir = @srcdir@
e856060f 23
1ffd292b
C
24prefix = @prefix@
25exec_prefix = @exec_prefix@
26
27host_alias = @host_alias@
28target_alias = @target_alias@
29program_transform_name = @program_transform_name@
27b9abfd
DE
30bindir = @bindir@
31libdir = @libdir@
1ffd292b 32tooldir = $(libdir)/$(target_alias)
e856060f 33
27b9abfd
DE
34datadir = @datadir@
35mandir = @mandir@
e856060f
SC
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
27b9abfd
DE
45infodir = @infodir@
46includedir = @includedir@
e856060f
SC
47
48SHELL = /bin/sh
49
27b9abfd
DE
50INSTALL = @INSTALL@
51INSTALL_PROGRAM = @INSTALL_PROGRAM@
52INSTALL_DATA = @INSTALL_DATA@
becbe1c3 53
9fc3ba75 54AR = @AR@
e856060f 55AR_FLAGS = rc
9fc3ba75
MM
56CC = @CC@
57CFLAGS = @CFLAGS@
58CC_FOR_BUILD = @CC_FOR_BUILD@
e856060f 59MAKEINFO = makeinfo
9fc3ba75 60RANLIB = @RANLIB@
e856060f 61
1ffd292b
C
62SUBDIRS = @subdirs@
63
e856060f
SC
64INCDIR = $(srcdir)/../include
65CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
66DEP = mkdep
67
9fc3ba75
MM
68# compilers to use to create programs which must be run in the build
69# environment.
70CC_FOR_BUILD = $(CC)
47dba87a 71
1ffd292b
C
72#### Makefile fragments come in here.
73# @target_makefile_frag@
e856060f
SC
74###
75
b69cc8ab
AC
76RUNTEST = `if [ -f $${srcdir}/../dejagnu/runtest ] ; then \
77 echo $${srcdir}/../dejagnu/runtest ; else echo runtest; \
78 fi`
79RUNTESTFLAGS=
80
e856060f
SC
81FLAGS_TO_PASS = \
82 "prefix=$(prefix)" \
83 "exec_prefix=$(exec_prefix)" \
84 "against=$(against)" \
85 "AR=$(AR)" \
86 "AR_FLAGS=$(AR_FLAGS)" \
87 "CC=$(CC)" \
9fc3ba75 88 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
e856060f
SC
89 "CFLAGS=$(CFLAGS)" \
90 "RANLIB=$(RANLIB)" \
91 "MAKEINFO=$(MAKEINFO)" \
92 "INSTALL=$(INSTALL)" \
93 "INSTALL_DATA=$(INSTALL_DATA)" \
b69cc8ab
AC
94 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
95 "RUNTEST=$(RUNTEST)" \
96 "RUNTESTFLAGS=$(RUNTESTFLAGS)"
97
98# The use of $$(x_FOR_TARGET) reduces the command line length by not
99# duplicating the lengthy definition.
100TARGET_FLAGS_TO_PASS = \
101 "prefix=$(prefix)" \
102 "exec_prefix=$(exec_prefix)" \
103 "against=$(against)" \
104 'CC=$$(CC_FOR_TARGET)' \
105 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
106 "CFLAGS=$(CFLAGS)" \
107 "CHILLFLAGS=$(CHILLFLAGS)" \
108 'CHILL=$$(CHILL_FOR_TARGET)' \
109 "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \
110 "CHILL_LIB=$(CHILL_LIB)" \
111 'CXX=$$(CXX_FOR_TARGET)' \
112 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
113 "CXXFLAGS=$(CXXFLAGS)" \
114 "INSTALL=$(INSTALL)" \
115 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
116 "INSTALL_DATA=$(INSTALL_DATA)" \
117 "MAKEINFO=$(MAKEINFO)" \
118 "RUNTEST=$(RUNTEST)" \
119 "RUNTESTFLAGS=$(RUNTESTFLAGS)"
120
9fc3ba75
MM
121
122all:
c8cd6f23 123 @rootme=`pwd` ; export rootme ; \
b69cc8ab 124 for dir in . `echo ${SUBDIRS} | sed 's/testsuite//'` ; do \
c8cd6f23
ILT
125 if [ "$$dir" = "." ]; then \
126 true; \
127 elif [ -d $$dir ]; then \
128 (cd $$dir; $(MAKE) $(FLAGS_TO_PASS)); \
129 else true; fi; \
130 done
9fc3ba75 131
15c16493
AC
132clean mostlyclean:
133 @rootme=`pwd` ; export rootme ; \
134 for dir in . ${SUBDIRS}; do \
135 if [ "$$dir" = "." ]; then \
136 true; \
137 elif [ -d $$dir ]; then \
138 (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) $@); \
139 else true; fi; \
140 done
141
9fc3ba75 142distclean maintainer-clean realclean:
c8cd6f23 143 @rootme=`pwd` ; export rootme ; \
c8cd6f23
ILT
144 for dir in . ${SUBDIRS}; do \
145 if [ "$$dir" = "." ]; then \
146 true; \
147 elif [ -d $$dir ]; then \
148 (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) $@); \
149 else true; fi; \
150 done
1ffd292b 151 rm -f Makefile config.cache config.log config.status
68dd3014 152
9fc3ba75 153install:
c8cd6f23 154 @rootme=`pwd` ; export rootme ; \
c8cd6f23
ILT
155 for dir in . ${SUBDIRS}; do \
156 if [ "$$dir" = "." ]; then \
27b9abfd 157 true; \
c8cd6f23
ILT
158 elif [ -d $$dir ]; then \
159 (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) install); \
160 else true; fi; \
161 done
9fc3ba75 162
b69cc8ab
AC
163installcheck:
164 @echo No installcheck target is available yet for the GNU simulators.
165
166installcheck:
167
168# The check target can not use subdir_do, because subdir_do does not
169# use TARGET_FLAGS_TO_PASS.
170check: force
171 @if [ -f testsuite/Makefile ]; then \
172 rootme=`pwd`; export rootme; \
173 rootsrc=`cd $(srcdir); pwd`; export rootsrc; \
174 cd testsuite; \
175 $(MAKE) $(TARGET_FLAGS_TO_PASS) check; \
176 else true; fi
177
178
179
a86ea03f
SC
180info:
181install-info:
b23eaace 182dvi:
e856060f 183
68dd3014
JK
184###
185###
47dba87a 186
15c16493
AC
187.NOEXPORT:
188MAKEOVERRIDES=
189
68dd3014
JK
190.PHONY: check installcheck
191check:
192installcheck:
ad5fcc62 193
1ffd292b
C
194TAGS:
195
e856060f
SC
196force:
197
9fc3ba75 198Makefile: Makefile.in config.status
e856060f 199 $(SHELL) ./config.status
1ffd292b
C
200
201config.status: configure
202 $(SHELL) ./config.status --recheck
27b9abfd
DE
203
204# Utility to run autoconf in each directory that uses the common framework.
205# This is intended to be invoked in $srcdir as
206# "make -f Makefile.in autoconf-common".
207.PHONY: autoconf-common
96527c4e 208autoconf-common autoheader-common:
27b9abfd
DE
209 for d in * ; \
210 do \
211 if [ -d $$d -a -f $$d/configure.in ] ; \
212 then \
213 if grep SIM_AC_COMMON $$d/configure.in >/dev/null ; \
214 then \
215 echo "Running autoconf in $$d ..." ; \
216 (cd $$d && autoconf) ; \
96527c4e
AC
217 if [ $* = autoheader-common ] ; \
218 then \
219 echo "Running autoheader in $$d ..." ; \
220 (cd $$d && autoheader) ; \
221 fi ; \
27b9abfd
DE
222 fi ; \
223 fi ; \
224 done
b69cc8ab 225
96527c4e 226autoconf-changelog autoheader-changelog:
b04500b2
DE
227 id="`id | sed -e 's/^[^(]*(\([^)]*\).*$$/\1/'`" ; \
228 name=`grep "^$$id:" /etc/passwd | cut -f 5 -d ':'` ; \
229 host="`hostname`" ; \
b69cc8ab 230 date="`date | sed 's/ [^ ]* \([0-9]*\)$$/ \1/'`" ; \
b04500b2 231 echo "$$date $$name $$id@$$host" ; \
b69cc8ab
AC
232 for d in * ; \
233 do \
234 if [ -d $$d -a -f $$d/configure.in ] ; \
235 then \
236 if grep SIM_AC_COMMON $$d/configure.in >/dev/null ; \
237 then \
238 echo "Creating new-ChangeLog in $$d ..." ; \
b04500b2 239 ( echo "$$date $$name <$$id@$$host>" ; \
b69cc8ab
AC
240 echo "" ; \
241 echo " * configure: Regenerated to track ../common/aclocal.m4 changes." ; \
96527c4e
AC
242 if [ $* = autoheader-changelog ] ; \
243 then \
244 echo " * config.in: Ditto." ; \
245 fi ; \
b69cc8ab
AC
246 echo "" ; \
247 cat $$d/ChangeLog \
248 ) > $$d/new-ChangeLog ; \
249 fi ; \
250 fi ; \
251 done
b04500b2 252
96527c4e 253autoconf-install autoheader-install:
b04500b2
DE
254 for d in * ; \
255 do \
256 if [ -d $$d -a -f $$d/configure.in ] ; \
257 then \
258 if grep SIM_AC_COMMON $$d/configure.in >/dev/null ; \
259 then \
260 echo "Moving $$d/new-ChangeLog to $$d/ChangeLog ..." ; \
261 mv $$d/new-ChangeLog $$d/ChangeLog ; \
262 fi ; \
263 fi ; \
264 done
This page took 0.168719 seconds and 4 git commands to generate.