New target - autoconf-changelog
[deliverable/binutils-gdb.git] / sim / Makefile.in
1 # Makefile template for Configure for the sim library.
2 # Copyright (C) 1993, 1995, 1997 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 = /bin/sh
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 MAKEINFO = makeinfo
60 RANLIB = @RANLIB@
61
62 SUBDIRS = @subdirs@
63
64 .NOEXPORT:
65 MAKEOVERRIDES=
66
67
68 INCDIR = $(srcdir)/../include
69 CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
70 DEP = mkdep
71
72 # compilers to use to create programs which must be run in the build
73 # environment.
74 CC_FOR_BUILD = $(CC)
75
76 #### Makefile fragments come in here.
77 # @target_makefile_frag@
78 ###
79
80 RUNTEST = `if [ -f $${srcdir}/../dejagnu/runtest ] ; then \
81 echo $${srcdir}/../dejagnu/runtest ; else echo runtest; \
82 fi`
83 RUNTESTFLAGS=
84
85 FLAGS_TO_PASS = \
86 "prefix=$(prefix)" \
87 "exec_prefix=$(exec_prefix)" \
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 "RANLIB=$(RANLIB)" \
95 "MAKEINFO=$(MAKEINFO)" \
96 "INSTALL=$(INSTALL)" \
97 "INSTALL_DATA=$(INSTALL_DATA)" \
98 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
99 "RUNTEST=$(RUNTEST)" \
100 "RUNTESTFLAGS=$(RUNTESTFLAGS)"
101
102 # The use of $$(x_FOR_TARGET) reduces the command line length by not
103 # duplicating the lengthy definition.
104 TARGET_FLAGS_TO_PASS = \
105 "prefix=$(prefix)" \
106 "exec_prefix=$(exec_prefix)" \
107 "against=$(against)" \
108 'CC=$$(CC_FOR_TARGET)' \
109 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
110 "CFLAGS=$(CFLAGS)" \
111 "CHILLFLAGS=$(CHILLFLAGS)" \
112 'CHILL=$$(CHILL_FOR_TARGET)' \
113 "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \
114 "CHILL_LIB=$(CHILL_LIB)" \
115 'CXX=$$(CXX_FOR_TARGET)' \
116 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
117 "CXXFLAGS=$(CXXFLAGS)" \
118 "INSTALL=$(INSTALL)" \
119 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
120 "INSTALL_DATA=$(INSTALL_DATA)" \
121 "MAKEINFO=$(MAKEINFO)" \
122 "RUNTEST=$(RUNTEST)" \
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)); \
133 else true; fi; \
134 done
135
136 distclean maintainer-clean realclean:
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) $@); \
143 else true; fi; \
144 done
145 rm -f Makefile config.cache config.log config.status
146
147 install:
148 @rootme=`pwd` ; export rootme ; \
149 for dir in . ${SUBDIRS}; do \
150 if [ "$$dir" = "." ]; then \
151 true; \
152 elif [ -d $$dir ]; then \
153 (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) install); \
154 else true; fi; \
155 done
156
157 installcheck:
158 @echo No installcheck target is available yet for the GNU simulators.
159
160 installcheck:
161
162 # The check target can not use subdir_do, because subdir_do does not
163 # use TARGET_FLAGS_TO_PASS.
164 check: force
165 @if [ -f testsuite/Makefile ]; then \
166 rootme=`pwd`; export rootme; \
167 rootsrc=`cd $(srcdir); pwd`; export rootsrc; \
168 cd testsuite; \
169 $(MAKE) $(TARGET_FLAGS_TO_PASS) check; \
170 else true; fi
171
172
173
174 info:
175 install-info:
176 dvi:
177
178 ###
179 ###
180
181 .PHONY: check installcheck
182 check:
183 installcheck:
184
185 TAGS:
186
187 force:
188
189 Makefile: Makefile.in config.status
190 $(SHELL) ./config.status
191
192 config.status: configure
193 $(SHELL) ./config.status --recheck
194
195 # Utility to run autoconf in each directory that uses the common framework.
196 # This is intended to be invoked in $srcdir as
197 # "make -f Makefile.in autoconf-common".
198 .PHONY: autoconf-common
199 autoconf-common:
200 for d in * ; \
201 do \
202 if [ -d $$d -a -f $$d/configure.in ] ; \
203 then \
204 if grep SIM_AC_COMMON $$d/configure.in >/dev/null ; \
205 then \
206 echo "Running autoconf in $$d ..." ; \
207 (cd $$d && autoconf) ; \
208 fi ; \
209 fi ; \
210 done
211
212 autoconf-changelog:
213 user="`finger $$USER | sed -n 's/^.*Name: //p'` <$$USER@`hostname`>" ; \
214 date="`date | sed 's/ [^ ]* \([0-9]*\)$$/ \1/'`" ; \
215 echo "$$date $$user" ; \
216 for d in * ; \
217 do \
218 if [ -d $$d -a -f $$d/configure.in ] ; \
219 then \
220 if grep SIM_AC_COMMON $$d/configure.in >/dev/null ; \
221 then \
222 echo "Creating new-ChangeLog in $$d ..." ; \
223 ( echo "$$date $$user" ; \
224 echo "" ; \
225 echo " * configure: Regenerated to track ../common/aclocal.m4 changes." ; \
226 echo "" ; \
227 cat $$d/ChangeLog \
228 ) > $$d/new-ChangeLog ; \
229 fi ; \
230 fi ; \
231 done
This page took 0.034518 seconds and 5 git commands to generate.