]>
Commit | Line | Data |
---|---|---|
e856060f | 1 | # Makefile template for Configure for the sim library. |
1ffd292b | 2 | # Copyright (C) 1993, 1995 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 | |
19 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
20 | ||
1ffd292b C |
21 | VPATH = @srcdir@ |
22 | srcdir = @srcdir@ | |
becbe1c3 | 23 | srcroot = $(srcdir)/.. |
e856060f | 24 | |
1ffd292b C |
25 | prefix = @prefix@ |
26 | exec_prefix = @exec_prefix@ | |
27 | ||
28 | host_alias = @host_alias@ | |
29 | target_alias = @target_alias@ | |
30 | program_transform_name = @program_transform_name@ | |
e856060f SC |
31 | bindir = $(exec_prefix)/bin |
32 | libdir = $(exec_prefix)/lib | |
1ffd292b | 33 | tooldir = $(libdir)/$(target_alias) |
e856060f SC |
34 | |
35 | datadir = $(prefix)/lib | |
36 | mandir = $(prefix)/man | |
37 | man1dir = $(mandir)/man1 | |
38 | man2dir = $(mandir)/man2 | |
39 | man3dir = $(mandir)/man3 | |
40 | man4dir = $(mandir)/man4 | |
41 | man5dir = $(mandir)/man5 | |
42 | man6dir = $(mandir)/man6 | |
43 | man7dir = $(mandir)/man7 | |
44 | man8dir = $(mandir)/man8 | |
45 | man9dir = $(mandir)/man9 | |
46 | infodir = $(prefix)/info | |
47 | includedir = $(prefix)/include | |
1ffd292b | 48 | docdir = $(datadir)/doc |
e856060f SC |
49 | |
50 | SHELL = /bin/sh | |
51 | ||
1ffd292b | 52 | # FIXME: Use autoconf's AC_PROG_INSTALL |
becbe1c3 | 53 | INSTALL = $${srcroot}/../install.sh -c |
e856060f SC |
54 | INSTALL_PROGRAM = $(INSTALL) |
55 | INSTALL_DATA = $(INSTALL) | |
becbe1c3 RP |
56 | INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)' |
57 | INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1 | |
58 | ||
e856060f SC |
59 | AR = ar |
60 | AR_FLAGS = rc | |
61 | CFLAGS = -g | |
62 | BISON = bison | |
63 | MAKEINFO = makeinfo | |
64 | RANLIB = ranlib | |
65 | ||
1ffd292b C |
66 | SUBDIRS = @subdirs@ |
67 | ||
68 | .NOEXPORT: | |
becbe1c3 RP |
69 | MAKEOVERRIDES= |
70 | ||
1ffd292b | 71 | |
e856060f SC |
72 | INCDIR = $(srcdir)/../include |
73 | CSEARCH = -I. -I$(srcdir) -I$(INCDIR) | |
74 | DEP = mkdep | |
75 | ||
47dba87a SC |
76 | ALL=all-nothing |
77 | CLEAN=clean-nothing | |
a86ea03f | 78 | DO_INSTALL=install-nothing |
47dba87a | 79 | |
1ffd292b C |
80 | #### Makefile fragments come in here. |
81 | # @target_makefile_frag@ | |
e856060f SC |
82 | ### |
83 | ||
84 | FLAGS_TO_PASS = \ | |
85 | "prefix=$(prefix)" \ | |
86 | "exec_prefix=$(exec_prefix)" \ | |
87 | "against=$(against)" \ | |
88 | "AR=$(AR)" \ | |
89 | "AR_FLAGS=$(AR_FLAGS)" \ | |
90 | "CC=$(CC)" \ | |
91 | "CFLAGS=$(CFLAGS)" \ | |
92 | "RANLIB=$(RANLIB)" \ | |
93 | "MAKEINFO=$(MAKEINFO)" \ | |
94 | "INSTALL=$(INSTALL)" \ | |
95 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
96 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | |
97 | "BISON=$(BISON)" | |
98 | ||
b23eaace | 99 | all: $(ALL) |
1ffd292b | 100 | |
47dba87a | 101 | clean: $(CLEAN) |
e856060f | 102 | |
a86ea03f SC |
103 | install: $(DO_INSTALL) |
104 | ||
68dd3014 JK |
105 | mostlyclean: clean |
106 | ||
107 | distclean realclean: clean | |
1ffd292b | 108 | rm -f Makefile config.cache config.log config.status |
68dd3014 | 109 | |
a86ea03f SC |
110 | info: |
111 | install-info: | |
b23eaace | 112 | dvi: |
e856060f | 113 | |
68dd3014 JK |
114 | ### |
115 | ### | |
47dba87a | 116 | |
68dd3014 JK |
117 | .PHONY: check installcheck |
118 | check: | |
119 | installcheck: | |
ad5fcc62 | 120 | |
47dba87a SC |
121 | ### none |
122 | ||
123 | all-nothing: force | |
124 | ||
125 | clean-nothing: force | |
126 | ||
127 | install-nothing: force | |
128 | ||
129 | ||
e856060f SC |
130 | ### z8k |
131 | ||
68dd3014 | 132 | all-z8k: force |
becbe1c3 | 133 | @if [ -f ./z8k/Makefile ] ; then \ |
e856060f SC |
134 | rootme=`pwd` ; export rootme ; \ |
135 | ( cd ./z8k ; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
136 | else \ | |
137 | true ; \ | |
138 | fi | |
139 | ||
140 | install-z8k: force | |
becbe1c3 | 141 | @if [ -f ./z8k/Makefile ] ; then \ |
e856060f | 142 | rootme=`pwd` ; export rootme ; \ |
becbe1c3 | 143 | srcroot=`cd $(srcdir); pwd`; export srcroot; \ |
e856060f SC |
144 | ( cd ./z8k ; $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
145 | else \ | |
146 | true ; \ | |
147 | fi | |
148 | ||
47dba87a | 149 | clean-z8k: force |
becbe1c3 | 150 | @if [ -f ./z8k/Makefile ] ; then \ |
47dba87a SC |
151 | rootme=`pwd` ; export rootme ; \ |
152 | ( cd ./z8k ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \ | |
153 | else \ | |
154 | true ; \ | |
155 | fi | |
156 | ||
e856060f SC |
157 | |
158 | ### h8300 | |
159 | ||
68dd3014 | 160 | all-h8300: force |
becbe1c3 | 161 | @if [ -f ./h8300/Makefile ] ; then \ |
e856060f SC |
162 | rootme=`pwd` ; export rootme ; \ |
163 | ( cd ./h8300 ; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
164 | else \ | |
165 | true ; \ | |
166 | fi | |
167 | ||
168 | install-h8300: force | |
becbe1c3 | 169 | @if [ -f ./h8300/Makefile ] ; then \ |
e856060f | 170 | rootme=`pwd` ; export rootme ; \ |
becbe1c3 | 171 | srcroot=`cd $(srcdir); pwd`; export srcroot; \ |
e856060f SC |
172 | ( cd ./h8300 ; $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
173 | else \ | |
174 | true ; \ | |
175 | fi | |
176 | ||
47dba87a | 177 | clean-h8300: force |
becbe1c3 | 178 | @if [ -f ./h8300/Makefile ] ; then \ |
47dba87a SC |
179 | rootme=`pwd` ; export rootme ; \ |
180 | ( cd ./h8300 ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \ | |
181 | else \ | |
182 | true ; \ | |
183 | fi | |
184 | ||
185 | ### | |
186 | ||
187 | ### h8500 | |
188 | ||
becbe1c3 RP |
189 | all-h8500: force |
190 | @if [ -f ./h8500/Makefile ] ; then \ | |
47dba87a SC |
191 | rootme=`pwd` ; export rootme ; \ |
192 | ( cd ./h8500 ; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
193 | else \ | |
194 | true ; \ | |
195 | fi | |
196 | ||
197 | install-h8500: force | |
becbe1c3 | 198 | @if [ -f ./h8500/Makefile ] ; then \ |
47dba87a | 199 | rootme=`pwd` ; export rootme ; \ |
becbe1c3 | 200 | srcroot=`cd $(srcdir); pwd`; export srcroot; \ |
47dba87a SC |
201 | ( cd ./h8500 ; $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
202 | else \ | |
203 | true ; \ | |
204 | fi | |
205 | ||
206 | clean-h8500: force | |
becbe1c3 | 207 | @if [ -f ./h8500/Makefile ] ; then \ |
47dba87a SC |
208 | rootme=`pwd` ; export rootme ; \ |
209 | ( cd ./h8500 ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \ | |
210 | else \ | |
211 | true ; \ | |
212 | fi | |
213 | ||
e856060f SC |
214 | ### |
215 | ||
a86ea03f SC |
216 | ### sh |
217 | ||
68dd3014 | 218 | all-sh: force |
becbe1c3 | 219 | @if [ -f ./sh/Makefile ] ; then \ |
a86ea03f SC |
220 | rootme=`pwd` ; export rootme ; \ |
221 | ( cd ./sh ; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
222 | else \ | |
223 | true ; \ | |
224 | fi | |
225 | ||
226 | install-sh: force | |
becbe1c3 | 227 | @if [ -f ./sh/Makefile ] ; then \ |
a86ea03f SC |
228 | rootme=`pwd` ; export rootme ; \ |
229 | ( cd ./sh ; $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
230 | else \ | |
231 | true ; \ | |
232 | fi | |
233 | ||
234 | clean-sh: force | |
becbe1c3 | 235 | @if [ -f ./sh/Makefile ] ; then \ |
a86ea03f SC |
236 | rootme=`pwd` ; export rootme ; \ |
237 | ( cd ./sh ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \ | |
238 | else \ | |
239 | true ; \ | |
240 | fi | |
241 | ||
1ffd292b C |
242 | TAGS: |
243 | ||
a86ea03f SC |
244 | ### |
245 | ||
1ffd292b C |
246 | ### w65 |
247 | ||
248 | all-w65: force | |
249 | @if [ -f ./w65/Makefile ] ; then \ | |
250 | rootme=`pwd` ; export rootme ; \ | |
251 | ( cd ./w65 ; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
252 | else \ | |
253 | true ; \ | |
254 | fi | |
255 | ||
256 | install-w65: force | |
257 | @if [ -f ./w65/Makefile ] ; then \ | |
258 | rootme=`pwd` ; export rootme ; \ | |
259 | srcroot=`cd $(srcdir); pwd`; export srcroot; \ | |
260 | ( cd ./w65 ; $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
261 | else \ | |
262 | true ; \ | |
263 | fi | |
264 | ||
265 | clean-w65: force | |
266 | @if [ -f ./w65/Makefile ] ; then \ | |
267 | rootme=`pwd` ; export rootme ; \ | |
268 | ( cd ./w65 ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \ | |
269 | else \ | |
270 | true ; \ | |
271 | fi | |
272 | ||
273 | ||
274 | ### arm | |
275 | ||
276 | all-arm: force | |
277 | @if [ -f ./arm/Makefile ] ; then \ | |
278 | rootme=`pwd` ; export rootme ; \ | |
279 | ( cd ./arm ; $(MAKE) $(FLAGS_TO_PASS) all) ; \ | |
280 | else \ | |
281 | true ; \ | |
282 | fi | |
283 | ||
284 | install-arm: force | |
285 | @if [ -f ./arm/Makefile ] ; then \ | |
286 | rootme=`pwd` ; export rootme ; \ | |
287 | srcroot=`cd $(srcdir); pwd`; export srcroot; \ | |
288 | ( cd ./arm ; $(MAKE) $(FLAGS_TO_PASS) install) ; \ | |
289 | else \ | |
290 | true ; \ | |
291 | fi | |
292 | ||
293 | clean-arm: force | |
294 | @if [ -f ./arm/Makefile ] ; then \ | |
295 | rootme=`pwd` ; export rootme ; \ | |
296 | ( cd ./arm ; $(MAKE) $(FLAGS_TO_PASS) clean) ; \ | |
297 | else \ | |
298 | true ; \ | |
299 | fi | |
300 | ||
301 | ||
e856060f SC |
302 | force: |
303 | ||
304 | ||
305 | # with the gnu make, this is done automatically. | |
306 | ||
1ffd292b | 307 | Makefile: Makefile.in config.status @frags@ |
e856060f | 308 | $(SHELL) ./config.status |
1ffd292b C |
309 | |
310 | config.status: configure | |
311 | $(SHELL) ./config.status --recheck |