]>
Commit | Line | Data |
---|---|---|
eb02fd64 | 1 | # |
131a3881 | 2 | # Makefile for directory with subdirs to build. |
4dfe09da | 3 | # Copyright (C) 1990, 1991 Cygnus Support |
eb02fd64 | 4 | # |
4dfe09da RP |
5 | # This file is free software; you can redistribute it and/or modify |
6 | # it under the terms of the GNU General Public License as published by | |
7 | # the Free Software Foundation; either version 2 of the License, or | |
8 | # (at your option) any later version. | |
9 | # | |
10 | # This program is distributed in the hope that it will be useful, | |
11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | # GNU General Public License for more details. | |
14 | # | |
15 | # You should have received a copy of the GNU General Public License | |
16 | # along with this program; if not, write to the Free Software | |
17 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ | |
18 | # | |
f149eb99 | 19 | |
eb02fd64 | 20 | srcdir = . |
28f3b094 | 21 | |
4d714963 | 22 | prefix = /usr/local |
eb02fd64 | 23 | |
4d714963 RP |
24 | datadir = $(prefix)/lib |
25 | bindir = $(prefix)/bin | |
26 | libdir = $(prefix)/lib | |
27 | mandir = $(datadir)/man | |
28 | man1dir = $(mandir)/man1 | |
29 | man2dir = $(mandir)/man2 | |
30 | man3dir = $(mandir)/man3 | |
31 | man4dir = $(mandir)/man4 | |
32 | man5dir = $(mandir)/man5 | |
33 | man6dir = $(mandir)/man6 | |
34 | man7dir = $(mandir)/man7 | |
35 | man8dir = $(mandir)/man8 | |
36 | man9dir = $(mandir)/man9 | |
37 | infodir = $(prefix)/info | |
38 | includedir = $(prefix)/include | |
39 | docdir = $(datadir)/doc | |
40 | ||
41 | SHELL = /bin/sh | |
42 | ||
43 | INSTALL = install -c | |
44 | INSTALL_PROGRAM = $(INSTALL) | |
45 | INSTALL_DATA = $(INSTALL) | |
3c8735af | 46 | |
ec342d7d | 47 | AR = ar |
4d714963 RP |
48 | AR_FLAGS = qv |
49 | RANLIB = ranlib | |
eb02fd64 | 50 | |
4d714963 RP |
51 | BISON = `if [ -d $(unsubdir)/../byacc ] ; \ |
52 | then echo \`pwd\`/$(unsubdir)/../byacc$(subdir)/byacc ; \ | |
2bc9434c | 53 | else echo yacc ; fi` |
2645fb0c | 54 | |
4d714963 RP |
55 | MAKEINFO = makeinfo |
56 | FRESHMAKEINFO = `if [ -d $(unsubdir)/../texinfo/C ] ; \ | |
b772d75e RP |
57 | then echo \`pwd\`/$(unsubdir)/../texinfo/C$(subdir)/makeinfo ; \ |
58 | else echo echo ; fi` | |
59 | ||
2c55824f | 60 | #\`(cd $(srcdir)/bison ; \\`pwd\\`)\` |
a3a063a9 | 61 | SUBDIRS = libiberty glob readline bfd gdb binutils ld gas gcc gnulib clib |
6a3958b2 RP |
62 | OTHERS = |
63 | ||
a0f47eb7 | 64 | ALL = all.normal |
fb660409 RP |
65 | |
66 | ### for debugging | |
67 | #GCCVERBOSE=-v | |
68 | ||
4d714963 | 69 | \f |
eb02fd64 | 70 | #### host and target specific makefile fragments come in here. |
ec342d7d | 71 | ### |
eb02fd64 | 72 | |
4d714963 RP |
73 | .PHONY: all info install-info clean-info |
74 | ||
a0f47eb7 | 75 | all: $(ALL) |
4d714963 RP |
76 | |
77 | info: force | |
78 | $(MAKE) subdir_do DO=info "DODIRS=$(SUBDIRS)" | |
c5f94070 RP |
79 | |
80 | install-info: dir.info install-info-dirs force | |
81 | $(MAKE) subdir_do DO=install-info "DODIRS=$(SUBDIRS)" | |
4d714963 RP |
82 | # $(MAKE) install-dir.info |
83 | ||
84 | # clib prms | |
85 | all.normal: all-texinfo all-bison all-ld all-gnulib all-gdb all-make \ | |
86 | all-cvs all-emacs all-ispell | |
87 | # $(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS) $(OTHERS)" | |
88 | ||
89 | clean: clean-libiberty clean-texinfo clean-bfd clean-binutils clean-bison \ | |
90 | clean-byacc clean-ld clean-gas clean-gcc clean-gnulib clean-readline \ | |
91 | clean-glob clean-gdb clean-make clean-diff clean-grep clean-rcs \ | |
92 | clean-cvs clean-emacs clean-ispell | |
93 | rm -rf *.a TEMP errs core *.o *~ \#* TAGS *.E | |
94 | ||
95 | install: install-dirs install-libiberty install-texinfo install-binutils install-bison \ | |
96 | install-byacc install-ld install-gas install-gnulib \ | |
97 | install-readline install-glob install-gdb install-make install-cvs \ | |
98 | install-emacs install-ispell | |
99 | ||
100 | \f | |
101 | ### libiberty | |
102 | .PHONY: all-libiberty just-libiberty | |
103 | all-libiberty: just-libiberty | |
104 | just-libiberty: force | |
105 | [ -d $(unsubdir)/libiberty ] && (cd $(unsubdir)/libiberty$(subdir); \ | |
106 | $(MAKE) \ | |
107 | "against=$(against)" \ | |
108 | "AR=$(AR)" \ | |
109 | "AR_FLAGS=$(AR_FLAGS)" \ | |
110 | "CC=$(CC)" \ | |
111 | "RANLIB=$(RANLIB)" \ | |
112 | "LOADLIBES=$(LOADLIBES)" \ | |
113 | "LDFLAGS=$(LDFLAGS)" \ | |
114 | "BISON=$(BISON)" \ | |
115 | "MAKEINFO=$(MAKEINFO)" \ | |
116 | all) | |
117 | ||
118 | clean-libiberty: force | |
119 | [ -d $(unsubdir)/libiberty ] && (cd $(unsubdir)/libiberty$(subdir); \ | |
120 | $(MAKE) \ | |
121 | "against=$(against)" \ | |
122 | "AR=$(AR)" \ | |
123 | "AR_FLAGS=$(AR_FLAGS)" \ | |
124 | "CC=$(CC)" \ | |
125 | "RANLIB=$(RANLIB)" \ | |
126 | "LOADLIBES=$(LOADLIBES)" \ | |
127 | "LDFLAGS=$(LDFLAGS)" \ | |
128 | "BISON=$(BISON)" \ | |
129 | "MAKEINFO=$(MAKEINFO)" \ | |
130 | clean) | |
131 | ||
132 | install-libiberty: force | |
133 | [ -d $(unsubdir)/libiberty ] && (cd $(unsubdir)/libiberty$(subdir); \ | |
134 | $(MAKE) \ | |
135 | "against=$(against)" \ | |
136 | "AR=$(AR)" \ | |
137 | "AR_FLAGS=$(AR_FLAGS)" \ | |
138 | "CC=$(CC)" \ | |
139 | "RANLIB=$(RANLIB)" \ | |
140 | "LOADLIBES=$(LOADLIBES)" \ | |
141 | "LDFLAGS=$(LDFLAGS)" \ | |
142 | "BISON=$(BISON)" \ | |
143 | "MAKEINFO=$(MAKEINFO)" \ | |
144 | install) | |
145 | \f | |
146 | ### texinfo | |
147 | .PHONY: all-texinfo just-texinfo | |
148 | all-texinfo: just-texinfo | |
149 | just-texinfo: just-libiberty force | |
150 | [ -d $(unsubdir)/texinfo ] && (cd $(unsubdir)/texinfo$(subdir); \ | |
151 | $(MAKE) \ | |
152 | "against=$(against)" \ | |
153 | "AR=$(AR)" \ | |
154 | "AR_FLAGS=$(AR_FLAGS)" \ | |
155 | "CC=$(CC)" \ | |
156 | "RANLIB=$(RANLIB)" \ | |
157 | "LOADLIBES=$(LOADLIBES)" \ | |
158 | "LDFLAGS=$(LDFLAGS)" \ | |
159 | "BISON=$(BISON)" \ | |
160 | "MAKEINFO=$(MAKEINFO)" \ | |
161 | all) | |
162 | ||
163 | clean-texinfo: force | |
164 | [ -d $(unsubdir)/texinfo ] && (cd $(unsubdir)/texinfo$(subdir); \ | |
165 | $(MAKE) \ | |
166 | "against=$(against)" \ | |
167 | "AR=$(AR)" \ | |
168 | "AR_FLAGS=$(AR_FLAGS)" \ | |
169 | "CC=$(CC)" \ | |
170 | "RANLIB=$(RANLIB)" \ | |
171 | "LOADLIBES=$(LOADLIBES)" \ | |
172 | "LDFLAGS=$(LDFLAGS)" \ | |
173 | "BISON=$(BISON)" \ | |
174 | "MAKEINFO=$(MAKEINFO)" \ | |
175 | clean) | |
176 | ||
177 | install-texinfo: force | |
178 | [ -d $(unsubdir)/texinfo ] && (cd $(unsubdir)/texinfo$(subdir); \ | |
179 | $(MAKE) \ | |
180 | "against=$(against)" \ | |
181 | "AR=$(AR)" \ | |
182 | "AR_FLAGS=$(AR_FLAGS)" \ | |
183 | "CC=$(CC)" \ | |
184 | "RANLIB=$(RANLIB)" \ | |
185 | "LOADLIBES=$(LOADLIBES)" \ | |
186 | "LDFLAGS=$(LDFLAGS)" \ | |
187 | "BISON=$(BISON)" \ | |
188 | "MAKEINFO=$(MAKEINFO)" \ | |
189 | install) | |
190 | \f | |
191 | ### bfd | |
192 | .PHONY: all-bfd just-bfd | |
193 | all-bfd: just-bfd | |
194 | just-bfd: force | |
195 | [ -d $(unsubdir)/bfd ] && (cd $(unsubdir)/bfd$(subdir); \ | |
196 | $(MAKE) \ | |
197 | "against=$(against)" \ | |
198 | "AR=$(AR)" \ | |
199 | "AR_FLAGS=$(AR_FLAGS)" \ | |
200 | "CC=$(CC)" \ | |
201 | "RANLIB=$(RANLIB)" \ | |
202 | "LOADLIBES=$(LOADLIBES)" \ | |
203 | "LDFLAGS=$(LDFLAGS)" \ | |
204 | "BISON=$(BISON)" \ | |
205 | "MAKEINFO=$(MAKEINFO)" \ | |
206 | all) | |
207 | ||
208 | clean-bfd: force | |
209 | [ -d $(unsubdir)/bfd ] && (cd $(unsubdir)/bfd$(subdir); \ | |
210 | $(MAKE) \ | |
211 | "against=$(against)" \ | |
212 | "AR=$(AR)" \ | |
213 | "AR_FLAGS=$(AR_FLAGS)" \ | |
214 | "CC=$(CC)" \ | |
215 | "RANLIB=$(RANLIB)" \ | |
216 | "LOADLIBES=$(LOADLIBES)" \ | |
217 | "LDFLAGS=$(LDFLAGS)" \ | |
218 | "BISON=$(BISON)" \ | |
219 | "MAKEINFO=$(MAKEINFO)" \ | |
220 | clean) | |
221 | ||
222 | install-bfd: force | |
223 | [ -d $(unsubdir)/bfd ] && (cd $(unsubdir)/bfd$(subdir); \ | |
224 | $(MAKE) \ | |
225 | "against=$(against)" \ | |
226 | "AR=$(AR)" \ | |
227 | "AR_FLAGS=$(AR_FLAGS)" \ | |
228 | "CC=$(CC)" \ | |
229 | "RANLIB=$(RANLIB)" \ | |
230 | "LOADLIBES=$(LOADLIBES)" \ | |
231 | "LDFLAGS=$(LDFLAGS)" \ | |
232 | "BISON=$(BISON)" \ | |
233 | "MAKEINFO=$(MAKEINFO)" \ | |
234 | install) | |
235 | \f | |
236 | ### binutils | |
237 | .PHONY: all-binutils just-binutils | |
238 | all-binutils: just-binutils | |
239 | just-binutils: just-libiberty just-bfd force | |
240 | [ -d $(unsubdir)/binutils ] && (cd $(unsubdir)/binutils$(subdir); \ | |
241 | $(MAKE) \ | |
242 | "against=$(against)" \ | |
243 | "AR=$(AR)" \ | |
244 | "AR_FLAGS=$(AR_FLAGS)" \ | |
245 | "CC=$(CC)" \ | |
246 | "RANLIB=$(RANLIB)" \ | |
247 | "LOADLIBES=$(LOADLIBES)" \ | |
248 | "LDFLAGS=$(LDFLAGS)" \ | |
249 | "BISON=$(BISON)" \ | |
250 | "MAKEINFO=$(MAKEINFO)" \ | |
251 | all) | |
252 | ||
253 | clean-binutils: force | |
254 | [ -d $(unsubdir)/binutils ] && (cd $(unsubdir)/binutils$(subdir); \ | |
255 | $(MAKE) \ | |
256 | "against=$(against)" \ | |
257 | "AR=$(AR)" \ | |
258 | "AR_FLAGS=$(AR_FLAGS)" \ | |
259 | "CC=$(CC)" \ | |
260 | "RANLIB=$(RANLIB)" \ | |
261 | "LOADLIBES=$(LOADLIBES)" \ | |
262 | "LDFLAGS=$(LDFLAGS)" \ | |
263 | "BISON=$(BISON)" \ | |
264 | "MAKEINFO=$(MAKEINFO)" \ | |
265 | clean) | |
266 | ||
267 | install-binutils: force | |
268 | [ -d $(unsubdir)/binutils ] && (cd $(unsubdir)/binutils$(subdir); \ | |
269 | $(MAKE) \ | |
270 | "against=$(against)" \ | |
271 | "AR=$(AR)" \ | |
272 | "AR_FLAGS=$(AR_FLAGS)" \ | |
273 | "CC=$(CC)" \ | |
274 | "RANLIB=$(RANLIB)" \ | |
275 | "LOADLIBES=$(LOADLIBES)" \ | |
276 | "LDFLAGS=$(LDFLAGS)" \ | |
277 | "BISON=$(BISON)" \ | |
278 | "MAKEINFO=$(MAKEINFO)" \ | |
279 | install) | |
280 | \f | |
281 | ### byacc | |
282 | .PHONY: all-byacc just-byacc | |
283 | all-byacc: just-byacc | |
284 | just-byacc: force | |
285 | [ -d $(unsubdir)/byacc ] && (cd $(unsubdir)/byacc$(subdir); \ | |
286 | $(MAKE) \ | |
287 | "against=$(against)" \ | |
288 | "AR=$(AR)" \ | |
289 | "AR_FLAGS=$(AR_FLAGS)" \ | |
290 | "CC=$(CC)" \ | |
291 | "RANLIB=$(RANLIB)" \ | |
292 | "LOADLIBES=$(LOADLIBES)" \ | |
293 | "LDFLAGS=$(LDFLAGS)" \ | |
294 | "BISON=$(BISON)" \ | |
295 | "MAKEINFO=$(MAKEINFO)" \ | |
296 | all) | |
297 | ||
298 | clean-byacc: force | |
299 | [ -d $(unsubdir)/byacc ] && (cd $(unsubdir)/byacc$(subdir); \ | |
300 | $(MAKE) \ | |
301 | "against=$(against)" \ | |
302 | "AR=$(AR)" \ | |
303 | "AR_FLAGS=$(AR_FLAGS)" \ | |
304 | "CC=$(CC)" \ | |
305 | "RANLIB=$(RANLIB)" \ | |
306 | "LOADLIBES=$(LOADLIBES)" \ | |
307 | "LDFLAGS=$(LDFLAGS)" \ | |
308 | "BISON=$(BISON)" \ | |
309 | "MAKEINFO=$(MAKEINFO)" \ | |
310 | clean) | |
311 | ||
312 | install-byacc: force | |
313 | [ -d $(unsubdir)/byacc ] && (cd $(unsubdir)/byacc$(subdir); \ | |
314 | $(MAKE) \ | |
315 | "against=$(against)" \ | |
316 | "AR=$(AR)" \ | |
317 | "AR_FLAGS=$(AR_FLAGS)" \ | |
318 | "CC=$(CC)" \ | |
319 | "RANLIB=$(RANLIB)" \ | |
320 | "LOADLIBES=$(LOADLIBES)" \ | |
321 | "LDFLAGS=$(LDFLAGS)" \ | |
322 | "BISON=$(BISON)" \ | |
323 | "MAKEINFO=$(MAKEINFO)" \ | |
324 | install) | |
325 | \f | |
326 | ### bison | |
327 | .PHONY: all-bison just-bison | |
328 | all-bison: just-bison | |
329 | just-bison: just-libiberty force | |
330 | [ -d $(unsubdir)/bison ] && (cd $(unsubdir)/bison$(subdir); \ | |
331 | $(MAKE) \ | |
332 | "against=$(against)" \ | |
333 | "AR=$(AR)" \ | |
334 | "AR_FLAGS=$(AR_FLAGS)" \ | |
335 | "CC=$(CC)" \ | |
336 | "RANLIB=$(RANLIB)" \ | |
337 | "LOADLIBES=$(LOADLIBES)" \ | |
338 | "LDFLAGS=$(LDFLAGS)" \ | |
339 | "BISON=$(BISON)" \ | |
340 | "MAKEINFO=$(MAKEINFO)" \ | |
341 | all) | |
342 | ||
343 | clean-bison: force | |
344 | [ -d $(unsubdir)/bison ] && (cd $(unsubdir)/bison$(subdir); \ | |
345 | $(MAKE) \ | |
346 | "against=$(against)" \ | |
347 | "AR=$(AR)" \ | |
348 | "AR_FLAGS=$(AR_FLAGS)" \ | |
349 | "CC=$(CC)" \ | |
350 | "RANLIB=$(RANLIB)" \ | |
351 | "LOADLIBES=$(LOADLIBES)" \ | |
352 | "LDFLAGS=$(LDFLAGS)" \ | |
353 | "BISON=$(BISON)" \ | |
354 | "MAKEINFO=$(MAKEINFO)" \ | |
355 | clean) | |
356 | ||
357 | install-bison: force | |
358 | [ -d $(unsubdir)/bison ] && (cd $(unsubdir)/bison$(subdir); \ | |
359 | $(MAKE) \ | |
360 | "against=$(against)" \ | |
361 | "AR=$(AR)" \ | |
362 | "AR_FLAGS=$(AR_FLAGS)" \ | |
363 | "CC=$(CC)" \ | |
364 | "RANLIB=$(RANLIB)" \ | |
365 | "LOADLIBES=$(LOADLIBES)" \ | |
366 | "LDFLAGS=$(LDFLAGS)" \ | |
367 | "BISON=$(BISON)" \ | |
368 | "MAKEINFO=$(MAKEINFO)" \ | |
369 | install) | |
370 | \f | |
371 | ### gcc | |
372 | .PHONY: all-gcc just-gcc | |
373 | all-gcc: just-gcc | |
374 | just-gcc: just-libiberty just-byacc force | |
375 | [ -d $(unsubdir)/gcc ] && (cd $(unsubdir)/gcc$(subdir); \ | |
376 | $(MAKE) \ | |
377 | "against=$(against)" \ | |
378 | "AR=$(AR)" \ | |
379 | "AR_FLAGS=$(AR_FLAGS)" \ | |
380 | "CC=$(CC)" \ | |
381 | "RANLIB=$(RANLIB)" \ | |
382 | "LOADLIBES=$(LOADLIBES)" \ | |
383 | "LDFLAGS=$(LDFLAGS)" \ | |
384 | "BISON=$(BISON)" \ | |
385 | "MAKEINFO=$(MAKEINFO)" \ | |
386 | all) | |
387 | ||
388 | clean-gcc: force | |
389 | [ -d $(unsubdir)/gcc ] && (cd $(unsubdir)/gcc$(subdir); \ | |
390 | $(MAKE) \ | |
391 | "against=$(against)" \ | |
392 | "AR=$(AR)" \ | |
393 | "AR_FLAGS=$(AR_FLAGS)" \ | |
394 | "CC=$(CC)" \ | |
395 | "RANLIB=$(RANLIB)" \ | |
396 | "LOADLIBES=$(LOADLIBES)" \ | |
397 | "LDFLAGS=$(LDFLAGS)" \ | |
398 | "BISON=$(BISON)" \ | |
399 | "MAKEINFO=$(MAKEINFO)" \ | |
400 | clean) | |
401 | ||
402 | install-gcc: | |
403 | [ -d $(unsubdir)/gcc ] && (cd $(unsubdir)/gcc$(subdir); \ | |
404 | $(MAKE) \ | |
405 | "against=$(against)" \ | |
406 | "AR=$(AR)" \ | |
407 | "AR_FLAGS=$(AR_FLAGS)" \ | |
408 | "CC=$(CC)" \ | |
409 | "RANLIB=$(RANLIB)" \ | |
410 | "LOADLIBES=$(LOADLIBES)" \ | |
411 | "LDFLAGS=$(LDFLAGS)" \ | |
412 | "BISON=$(BISON)" \ | |
413 | "MAKEINFO=$(MAKEINFO)" \ | |
414 | install) | |
415 | \f | |
416 | ### readline | |
417 | .PHONY: all-readline just-readline | |
418 | all-readline: just-readline | |
419 | just-readline: force | |
420 | [ -d $(unsubdir)/readline ] && (cd $(unsubdir)/readline$(subdir); \ | |
421 | $(MAKE) \ | |
422 | "against=$(against)" \ | |
423 | "AR=$(AR)" \ | |
424 | "AR_FLAGS=$(AR_FLAGS)" \ | |
425 | "CC=$(CC)" \ | |
426 | "RANLIB=$(RANLIB)" \ | |
427 | "LOADLIBES=$(LOADLIBES)" \ | |
428 | "LDFLAGS=$(LDFLAGS)" \ | |
429 | "BISON=$(BISON)" \ | |
430 | "MAKEINFO=$(MAKEINFO)" \ | |
431 | all) | |
432 | ||
433 | clean-readline: force | |
434 | [ -d $(unsubdir)/readline ] && (cd $(unsubdir)/readline$(subdir); \ | |
435 | $(MAKE) \ | |
436 | "against=$(against)" \ | |
437 | "AR=$(AR)" \ | |
438 | "AR_FLAGS=$(AR_FLAGS)" \ | |
439 | "CC=$(CC)" \ | |
440 | "RANLIB=$(RANLIB)" \ | |
441 | "LOADLIBES=$(LOADLIBES)" \ | |
442 | "LDFLAGS=$(LDFLAGS)" \ | |
443 | "BISON=$(BISON)" \ | |
444 | "MAKEINFO=$(MAKEINFO)" \ | |
445 | clean) | |
446 | ||
447 | install-readline: force | |
448 | [ -d $(unsubdir)/readline ] && (cd $(unsubdir)/readline$(subdir); \ | |
449 | $(MAKE) \ | |
450 | "against=$(against)" \ | |
451 | "AR=$(AR)" \ | |
452 | "AR_FLAGS=$(AR_FLAGS)" \ | |
453 | "CC=$(CC)" \ | |
454 | "RANLIB=$(RANLIB)" \ | |
455 | "LOADLIBES=$(LOADLIBES)" \ | |
456 | "LDFLAGS=$(LDFLAGS)" \ | |
457 | "BISON=$(BISON)" \ | |
458 | "MAKEINFO=$(MAKEINFO)" \ | |
459 | install) | |
460 | \f | |
461 | ### glob | |
462 | .PHONY: all-glob just-glob | |
463 | all-glob: just-glob | |
464 | just-glob: force | |
465 | [ -d $(unsubdir)/glob ] && (cd $(unsubdir)/glob$(subdir); \ | |
466 | $(MAKE) \ | |
467 | "against=$(against)" \ | |
468 | "AR=$(AR)" \ | |
469 | "AR_FLAGS=$(AR_FLAGS)" \ | |
470 | "CC=$(CC)" \ | |
471 | "RANLIB=$(RANLIB)" \ | |
472 | "LOADLIBES=$(LOADLIBES)" \ | |
473 | "LDFLAGS=$(LDFLAGS)" \ | |
474 | "BISON=$(BISON)" \ | |
475 | "MAKEINFO=$(MAKEINFO)" \ | |
476 | all) | |
477 | ||
478 | clean-glob: force | |
479 | [ -d $(unsubdir)/glob ] && (cd $(unsubdir)/glob$(subdir); \ | |
480 | $(MAKE) \ | |
481 | "against=$(against)" \ | |
482 | "AR=$(AR)" \ | |
483 | "AR_FLAGS=$(AR_FLAGS)" \ | |
484 | "CC=$(CC)" \ | |
485 | "RANLIB=$(RANLIB)" \ | |
486 | "LOADLIBES=$(LOADLIBES)" \ | |
487 | "LDFLAGS=$(LDFLAGS)" \ | |
488 | "BISON=$(BISON)" \ | |
489 | "MAKEINFO=$(MAKEINFO)" \ | |
490 | clean) | |
491 | ||
492 | install-glob: force | |
493 | [ -d $(unsubdir)/glob ] && (cd $(unsubdir)/glob$(subdir); \ | |
494 | $(MAKE) \ | |
495 | "against=$(against)" \ | |
496 | "AR=$(AR)" \ | |
497 | "AR_FLAGS=$(AR_FLAGS)" \ | |
498 | "CC=$(CC)" \ | |
499 | "RANLIB=$(RANLIB)" \ | |
500 | "LOADLIBES=$(LOADLIBES)" \ | |
501 | "LDFLAGS=$(LDFLAGS)" \ | |
502 | "BISON=$(BISON)" \ | |
503 | "MAKEINFO=$(MAKEINFO)" \ | |
504 | install) | |
505 | \f | |
506 | ### gas | |
507 | .PHONY: all-gas just-gas | |
508 | all-gas: just-gas | |
509 | just-gas: just-libiberty just-bfd force | |
510 | [ -d $(unsubdir)/gas ] && (cd $(unsubdir)/gas$(subdir); \ | |
511 | $(MAKE) \ | |
512 | "against=$(against)" \ | |
513 | "AR=$(AR)" \ | |
514 | "AR_FLAGS=$(AR_FLAGS)" \ | |
515 | "CC=$(CC)" \ | |
516 | "RANLIB=$(RANLIB)" \ | |
517 | "LOADLIBES=$(LOADLIBES)" \ | |
518 | "LDFLAGS=$(LDFLAGS)" \ | |
519 | "BISON=$(BISON)" \ | |
520 | "MAKEINFO=$(MAKEINFO)" \ | |
521 | all) | |
522 | ||
523 | clean-gas: force | |
524 | [ -d $(unsubdir)/gas ] && (cd $(unsubdir)/gas$(subdir); \ | |
525 | $(MAKE) \ | |
526 | "against=$(against)" \ | |
527 | "AR=$(AR)" \ | |
528 | "AR_FLAGS=$(AR_FLAGS)" \ | |
529 | "CC=$(CC)" \ | |
530 | "RANLIB=$(RANLIB)" \ | |
531 | "LOADLIBES=$(LOADLIBES)" \ | |
532 | "LDFLAGS=$(LDFLAGS)" \ | |
533 | "BISON=$(BISON)" \ | |
534 | "MAKEINFO=$(MAKEINFO)" \ | |
535 | clean) | |
536 | ||
537 | install-gas: force | |
538 | [ -d $(unsubdir)/gas ] && (cd $(unsubdir)/gas$(subdir); \ | |
539 | $(MAKE) \ | |
540 | "against=$(against)" \ | |
541 | "AR=$(AR)" \ | |
542 | "AR_FLAGS=$(AR_FLAGS)" \ | |
543 | "CC=$(CC)" \ | |
544 | "RANLIB=$(RANLIB)" \ | |
545 | "LOADLIBES=$(LOADLIBES)" \ | |
546 | "LDFLAGS=$(LDFLAGS)" \ | |
547 | "BISON=$(BISON)" \ | |
548 | "MAKEINFO=$(MAKEINFO)" \ | |
549 | install) | |
550 | \f | |
551 | ### ld | |
552 | .PHONY: all-ld just-ld | |
553 | all-ld: just-ld | |
554 | just-ld: just-libiberty just-bfd just-byacc force | |
555 | [ -d $(unsubdir)/ld ] && (cd $(unsubdir)/ld$(subdir); \ | |
556 | $(MAKE) \ | |
557 | "against=$(against)" \ | |
558 | "AR=$(AR)" \ | |
559 | "AR_FLAGS=$(AR_FLAGS)" \ | |
560 | "CC=$(CC)" \ | |
561 | "RANLIB=$(RANLIB)" \ | |
562 | "LOADLIBES=$(LOADLIBES)" \ | |
563 | "LDFLAGS=$(LDFLAGS)" \ | |
564 | "BISON=$(BISON)" \ | |
565 | "MAKEINFO=$(MAKEINFO)" \ | |
566 | all) | |
a0f47eb7 | 567 | |
4d714963 RP |
568 | clean-ld: force |
569 | [ -d $(unsubdir)/ld ] && (cd $(unsubdir)/ld$(subdir); \ | |
570 | $(MAKE) \ | |
571 | "against=$(against)" \ | |
572 | "AR=$(AR)" \ | |
573 | "AR_FLAGS=$(AR_FLAGS)" \ | |
574 | "CC=$(CC)" \ | |
575 | "RANLIB=$(RANLIB)" \ | |
576 | "LOADLIBES=$(LOADLIBES)" \ | |
577 | "LDFLAGS=$(LDFLAGS)" \ | |
578 | "BISON=$(BISON)" \ | |
579 | "MAKEINFO=$(MAKEINFO)" \ | |
580 | clean) | |
6a3958b2 | 581 | |
4d714963 RP |
582 | install-ld: force |
583 | [ -d $(unsubdir)/ld ] && (cd $(unsubdir)/ld$(subdir); \ | |
584 | $(MAKE) \ | |
585 | "against=$(against)" \ | |
586 | "AR=$(AR)" \ | |
587 | "AR_FLAGS=$(AR_FLAGS)" \ | |
588 | "CC=$(CC)" \ | |
589 | "RANLIB=$(RANLIB)" \ | |
590 | "LOADLIBES=$(LOADLIBES)" \ | |
591 | "LDFLAGS=$(LDFLAGS)" \ | |
592 | "BISON=$(BISON)" \ | |
593 | "MAKEINFO=$(MAKEINFO)" \ | |
594 | install) | |
595 | \f | |
596 | ### gnulib | |
597 | .PHONY: all-gnulib just-gnulib | |
598 | all-gnulib: just-gnulib | |
599 | just-gnulib: all-gcc all-gas all-binutils force | |
600 | [ -d $(unsubdir)/gnulib ] && (cd $(unsubdir)/gnulib$(subdir); \ | |
601 | $(MAKE) \ | |
602 | "against=$(against)" \ | |
603 | "AR=$(AR)" \ | |
604 | "AR_FLAGS=$(AR_FLAGS)" \ | |
605 | "CC=$(CC)" \ | |
606 | "RANLIB=$(RANLIB)" \ | |
607 | "LOADLIBES=$(LOADLIBES)" \ | |
608 | "LDFLAGS=$(LDFLAGS)" \ | |
609 | "BISON=$(BISON)" \ | |
610 | "MAKEINFO=$(MAKEINFO)" \ | |
611 | all) | |
c5f94070 | 612 | |
4d714963 RP |
613 | clean-gnulib: force |
614 | [ -d $(unsubdir)/gnulib ] && (cd $(unsubdir)/gnulib$(subdir); \ | |
615 | $(MAKE) \ | |
616 | "against=$(against)" \ | |
617 | "AR=$(AR)" \ | |
618 | "AR_FLAGS=$(AR_FLAGS)" \ | |
619 | "CC=$(CC)" \ | |
620 | "RANLIB=$(RANLIB)" \ | |
621 | "LOADLIBES=$(LOADLIBES)" \ | |
622 | "LDFLAGS=$(LDFLAGS)" \ | |
623 | "BISON=$(BISON)" \ | |
624 | "MAKEINFO=$(MAKEINFO)" \ | |
625 | clean) | |
626 | ||
627 | install-gnulib: force | |
628 | [ -d $(unsubdir)/gnulib ] && (cd $(unsubdir)/gnulib$(subdir); \ | |
629 | $(MAKE) \ | |
630 | "against=$(against)" \ | |
631 | "AR=$(AR)" \ | |
632 | "AR_FLAGS=$(AR_FLAGS)" \ | |
633 | "CC=$(CC)" \ | |
634 | "RANLIB=$(RANLIB)" \ | |
635 | "LOADLIBES=$(LOADLIBES)" \ | |
636 | "LDFLAGS=$(LDFLAGS)" \ | |
637 | "BISON=$(BISON)" \ | |
638 | "MAKEINFO=$(MAKEINFO)" \ | |
639 | install) | |
640 | \f | |
641 | ### gdb | |
642 | .PHONY: all-gdb just-gdb | |
643 | all-gdb: just-gdb | |
644 | just-gdb: just-bfd just-libiberty just-readline just-glob force | |
645 | [ -d $(unsubdir)/gdb ] && (cd $(unsubdir)/gdb$(subdir); \ | |
646 | $(MAKE) \ | |
647 | "against=$(against)" \ | |
648 | "AR=$(AR)" \ | |
649 | "AR_FLAGS=$(AR_FLAGS)" \ | |
650 | "CC=$(CC)" \ | |
651 | "RANLIB=$(RANLIB)" \ | |
652 | "LOADLIBES=$(LOADLIBES)" \ | |
653 | "LDFLAGS=$(LDFLAGS)" \ | |
654 | "BISON=$(BISON)" \ | |
655 | "MAKEINFO=$(MAKEINFO)" \ | |
656 | all) | |
657 | ||
658 | clean-gdb: force | |
659 | [ -d $(unsubdir)/gdb ] && (cd $(unsubdir)/gdb$(subdir); \ | |
660 | $(MAKE) \ | |
661 | "against=$(against)" \ | |
662 | "AR=$(AR)" \ | |
663 | "AR_FLAGS=$(AR_FLAGS)" \ | |
664 | "CC=$(CC)" \ | |
665 | "RANLIB=$(RANLIB)" \ | |
666 | "LOADLIBES=$(LOADLIBES)" \ | |
667 | "LDFLAGS=$(LDFLAGS)" \ | |
668 | "BISON=$(BISON)" \ | |
669 | "MAKEINFO=$(MAKEINFO)" \ | |
670 | clean) | |
671 | ||
672 | install-gdb: force | |
673 | [ -d $(unsubdir)/gdb ] && (cd $(unsubdir)/gdb$(subdir); \ | |
674 | $(MAKE) \ | |
675 | "against=$(against)" \ | |
676 | "AR=$(AR)" \ | |
677 | "AR_FLAGS=$(AR_FLAGS)" \ | |
678 | "CC=$(CC)" \ | |
679 | "RANLIB=$(RANLIB)" \ | |
680 | "LOADLIBES=$(LOADLIBES)" \ | |
681 | "LDFLAGS=$(LDFLAGS)" \ | |
682 | "BISON=$(BISON)" \ | |
683 | "MAKEINFO=$(MAKEINFO)" \ | |
684 | install) | |
685 | \f | |
686 | ### make | |
687 | .PHONY: all-make just-make | |
688 | all-make: just-make | |
689 | just-make: all-libiberty force | |
690 | [ -d $(unsubdir)/make ] && (cd $(unsubdir)/make$(subdir); \ | |
691 | $(MAKE) \ | |
692 | "against=$(against)" \ | |
693 | "AR=$(AR)" \ | |
694 | "AR_FLAGS=$(AR_FLAGS)" \ | |
695 | "CC=$(CC)" \ | |
696 | "RANLIB=$(RANLIB)" \ | |
697 | "LOADLIBES=$(LOADLIBES)" \ | |
698 | "LDFLAGS=$(LDFLAGS)" \ | |
699 | "BISON=$(BISON)" \ | |
700 | "MAKEINFO=$(MAKEINFO)" \ | |
701 | all) | |
702 | ||
703 | clean-make: force | |
704 | [ -d $(unsubdir)/make ] && (cd $(unsubdir)/make$(subdir); \ | |
705 | $(MAKE) \ | |
706 | "against=$(against)" \ | |
707 | "AR=$(AR)" \ | |
708 | "AR_FLAGS=$(AR_FLAGS)" \ | |
709 | "CC=$(CC)" \ | |
710 | "RANLIB=$(RANLIB)" \ | |
711 | "LOADLIBES=$(LOADLIBES)" \ | |
712 | "LDFLAGS=$(LDFLAGS)" \ | |
713 | "BISON=$(BISON)" \ | |
714 | "MAKEINFO=$(MAKEINFO)" \ | |
715 | clean) | |
716 | ||
717 | install-make: force | |
718 | [ -d $(unsubdir)/make ] && (cd $(unsubdir)/make$(subdir); \ | |
719 | $(MAKE) \ | |
720 | "against=$(against)" \ | |
721 | "AR=$(AR)" \ | |
722 | "AR_FLAGS=$(AR_FLAGS)" \ | |
723 | "CC=$(CC)" \ | |
724 | "RANLIB=$(RANLIB)" \ | |
725 | "LOADLIBES=$(LOADLIBES)" \ | |
726 | "LDFLAGS=$(LDFLAGS)" \ | |
727 | "BISON=$(BISON)" \ | |
728 | "MAKEINFO=$(MAKEINFO)" \ | |
729 | install) | |
730 | \f | |
731 | ### diff | |
732 | .PHONY: all-diff just-diff | |
733 | all-diff: just-diff | |
734 | just-diff: force | |
735 | [ -d $(unsubdir)/diff ] && (cd $(unsubdir)/diff$(subdir); \ | |
736 | $(MAKE) \ | |
737 | "against=$(against)" \ | |
738 | "AR=$(AR)" \ | |
739 | "AR_FLAGS=$(AR_FLAGS)" \ | |
740 | "CC=$(CC)" \ | |
741 | "RANLIB=$(RANLIB)" \ | |
742 | "LOADLIBES=$(LOADLIBES)" \ | |
743 | "LDFLAGS=$(LDFLAGS)" \ | |
744 | "BISON=$(BISON)" \ | |
745 | "MAKEINFO=$(MAKEINFO)" \ | |
746 | all) | |
747 | ||
748 | clean-diff: force | |
749 | [ -d $(unsubdir)/diff ] && (cd $(unsubdir)/diff$(subdir); \ | |
750 | $(MAKE) \ | |
751 | "against=$(against)" \ | |
752 | "AR=$(AR)" \ | |
753 | "AR_FLAGS=$(AR_FLAGS)" \ | |
754 | "CC=$(CC)" \ | |
755 | "RANLIB=$(RANLIB)" \ | |
756 | "LOADLIBES=$(LOADLIBES)" \ | |
757 | "LDFLAGS=$(LDFLAGS)" \ | |
758 | "BISON=$(BISON)" \ | |
759 | "MAKEINFO=$(MAKEINFO)" \ | |
760 | clean) | |
761 | ||
762 | install-diff: force | |
763 | [ -d $(unsubdir)/diff ] && (cd $(unsubdir)/diff/$(subdir); \ | |
764 | $(MAKE) \ | |
765 | "against=$(against)" \ | |
766 | "AR=$(AR)" \ | |
767 | "AR_FLAGS=$(AR_FLAGS)" \ | |
768 | "CC=$(CC)" \ | |
769 | "RANLIB=$(RANLIB)" \ | |
770 | "LOADLIBES=$(LOADLIBES)" \ | |
771 | "LDFLAGS=$(LDFLAGS)" \ | |
772 | "BISON=$(BISON)" \ | |
773 | "MAKEINFO=$(MAKEINFO)" \ | |
774 | install) | |
775 | \f | |
776 | ### grep | |
777 | .PHONY: all-grep just-grep | |
778 | all-grep: just-grep | |
779 | just-grep: force | |
780 | [ -d $(unsubdir)/grep ] && (cd $(unsubdir)/grep$(subdir); \ | |
781 | $(MAKE) \ | |
782 | "against=$(against)" \ | |
783 | "AR=$(AR)" \ | |
784 | "AR_FLAGS=$(AR_FLAGS)" \ | |
785 | "CC=$(CC)" \ | |
786 | "RANLIB=$(RANLIB)" \ | |
787 | "LOADLIBES=$(LOADLIBES)" \ | |
788 | "LDFLAGS=$(LDFLAGS)" \ | |
789 | "BISON=$(BISON)" \ | |
790 | "MAKEINFO=$(MAKEINFO)" \ | |
791 | all) | |
792 | ||
793 | clean-grep: force | |
794 | [ -d $(unsubdir)/grep ] && (cd $(unsubdir)/grep$(subdir); \ | |
795 | $(MAKE) \ | |
796 | "against=$(against)" \ | |
797 | "AR=$(AR)" \ | |
798 | "AR_FLAGS=$(AR_FLAGS)" \ | |
799 | "CC=$(CC)" \ | |
800 | "RANLIB=$(RANLIB)" \ | |
801 | "LOADLIBES=$(LOADLIBES)" \ | |
802 | "LDFLAGS=$(LDFLAGS)" \ | |
803 | "BISON=$(BISON)" \ | |
804 | "MAKEINFO=$(MAKEINFO)" \ | |
805 | clean) | |
806 | ||
807 | install-grep: force | |
808 | [ -d $(unsubdir)/grep ] && (cd $(unsubdir)/grep$(subdir); \ | |
809 | $(MAKE) \ | |
810 | "against=$(against)" \ | |
811 | "AR=$(AR)" \ | |
812 | "AR_FLAGS=$(AR_FLAGS)" \ | |
813 | "CC=$(CC)" \ | |
814 | "RANLIB=$(RANLIB)" \ | |
815 | "LOADLIBES=$(LOADLIBES)" \ | |
816 | "LDFLAGS=$(LDFLAGS)" \ | |
817 | "BISON=$(BISON)" \ | |
818 | "MAKEINFO=$(MAKEINFO)" \ | |
819 | install) | |
820 | \f | |
821 | ### rcs | |
822 | .PHONY: all-rcs just-rcs | |
823 | all-rcs: just-rcs | |
824 | just-rcs: just-diff just-grep force | |
825 | [ -d $(unsubdir)/rcs ] && (cd $(unsubdir)/rcs$(subdir); \ | |
826 | $(MAKE) \ | |
827 | "against=$(against)" \ | |
828 | "AR=$(AR)" \ | |
829 | "AR_FLAGS=$(AR_FLAGS)" \ | |
830 | "CC=$(CC)" \ | |
831 | "RANLIB=$(RANLIB)" \ | |
832 | "LOADLIBES=$(LOADLIBES)" \ | |
833 | "LDFLAGS=$(LDFLAGS)" \ | |
834 | "BISON=$(BISON)" \ | |
835 | "MAKEINFO=$(MAKEINFO)" \ | |
836 | all) | |
837 | ||
838 | clean-rcs: force | |
839 | [ -d $(unsubdir)/rcs ] && (cd $(unsubdir)/rcs$(subdir); \ | |
840 | $(MAKE) \ | |
841 | "against=$(against)" \ | |
842 | "AR=$(AR)" \ | |
843 | "AR_FLAGS=$(AR_FLAGS)" \ | |
844 | "CC=$(CC)" \ | |
845 | "RANLIB=$(RANLIB)" \ | |
846 | "LOADLIBES=$(LOADLIBES)" \ | |
847 | "LDFLAGS=$(LDFLAGS)" \ | |
848 | "BISON=$(BISON)" \ | |
849 | "MAKEINFO=$(MAKEINFO)" \ | |
850 | clean) | |
851 | ||
852 | install-rcs: install-grep install-diff force | |
853 | [ -d $(unsubdir)/rcs ] && (cd $(unsubdir)/rcs$(subdir); \ | |
854 | $(MAKE) \ | |
855 | "against=$(against)" \ | |
856 | "AR=$(AR)" \ | |
857 | "AR_FLAGS=$(AR_FLAGS)" \ | |
858 | "CC=$(CC)" \ | |
859 | "RANLIB=$(RANLIB)" \ | |
860 | "LOADLIBES=$(LOADLIBES)" \ | |
861 | "LDFLAGS=$(LDFLAGS)" \ | |
862 | "BISON=$(BISON)" \ | |
863 | "MAKEINFO=$(MAKEINFO)" \ | |
864 | install) | |
865 | \f | |
866 | ### gdbm | |
867 | .PHONY: all-gdbm just-gdbm | |
868 | all-gdbm: just-gdbm | |
869 | just-gdbm: force | |
870 | [ -d $(unsubdir)/gdbm ] && (cd $(unsubdir)/gdbm$(subdir); \ | |
871 | $(MAKE) \ | |
872 | "against=$(against)" \ | |
873 | "AR=$(AR)" \ | |
874 | "AR_FLAGS=$(AR_FLAGS)" \ | |
875 | "CC=$(CC)" \ | |
876 | "RANLIB=$(RANLIB)" \ | |
877 | "LOADLIBES=$(LOADLIBES)" \ | |
878 | "LDFLAGS=$(LDFLAGS)" \ | |
879 | "BISON=$(BISON)" \ | |
880 | "MAKEINFO=$(MAKEINFO)" \ | |
881 | all) | |
882 | ||
883 | clean-gdbm: force | |
884 | [ -d $(unsubdir)/gdbm ] && (cd $(unsubdir)/gdbm$(subdir); \ | |
885 | $(MAKE) \ | |
886 | "against=$(against)" \ | |
887 | "AR=$(AR)" \ | |
888 | "AR_FLAGS=$(AR_FLAGS)" \ | |
889 | "CC=$(CC)" \ | |
890 | "RANLIB=$(RANLIB)" \ | |
891 | "LOADLIBES=$(LOADLIBES)" \ | |
892 | "LDFLAGS=$(LDFLAGS)" \ | |
893 | "BISON=$(BISON)" \ | |
894 | "MAKEINFO=$(MAKEINFO)" \ | |
895 | clean) | |
896 | ||
897 | install-gdbm: force | |
898 | [ -d $(unsubdir)/gdbm ] && (cd $(unsubdir)/gdbm$(subdir); \ | |
899 | $(MAKE) \ | |
900 | "against=$(against)" \ | |
901 | "AR=$(AR)" \ | |
902 | "AR_FLAGS=$(AR_FLAGS)" \ | |
903 | "CC=$(CC)" \ | |
904 | "RANLIB=$(RANLIB)" \ | |
905 | "LOADLIBES=$(LOADLIBES)" \ | |
906 | "LDFLAGS=$(LDFLAGS)" \ | |
907 | "BISON=$(BISON)" \ | |
908 | "MAKEINFO=$(MAKEINFO)" \ | |
909 | install) | |
910 | \f | |
911 | ### cvs | |
912 | .PHONY: all-cvs just-cvs | |
913 | all-cvs: just-cvs just-rcs just-grep just-diff | |
914 | just-cvs: just-gdbm force | |
915 | [ -d $(unsubdir)/cvs ] && (cd $(unsubdir)/cvs$(subdir); \ | |
916 | $(MAKE) \ | |
917 | "against=$(against)" \ | |
918 | "AR=$(AR)" \ | |
919 | "AR_FLAGS=$(AR_FLAGS)" \ | |
920 | "CC=$(CC)" \ | |
921 | "RANLIB=$(RANLIB)" \ | |
922 | "LOADLIBES=$(LOADLIBES)" \ | |
923 | "LDFLAGS=$(LDFLAGS)" \ | |
924 | "BISON=$(BISON)" \ | |
925 | "MAKEINFO=$(MAKEINFO)" \ | |
926 | all) | |
927 | ||
928 | clean-cvs: force | |
929 | [ -d $(unsubdir)/cvs ] && (cd $(unsubdir)/cvs$(subdir); \ | |
930 | $(MAKE) \ | |
931 | "against=$(against)" \ | |
932 | "AR=$(AR)" \ | |
933 | "AR_FLAGS=$(AR_FLAGS)" \ | |
934 | "CC=$(CC)" \ | |
935 | "RANLIB=$(RANLIB)" \ | |
936 | "LOADLIBES=$(LOADLIBES)" \ | |
937 | "LDFLAGS=$(LDFLAGS)" \ | |
938 | "BISON=$(BISON)" \ | |
939 | "MAKEINFO=$(MAKEINFO)" \ | |
940 | clean) | |
941 | ||
942 | install-cvs: install-rcs install-gdbm force | |
943 | [ -d $(unsubdir)/cvs ] && (cd $(unsubdir)/cvs$(subdir); \ | |
944 | $(MAKE) \ | |
945 | "against=$(against)" \ | |
946 | "AR=$(AR)" \ | |
947 | "AR_FLAGS=$(AR_FLAGS)" \ | |
948 | "CC=$(CC)" \ | |
949 | "RANLIB=$(RANLIB)" \ | |
950 | "LOADLIBES=$(LOADLIBES)" \ | |
951 | "LDFLAGS=$(LDFLAGS)" \ | |
952 | "BISON=$(BISON)" \ | |
953 | "MAKEINFO=$(MAKEINFO)" \ | |
954 | install) | |
955 | \f | |
956 | ### emacs | |
957 | .PHONY: all-emacs just-emacs | |
958 | all-emacs: just-emacs | |
959 | just-emacs: force | |
960 | [ -d $(unsubdir)/emacs ] && (cd $(unsubdir)/emacs$(subdir); \ | |
961 | $(MAKE) \ | |
962 | "against=$(against)" \ | |
963 | "AR=$(AR)" \ | |
964 | "AR_FLAGS=$(AR_FLAGS)" \ | |
965 | "CC=$(CC)" \ | |
966 | "RANLIB=$(RANLIB)" \ | |
967 | "LOADLIBES=$(LOADLIBES)" \ | |
968 | "LDFLAGS=$(LDFLAGS)" \ | |
969 | "BISON=$(BISON)" \ | |
970 | "MAKEINFO=$(MAKEINFO)" \ | |
971 | all) | |
972 | ||
973 | clean-emacs: force | |
974 | [ -d $(unsubdir)/emacs ] && (cd $(unsubdir)/emacs$(subdir); \ | |
975 | $(MAKE) \ | |
976 | "against=$(against)" \ | |
977 | "AR=$(AR)" \ | |
978 | "AR_FLAGS=$(AR_FLAGS)" \ | |
979 | "CC=$(CC)" \ | |
980 | "RANLIB=$(RANLIB)" \ | |
981 | "LOADLIBES=$(LOADLIBES)" \ | |
982 | "LDFLAGS=$(LDFLAGS)" \ | |
983 | "BISON=$(BISON)" \ | |
984 | "MAKEINFO=$(MAKEINFO)" \ | |
985 | clean) | |
986 | ||
987 | install-emacs: install-rcs install-gdbm force | |
988 | [ -d $(unsubdir)/emacs ] && (cd $(unsubdir)/emacs$(subdir); \ | |
989 | $(MAKE) \ | |
990 | "against=$(against)" \ | |
991 | "AR=$(AR)" \ | |
992 | "AR_FLAGS=$(AR_FLAGS)" \ | |
993 | "CC=$(CC)" \ | |
994 | "RANLIB=$(RANLIB)" \ | |
995 | "LOADLIBES=$(LOADLIBES)" \ | |
996 | "LDFLAGS=$(LDFLAGS)" \ | |
997 | "BISON=$(BISON)" \ | |
998 | "MAKEINFO=$(MAKEINFO)" \ | |
999 | install) | |
1000 | \f | |
1001 | ### ispell | |
1002 | .PHONY: all-ispell just-ispell | |
1003 | all-ispell: just-ispell | |
1004 | just-ispell: all-emacs force | |
1005 | [ -d $(unsubdir)/ispell ] && (cd $(unsubdir)/ispell$(subdir); \ | |
1006 | $(MAKE) \ | |
1007 | "against=$(against)" \ | |
1008 | "AR=$(AR)" \ | |
1009 | "AR_FLAGS=$(AR_FLAGS)" \ | |
1010 | "CC=$(CC)" \ | |
1011 | "RANLIB=$(RANLIB)" \ | |
1012 | "LOADLIBES=$(LOADLIBES)" \ | |
1013 | "LDFLAGS=$(LDFLAGS)" \ | |
1014 | "BISON=$(BISON)" \ | |
1015 | "MAKEINFO=$(MAKEINFO)" \ | |
1016 | all) | |
1017 | ||
1018 | clean-ispell: force | |
1019 | [ -d $(unsubdir)/ispell ] && (cd $(unsubdir)/ispell$(subdir); \ | |
1020 | $(MAKE) \ | |
1021 | "against=$(against)" \ | |
1022 | "AR=$(AR)" \ | |
1023 | "AR_FLAGS=$(AR_FLAGS)" \ | |
1024 | "CC=$(CC)" \ | |
1025 | "RANLIB=$(RANLIB)" \ | |
1026 | "LOADLIBES=$(LOADLIBES)" \ | |
1027 | "LDFLAGS=$(LDFLAGS)" \ | |
1028 | "BISON=$(BISON)" \ | |
1029 | "MAKEINFO=$(MAKEINFO)" \ | |
1030 | clean) | |
1031 | ||
1032 | install-ispell: install-rcs install-gdbm force | |
1033 | [ -d $(unsubdir)/ispell ] && (cd $(unsubdir)/ispell$(subdir); \ | |
1034 | $(MAKE) \ | |
1035 | "against=$(against)" \ | |
1036 | "AR=$(AR)" \ | |
1037 | "AR_FLAGS=$(AR_FLAGS)" \ | |
1038 | "CC=$(CC)" \ | |
1039 | "RANLIB=$(RANLIB)" \ | |
1040 | "LOADLIBES=$(LOADLIBES)" \ | |
1041 | "LDFLAGS=$(LDFLAGS)" \ | |
1042 | "BISON=$(BISON)" \ | |
1043 | "MAKEINFO=$(MAKEINFO)" \ | |
1044 | install) | |
1045 | \f | |
1046 | ### other supporting targets | |
a0f47eb7 SC |
1047 | # this is a bad hack. |
1048 | all.xclib: all.normal | |
1049 | if [ -d clib ] ; then \ | |
1050 | (cd clib ; $(MAKE)) ; \ | |
1051 | fi | |
1052 | ||
3c81fef5 | 1053 | subdir_do: force |
a01bf1fb | 1054 | for i in $(DODIRS); do \ |
2c55824f RP |
1055 | if [ -f $(unsubdir)/$$i/localenv ] ; then \ |
1056 | if (cd $(unsubdir)/$$i$(subdir); \ | |
a0f47eb7 SC |
1057 | $(MAKE) \ |
1058 | "against=$(against)" \ | |
b772d75e RP |
1059 | "BISON=$(BISON)" \ |
1060 | "MAKEINFO=$(MAKEINFO)" \ | |
1061 | $(DO)) ; then true ; \ | |
a0f47eb7 | 1062 | else exit 1 ; fi ; \ |
2c55824f RP |
1063 | else if [ -d $(unsubdir)/$$i ] ; then \ |
1064 | if (cd $(unsubdir)/$$i$(subdir); \ | |
a01bf1fb RP |
1065 | $(MAKE) \ |
1066 | "against=$(against)" \ | |
1067 | "AR=$(AR)" \ | |
1068 | "AR_FLAGS=$(AR_FLAGS)" \ | |
4d714963 | 1069 | "CC=$(CC)" \ |
2645fb0c | 1070 | "RANLIB=$(RANLIB)" \ |
905bb120 RP |
1071 | "LOADLIBES=$(LOADLIBES)" \ |
1072 | "LDFLAGS=$(LDFLAGS)" \ | |
b772d75e RP |
1073 | "BISON=$(BISON)" \ |
1074 | "MAKEINFO=$(MAKEINFO)" \ | |
1075 | $(DO)) ; then true ; \ | |
a01bf1fb RP |
1076 | else exit 1 ; fi ; \ |
1077 | else true ; fi ; \ | |
a0f47eb7 | 1078 | fi ; \ |
a01bf1fb | 1079 | done |
eb02fd64 | 1080 | |
4d714963 RP |
1081 | bootstrap: |
1082 | $(MAKE) all info | |
2b34da49 | 1083 | $(MAKE) stage1 |
6a3958b2 RP |
1084 | $(MAKE) pass "stagepass=stage1" |
1085 | $(MAKE) stage2 | |
1086 | $(MAKE) pass "stagepass=stage2" | |
a01bf1fb | 1087 | $(MAKE) comparison |
6a3958b2 | 1088 | |
4d714963 | 1089 | bootstrap2: |
6a3958b2 RP |
1090 | $(MAKE) pass "stagepass=stage1" |
1091 | $(MAKE) stage2 | |
1092 | $(MAKE) pass "stagepass=stage2" | |
a01bf1fb | 1093 | $(MAKE) comparison |
6a3958b2 | 1094 | |
4d714963 | 1095 | bootstrap3: |
6a3958b2 | 1096 | $(MAKE) pass "stagepass=stage2" |
a01bf1fb | 1097 | $(MAKE) comparison |
6a3958b2 | 1098 | |
4d714963 | 1099 | pass: |
517d18b2 | 1100 | cp $(srcdir)/gcc/gstdarg.h $(unsubdir)/gas$(subdir)/stdarg.h |
4d714963 | 1101 | $(MAKE) subdir_do "DO=all info" "DODIRS=$(SUBDIRS)" \ |
2c55824f | 1102 | "CC=`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/gcc \ |
4d714963 | 1103 | -O $(GCCVERBOSE) -I`pwd`/$(unsubdir)/gcc$(subdir)/include \ |
2c55824f RP |
1104 | -B`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/ \ |
1105 | -B`pwd`/$(unsubdir)/gas$(subdir)/$(stagepass)/ \ | |
1106 | -B`pwd`/$(unsubdir)/ld$(subdir)/$(stagepass)/" \ | |
a297b8ce | 1107 | "AR=`pwd`/$(unsubdir)/binutils$(subdir)/$(stagepass)/ar" \ |
30189626 | 1108 | "LD=`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/gcc $(GCCVERBOSE)" \ |
2c55824f RP |
1109 | "RANLIB=`pwd`/$(unsubdir)/binutils$(subdir)/$(stagepass)/ranlib" \ |
1110 | "LOADLIBES=`pwd`/$(unsubdir)/gnulib$(subdir)/$(stagepass)/gnulib.a /lib/libc.a" \ | |
6a3958b2 | 1111 | "LDFLAGS=-nostdlib /lib/crt0.o \ |
2c55824f RP |
1112 | -L`pwd`/$(unsubdir)/gnulib$(subdir)/$(stagepass)/ \ |
1113 | -B`pwd`/$(unsubdir)/ld$(subdir)/$(stagepass)/" | |
2b34da49 | 1114 | |
eb02fd64 | 1115 | |
4d714963 | 1116 | stage1: |
3c81fef5 | 1117 | $(MAKE) subdir_do DO=stage1 "DODIRS=$(SUBDIRS)" |
eb02fd64 | 1118 | |
4d714963 | 1119 | stage2: |
3c81fef5 | 1120 | $(MAKE) subdir_do DO=stage2 "DODIRS=$(SUBDIRS)" |
eb02fd64 | 1121 | |
4d714963 | 1122 | stage3: |
3c81fef5 | 1123 | $(MAKE) subdir_do DO=stage3 "DODIRS=$(SUBDIRS)" |
eb02fd64 | 1124 | |
4d714963 | 1125 | stage4: |
3c81fef5 | 1126 | $(MAKE) subdir_do DO=stage4 "DODIRS=$(SUBDIRS)" |
eb02fd64 | 1127 | |
a01bf1fb RP |
1128 | against=stage2 |
1129 | ||
1130 | comparison:; $(MAKE) subdir_do DO=comparison against=$(against) "DODIRS=$(SUBDIRS)" | |
1131 | ||
3c81fef5 RP |
1132 | de-stage1:; $(MAKE) subdir_do DO=de-stage1 "DODIRS=$(SUBDIRS)" |
1133 | de-stage2:; $(MAKE) subdir_do DO=de-stage2 "DODIRS=$(SUBDIRS)" | |
1134 | de-stage3:; $(MAKE) subdir_do DO=de-stage3 "DODIRS=$(SUBDIRS)" | |
1135 | de-stage4:; $(MAKE) subdir_do DO=de-stage4 "DODIRS=$(SUBDIRS)" | |
6a3958b2 | 1136 | |
abc52b80 JG |
1137 | # The "else true" stuff is for Ultrix; the shell returns the exit code |
1138 | # of the "if" command, if no commands are run in the "then" or "else" part, | |
1139 | # causing Make to quit. | |
4c27527f RP |
1140 | |
1141 | MAKEDIRS= \ | |
4d714963 RP |
1142 | $(prefix) \ |
1143 | $(bindir) \ | |
1144 | $(libdir) \ | |
1145 | $(includedir) \ | |
1146 | $(datadir) \ | |
1147 | $(docdir) \ | |
1148 | $(mandir) \ | |
1149 | $(man1dir) \ | |
1150 | $(man5dir) | |
1151 | ||
1152 | # $(man2dir) \ | |
1153 | # $(man3dir) \ | |
1154 | # $(man4dir) \ | |
1155 | # $(man6dir) \ | |
1156 | # $(man7dir) \ | |
1157 | # $(man8dir) | |
4c27527f | 1158 | |
a297b8ce | 1159 | install-dirs: force |
4c27527f | 1160 | for i in $(MAKEDIRS) ; do \ |
cd49a4dc | 1161 | echo Making $$i... ; \ |
4d714963 | 1162 | if [ -d $$i ] ; then true ; else mkdir $$i || exit 1 ; fi ; \ |
4c27527f | 1163 | done |
0ec776a5 | 1164 | |
c5f94070 | 1165 | MAKEINFODIRS= \ |
4d714963 RP |
1166 | $(prefix) \ |
1167 | $(infodir) | |
c5f94070 RP |
1168 | |
1169 | install-info-dirs: force | |
1170 | for i in $(MAKEINFODIRS) ; do \ | |
1171 | echo Making $$i... ; \ | |
1172 | if [ -d $$i ] ; then true ; else mkdir $$i ; fi ; \ | |
1173 | done | |
1174 | ||
c5f94070 RP |
1175 | install-dir.info-in-place: force |
1176 | rdir=`cd $(srcdir)/texinfo ; pwd` \ | |
4d714963 | 1177 | && cd $(infodir) \ |
c5f94070 RP |
1178 | && ($${rdir}/gen-info-dir `pwd`) > dir |
1179 | ||
6b7e5998 | 1180 | dir.info: force |
4d714963 RP |
1181 | # $(srcdir)/texinfo/gen-info-dir . > dir.info.new |
1182 | # mv -f dir.info.new dir.info | |
6b7e5998 | 1183 | |
eb02fd64 RP |
1184 | etags tags: TAGS |
1185 | ||
1186 | TAGS: FORCE | |
1187 | etags `$(MAKE) ls` | |
1188 | ||
1189 | ls: | |
1190 | @echo Makefile | |
1191 | @for i in $(SUBDIRS); \ | |
1192 | do \ | |
1193 | (cd $$i; \ | |
1194 | pwd=`pwd`; \ | |
1195 | wd=`basename $$pwd`; \ | |
1196 | for j in `$(MAKE) ls`; \ | |
1197 | do \ | |
1198 | echo $$wd/$$j; \ | |
1199 | done) \ | |
1200 | done | |
1201 | ||
3c81fef5 | 1202 | force: |
eb02fd64 RP |
1203 | |
1204 | # with the gnu make, this is done automatically. | |
1205 | ||
f1eb48b6 | 1206 | Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) |
a26878d1 | 1207 | $(SHELL) ./config.status |
eb02fd64 | 1208 | |
11954bf1 JG |
1209 | # |
1210 | # Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc | |
1211 | ||
aaee1265 | 1212 | DEVO_SUPPORT= README DOC.configure Makefile.in configure configure.in \ |
abc52b80 | 1213 | config.sub config |
a3a063a9 | 1214 | GDB_SUPPORT_DIRS= bfd include libiberty readline glob |
abc52b80 | 1215 | GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS) texinfo/fsf/texinfo.tex |
11954bf1 | 1216 | |
abc52b80 | 1217 | setup-dirs: force_update |
11954bf1 JG |
1218 | ./configure sun4 |
1219 | make clean | |
1220 | ./configure -rm sun4 | |
905bb120 | 1221 | chmod og=u `find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print` |
abc52b80 JG |
1222 | |
1223 | bfd.ilrt.tar.Z: setup-dirs | |
11954bf1 | 1224 | rm -f bfd.ilrt.tar.Z |
abc52b80 | 1225 | tar cf - $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) \ |
11954bf1 JG |
1226 | | compress -v >bfd.ilrt.tar.Z |
1227 | ||
abc52b80 JG |
1228 | gdb.tar.Z: setup-dirs |
1229 | (cd gdb; $(MAKE) -f Makefile.in make-proto-gdb.dir) | |
1230 | $(MAKE) $(MFLAGS) -f Makefile.in make-gdb.tar.Z | |
1231 | ||
1232 | make-gdb.tar.Z: $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS) gdb texinfo/fsf/texinfo.tex | |
1233 | rm -rf proto-toplev; mkdir proto-toplev | |
1234 | ln -s ../gdb/proto-gdb.dir proto-toplev/gdb | |
1235 | (cd proto-toplev; for i in $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS); do \ | |
1236 | ln -s ../$$i . ; \ | |
1237 | done) | |
a3a063a9 JG |
1238 | # Take out texinfo from configurable dirs |
1239 | rm proto-toplev/configure.in | |
1240 | sed '/^configdirs=/s/texinfo //' <configure.in >proto-toplev/configure.in | |
4d714963 RP |
1241 | # Take out glob from buildable dirs |
1242 | rm proto-toplev/Makefile.in | |
1243 | sed '/^SUBDIRS =/s/glob //' <Makefile.in >proto-toplev/Makefile.in | |
abc52b80 JG |
1244 | mkdir proto-toplev/texinfo |
1245 | mkdir proto-toplev/texinfo/fsf | |
1246 | ln -s ../../../texinfo/fsf/texinfo.tex proto-toplev/texinfo/fsf/ | |
905bb120 | 1247 | chmod og=u `find proto-toplev -print` |
abc52b80 JG |
1248 | (VER=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \ |
1249 | echo "==> Making gdb-$$VER.tar.Z"; \ | |
1250 | ln -s proto-toplev gdb-$$VER; \ | |
1251 | tar cfh - gdb-$$VER \ | |
1252 | | compress -v >gdb-$$VER.tar.Z) | |
1253 | ||
11954bf1 JG |
1254 | force_update: |
1255 | ||
0ec776a5 SC |
1256 | nothing: |
1257 | ||
eb02fd64 | 1258 | # end of Makefile.in |