Fix stack in core files.
[deliverable/binutils-gdb.git] / Makefile.in
CommitLineData
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 20srcdir = .
28f3b094 21
4d714963 22prefix = /usr/local
eb02fd64 23
4d714963
RP
24datadir = $(prefix)/lib
25bindir = $(prefix)/bin
26libdir = $(prefix)/lib
27mandir = $(datadir)/man
28man1dir = $(mandir)/man1
29man2dir = $(mandir)/man2
30man3dir = $(mandir)/man3
31man4dir = $(mandir)/man4
32man5dir = $(mandir)/man5
33man6dir = $(mandir)/man6
34man7dir = $(mandir)/man7
35man8dir = $(mandir)/man8
36man9dir = $(mandir)/man9
c466cfab 37infodir = $(datadir)/info
4d714963
RP
38includedir = $(prefix)/include
39docdir = $(datadir)/doc
40
41SHELL = /bin/sh
42
43INSTALL = install -c
44INSTALL_PROGRAM = $(INSTALL)
45INSTALL_DATA = $(INSTALL)
3c8735af 46
ec342d7d 47AR = ar
ba8abfce 48AR_FLAGS = qc
4d714963 49RANLIB = ranlib
eb02fd64 50
e9712bee
RP
51BISON = `if [ -d $(unsubdir)/../bison ] ; \
52 then echo \`pwd\`/$(unsubdir)/../bison$(subdir)/bison -L \`pwd\`/$(unsubdir)/../bison$(subdir)/ -y ; \
23e3e7f9 53 else echo bison -y ; fi`
2645fb0c 54
4d714963
RP
55MAKEINFO = makeinfo
56FRESHMAKEINFO = `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\\`)\`
ba8abfce 61SUBDIRS = libiberty glob readline bfd gdb binutils ld gas gcc libg++ gnulib clib
6a3958b2
RP
62OTHERS =
63
a0f47eb7 64ALL = all.normal
b26ff9d8 65INSTALL_TARGET = install.all
fb660409
RP
66
67### for debugging
68#GCCVERBOSE=-v
69
23e3e7f9 70
eb02fd64 71#### host and target specific makefile fragments come in here.
ec342d7d 72###
eb02fd64 73
4d714963
RP
74.PHONY: all info install-info clean-info
75
a0f47eb7 76all: $(ALL)
4d714963 77
12682548 78info: cfg-paper.info
4d714963 79 $(MAKE) subdir_do DO=info "DODIRS=$(SUBDIRS)"
c5f94070 80
25113b46
RP
81clean-info:
82 $(MAKE) subdir_do DO=clean-info "DODIRS=$(SUBDIRS)"
83 rm -f cfg-paper.info
84
12682548
RP
85cfg-paper.info: cfg-paper.texi
86 $(MAKEINFO) -o cfg-paper.info $(srcdir)/cfg-paper.texi
87
8f861f08
RP
88configure.info: configure.texi
89 $(MAKEINFO) -o configure.info $(srcdir)/configure.texi
90
9a9e8e7f 91install-info: install-info-dirs force
c5f94070 92 $(MAKE) subdir_do DO=install-info "DODIRS=$(SUBDIRS)"
12682548 93 $(INSTALL_DATA) cfg-paper.info $(infodir)/cfg-paper.info
9a9e8e7f
RP
94 $(MAKE) dir.info install-dir.info
95
96install-dir.info:
97 $(INSTALL_DATA) dir.info $(infodir)/dir.info
4d714963
RP
98
99# clib prms
ba8abfce
JG
100# all-gnulib
101all.normal: all-texinfo all-bison all-byacc all-flex all-ld \
102 all-gcc all-gas all-binutils \
103 all-libg++ all-gdb all-make all-cvs all-emacs all-ispell all-fileutils
b26ff9d8 104all.cross: all-bison all-ld all-gnulib all-gdb
4d714963
RP
105# $(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS) $(OTHERS)"
106
25113b46
RP
107clean: clean-libiberty clean-texinfo clean-bfd clean-binutils \
108 clean-bison clean-byacc clean-flex clean-ld clean-gas \
109 clean-gcc clean-gnulib clean-readline clean-glob clean-gdb \
110 clean-make clean-diff clean-grep clean-rcs clean-gdbm \
079399f6 111 clean-cvs clean-emacs clean-ispell clean-fileutils
4d714963
RP
112 rm -rf *.a TEMP errs core *.o *~ \#* TAGS *.E
113
ba8abfce
JG
114install: $(INSTALL_TARGET) $(srcdir)/configure.man
115 $(INSTALL_DATA) $(srcdir)/configure.man $(man1dir)/configure.1
b26ff9d8 116
25113b46
RP
117install.all: install-dirs install-libiberty install-texinfo \
118 install-binutils install-bison install-byacc install-flex \
119 install-ld install-gas install-gcc install-gnulib \
120 install-readline install-glob install-gdb install-make \
079399f6 121 install-cvs install-emacs install-ispell install-fileutils
b26ff9d8
RP
122install.cross: install-dirs install-libiberty install-binutils install-bison \
123 install-byacc install-ld install-gas install-gnulib \
124 install-readline install-glob install-gdb
23e3e7f9 125
4d714963
RP
126### libiberty
127.PHONY: all-libiberty just-libiberty
128all-libiberty: just-libiberty
129just-libiberty: force
b26ff9d8
RP
130 if [ -d $(unsubdir)/libiberty ] ; then \
131 (cd $(unsubdir)/libiberty$(subdir); \
4d714963
RP
132 $(MAKE) \
133 "against=$(against)" \
134 "AR=$(AR)" \
135 "AR_FLAGS=$(AR_FLAGS)" \
136 "CC=$(CC)" \
137 "RANLIB=$(RANLIB)" \
138 "LOADLIBES=$(LOADLIBES)" \
139 "LDFLAGS=$(LDFLAGS)" \
140 "BISON=$(BISON)" \
141 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
142 all) ; \
143 else \
144 true ; \
145 fi
4d714963
RP
146
147clean-libiberty: force
b26ff9d8
RP
148 if [ -d $(unsubdir)/libiberty ] ; then \
149 (cd $(unsubdir)/libiberty$(subdir); \
4d714963
RP
150 $(MAKE) \
151 "against=$(against)" \
152 "AR=$(AR)" \
153 "AR_FLAGS=$(AR_FLAGS)" \
154 "CC=$(CC)" \
155 "RANLIB=$(RANLIB)" \
156 "LOADLIBES=$(LOADLIBES)" \
157 "LDFLAGS=$(LDFLAGS)" \
158 "BISON=$(BISON)" \
159 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
160 clean) ; \
161 else \
162 true ; \
163 fi
4d714963
RP
164
165install-libiberty: force
b26ff9d8
RP
166 if [ -d $(unsubdir)/libiberty ] ; then \
167 (cd $(unsubdir)/libiberty$(subdir); \
4d714963
RP
168 $(MAKE) \
169 "against=$(against)" \
170 "AR=$(AR)" \
171 "AR_FLAGS=$(AR_FLAGS)" \
172 "CC=$(CC)" \
173 "RANLIB=$(RANLIB)" \
174 "LOADLIBES=$(LOADLIBES)" \
175 "LDFLAGS=$(LDFLAGS)" \
176 "BISON=$(BISON)" \
177 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
178 install) ; \
179 else \
180 true ; \
181 fi
23e3e7f9 182
4d714963
RP
183### texinfo
184.PHONY: all-texinfo just-texinfo
185all-texinfo: just-texinfo
186just-texinfo: just-libiberty force
b26ff9d8
RP
187 if [ -d $(unsubdir)/texinfo ] ; then \
188 (cd $(unsubdir)/texinfo$(subdir); \
4d714963
RP
189 $(MAKE) \
190 "against=$(against)" \
191 "AR=$(AR)" \
192 "AR_FLAGS=$(AR_FLAGS)" \
193 "CC=$(CC)" \
194 "RANLIB=$(RANLIB)" \
195 "LOADLIBES=$(LOADLIBES)" \
196 "LDFLAGS=$(LDFLAGS)" \
197 "BISON=$(BISON)" \
198 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
199 all) ; \
200 else \
201 true ; \
202 fi
4d714963
RP
203
204clean-texinfo: force
b26ff9d8
RP
205 if [ -d $(unsubdir)/texinfo ] ; then \
206 (cd $(unsubdir)/texinfo$(subdir); \
4d714963
RP
207 $(MAKE) \
208 "against=$(against)" \
209 "AR=$(AR)" \
210 "AR_FLAGS=$(AR_FLAGS)" \
211 "CC=$(CC)" \
212 "RANLIB=$(RANLIB)" \
213 "LOADLIBES=$(LOADLIBES)" \
214 "LDFLAGS=$(LDFLAGS)" \
215 "BISON=$(BISON)" \
216 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
217 clean) ; \
218 else \
219 true ; \
220 fi
4d714963
RP
221
222install-texinfo: force
b26ff9d8
RP
223 if [ -d $(unsubdir)/texinfo ] ; then \
224 (cd $(unsubdir)/texinfo$(subdir); \
4d714963
RP
225 $(MAKE) \
226 "against=$(against)" \
227 "AR=$(AR)" \
228 "AR_FLAGS=$(AR_FLAGS)" \
229 "CC=$(CC)" \
230 "RANLIB=$(RANLIB)" \
231 "LOADLIBES=$(LOADLIBES)" \
232 "LDFLAGS=$(LDFLAGS)" \
233 "BISON=$(BISON)" \
234 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
235 install) ; \
236 else \
237 true ; \
238 fi
23e3e7f9 239
4d714963
RP
240### bfd
241.PHONY: all-bfd just-bfd
242all-bfd: just-bfd
243just-bfd: force
b26ff9d8
RP
244 if [ -d $(unsubdir)/bfd ] ; then \
245 (cd $(unsubdir)/bfd$(subdir); \
4d714963
RP
246 $(MAKE) \
247 "against=$(against)" \
248 "AR=$(AR)" \
249 "AR_FLAGS=$(AR_FLAGS)" \
250 "CC=$(CC)" \
251 "RANLIB=$(RANLIB)" \
252 "LOADLIBES=$(LOADLIBES)" \
253 "LDFLAGS=$(LDFLAGS)" \
254 "BISON=$(BISON)" \
255 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
256 all) ; \
257 else \
258 true ; \
259 fi
4d714963
RP
260
261clean-bfd: force
b26ff9d8
RP
262 if [ -d $(unsubdir)/bfd ] ; then \
263 (cd $(unsubdir)/bfd$(subdir); \
4d714963
RP
264 $(MAKE) \
265 "against=$(against)" \
266 "AR=$(AR)" \
267 "AR_FLAGS=$(AR_FLAGS)" \
268 "CC=$(CC)" \
269 "RANLIB=$(RANLIB)" \
270 "LOADLIBES=$(LOADLIBES)" \
271 "LDFLAGS=$(LDFLAGS)" \
272 "BISON=$(BISON)" \
273 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
274 clean) ; \
275 else \
276 true ; \
277 fi
4d714963
RP
278
279install-bfd: force
b26ff9d8
RP
280 if [ -d $(unsubdir)/bfd ] ; then \
281 (cd $(unsubdir)/bfd$(subdir); \
4d714963
RP
282 $(MAKE) \
283 "against=$(against)" \
284 "AR=$(AR)" \
285 "AR_FLAGS=$(AR_FLAGS)" \
286 "CC=$(CC)" \
287 "RANLIB=$(RANLIB)" \
288 "LOADLIBES=$(LOADLIBES)" \
289 "LDFLAGS=$(LDFLAGS)" \
290 "BISON=$(BISON)" \
291 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
292 install) ; \
293 else \
294 true ; \
295 fi
23e3e7f9 296
4d714963
RP
297### binutils
298.PHONY: all-binutils just-binutils
299all-binutils: just-binutils
300just-binutils: just-libiberty just-bfd force
b26ff9d8
RP
301 if [ -d $(unsubdir)/binutils ] ; then \
302 (cd $(unsubdir)/binutils$(subdir); \
4d714963
RP
303 $(MAKE) \
304 "against=$(against)" \
305 "AR=$(AR)" \
306 "AR_FLAGS=$(AR_FLAGS)" \
307 "CC=$(CC)" \
308 "RANLIB=$(RANLIB)" \
309 "LOADLIBES=$(LOADLIBES)" \
310 "LDFLAGS=$(LDFLAGS)" \
311 "BISON=$(BISON)" \
312 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
313 all) ; \
314 else \
315 true ; \
316 fi
4d714963
RP
317
318clean-binutils: force
b26ff9d8
RP
319 if [ -d $(unsubdir)/binutils ] ; then \
320 (cd $(unsubdir)/binutils$(subdir); \
4d714963
RP
321 $(MAKE) \
322 "against=$(against)" \
323 "AR=$(AR)" \
324 "AR_FLAGS=$(AR_FLAGS)" \
325 "CC=$(CC)" \
326 "RANLIB=$(RANLIB)" \
327 "LOADLIBES=$(LOADLIBES)" \
328 "LDFLAGS=$(LDFLAGS)" \
329 "BISON=$(BISON)" \
330 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
331 clean) ; \
332 else \
333 true ; \
334 fi
4d714963
RP
335
336install-binutils: force
b26ff9d8
RP
337 if [ -d $(unsubdir)/binutils ] ; then \
338 (cd $(unsubdir)/binutils$(subdir); \
4d714963
RP
339 $(MAKE) \
340 "against=$(against)" \
341 "AR=$(AR)" \
342 "AR_FLAGS=$(AR_FLAGS)" \
343 "CC=$(CC)" \
344 "RANLIB=$(RANLIB)" \
345 "LOADLIBES=$(LOADLIBES)" \
346 "LDFLAGS=$(LDFLAGS)" \
347 "BISON=$(BISON)" \
348 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
349 install) ; \
350 else \
351 true ; \
352 fi
23e3e7f9 353
4d714963
RP
354### byacc
355.PHONY: all-byacc just-byacc
356all-byacc: just-byacc
357just-byacc: force
b26ff9d8
RP
358 if [ -d $(unsubdir)/byacc ] ; then \
359 (cd $(unsubdir)/byacc$(subdir); \
4d714963
RP
360 $(MAKE) \
361 "against=$(against)" \
362 "AR=$(AR)" \
363 "AR_FLAGS=$(AR_FLAGS)" \
364 "CC=$(CC)" \
365 "RANLIB=$(RANLIB)" \
366 "LOADLIBES=$(LOADLIBES)" \
367 "LDFLAGS=$(LDFLAGS)" \
368 "BISON=$(BISON)" \
369 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
370 all) ; \
371 else \
372 true ; \
373 fi
4d714963
RP
374
375clean-byacc: force
b26ff9d8
RP
376 if [ -d $(unsubdir)/byacc ] ; then \
377 (cd $(unsubdir)/byacc$(subdir); \
4d714963
RP
378 $(MAKE) \
379 "against=$(against)" \
380 "AR=$(AR)" \
381 "AR_FLAGS=$(AR_FLAGS)" \
382 "CC=$(CC)" \
383 "RANLIB=$(RANLIB)" \
384 "LOADLIBES=$(LOADLIBES)" \
385 "LDFLAGS=$(LDFLAGS)" \
386 "BISON=$(BISON)" \
387 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
388 clean) ; \
389 else \
390 true ; \
391 fi
4d714963
RP
392
393install-byacc: force
b26ff9d8
RP
394 if [ -d $(unsubdir)/byacc ] ; then \
395 (cd $(unsubdir)/byacc$(subdir); \
4d714963
RP
396 $(MAKE) \
397 "against=$(against)" \
398 "AR=$(AR)" \
399 "AR_FLAGS=$(AR_FLAGS)" \
400 "CC=$(CC)" \
401 "RANLIB=$(RANLIB)" \
402 "LOADLIBES=$(LOADLIBES)" \
403 "LDFLAGS=$(LDFLAGS)" \
404 "BISON=$(BISON)" \
405 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
406 install) ; \
407 else \
408 true ; \
409 fi
23e3e7f9 410
4d714963
RP
411### bison
412.PHONY: all-bison just-bison
413all-bison: just-bison
414just-bison: just-libiberty force
b26ff9d8
RP
415 if [ -d $(unsubdir)/bison ] ; then \
416 (cd $(unsubdir)/bison$(subdir); \
4d714963
RP
417 $(MAKE) \
418 "against=$(against)" \
419 "AR=$(AR)" \
420 "AR_FLAGS=$(AR_FLAGS)" \
421 "CC=$(CC)" \
422 "RANLIB=$(RANLIB)" \
423 "LOADLIBES=$(LOADLIBES)" \
424 "LDFLAGS=$(LDFLAGS)" \
425 "BISON=$(BISON)" \
426 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
427 all) ; \
428 else \
429 true ; \
430 fi
4d714963
RP
431
432clean-bison: force
b26ff9d8
RP
433 if [ -d $(unsubdir)/bison ] ; then \
434 (cd $(unsubdir)/bison$(subdir); \
4d714963
RP
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)" \
b26ff9d8
RP
445 clean) ; \
446 else \
447 true ; \
448 fi
4d714963
RP
449
450install-bison: force
b26ff9d8
RP
451 if [ -d $(unsubdir)/bison ] ; then \
452 (cd $(unsubdir)/bison$(subdir); \
4d714963
RP
453 $(MAKE) \
454 "against=$(against)" \
455 "AR=$(AR)" \
456 "AR_FLAGS=$(AR_FLAGS)" \
457 "CC=$(CC)" \
458 "RANLIB=$(RANLIB)" \
459 "LOADLIBES=$(LOADLIBES)" \
460 "LDFLAGS=$(LDFLAGS)" \
461 "BISON=$(BISON)" \
462 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
463 install) ; \
464 else \
465 true ; \
466 fi
23e3e7f9 467
4d714963
RP
468### gcc
469.PHONY: all-gcc just-gcc
470all-gcc: just-gcc
ba8abfce
JG
471#just-gcc: just-libiberty just-bison just-gnulib1 force
472just-gcc: just-libiberty just-bison force
b26ff9d8
RP
473 if [ -d $(unsubdir)/gcc ] ; then \
474 (cd $(unsubdir)/gcc$(subdir); \
4d714963
RP
475 $(MAKE) \
476 "against=$(against)" \
477 "AR=$(AR)" \
478 "AR_FLAGS=$(AR_FLAGS)" \
479 "CC=$(CC)" \
480 "RANLIB=$(RANLIB)" \
481 "LOADLIBES=$(LOADLIBES)" \
482 "LDFLAGS=$(LDFLAGS)" \
483 "BISON=$(BISON)" \
484 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
485 all) ; \
486 else \
487 true ; \
488 fi
4d714963
RP
489
490clean-gcc: force
b26ff9d8
RP
491 if [ -d $(unsubdir)/gcc ] ; then \
492 (cd $(unsubdir)/gcc$(subdir); \
4d714963
RP
493 $(MAKE) \
494 "against=$(against)" \
495 "AR=$(AR)" \
496 "AR_FLAGS=$(AR_FLAGS)" \
497 "CC=$(CC)" \
498 "RANLIB=$(RANLIB)" \
499 "LOADLIBES=$(LOADLIBES)" \
500 "LDFLAGS=$(LDFLAGS)" \
501 "BISON=$(BISON)" \
502 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
503 clean) ; \
504 else \
505 true ; \
506 fi
4d714963
RP
507
508install-gcc:
b26ff9d8
RP
509 if [ -d $(unsubdir)/gcc ] ; then \
510 (cd $(unsubdir)/gcc$(subdir); \
4d714963
RP
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)" \
b26ff9d8
RP
521 install) ; \
522 else \
523 true ; \
524 fi
23e3e7f9 525
4d714963
RP
526### readline
527.PHONY: all-readline just-readline
528all-readline: just-readline
529just-readline: force
b26ff9d8
RP
530 if [ -d $(unsubdir)/readline ] ; then \
531 (cd $(unsubdir)/readline$(subdir); \
4d714963
RP
532 $(MAKE) \
533 "against=$(against)" \
534 "AR=$(AR)" \
535 "AR_FLAGS=$(AR_FLAGS)" \
536 "CC=$(CC)" \
537 "RANLIB=$(RANLIB)" \
538 "LOADLIBES=$(LOADLIBES)" \
539 "LDFLAGS=$(LDFLAGS)" \
540 "BISON=$(BISON)" \
541 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
542 all) ; \
543 else \
544 true ; \
545 fi
4d714963
RP
546
547clean-readline: force
b26ff9d8
RP
548 if [ -d $(unsubdir)/readline ] ; then \
549 (cd $(unsubdir)/readline$(subdir); \
4d714963
RP
550 $(MAKE) \
551 "against=$(against)" \
552 "AR=$(AR)" \
553 "AR_FLAGS=$(AR_FLAGS)" \
554 "CC=$(CC)" \
555 "RANLIB=$(RANLIB)" \
556 "LOADLIBES=$(LOADLIBES)" \
557 "LDFLAGS=$(LDFLAGS)" \
558 "BISON=$(BISON)" \
559 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
560 clean) ; \
561 else \
562 true ; \
563 fi
4d714963
RP
564
565install-readline: force
b26ff9d8
RP
566 if [ -d $(unsubdir)/readline ] ; then \
567 (cd $(unsubdir)/readline$(subdir); \
4d714963
RP
568 $(MAKE) \
569 "against=$(against)" \
570 "AR=$(AR)" \
571 "AR_FLAGS=$(AR_FLAGS)" \
572 "CC=$(CC)" \
573 "RANLIB=$(RANLIB)" \
574 "LOADLIBES=$(LOADLIBES)" \
575 "LDFLAGS=$(LDFLAGS)" \
576 "BISON=$(BISON)" \
577 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
578 install) ; \
579 else \
580 true ; \
581 fi
23e3e7f9 582
4d714963
RP
583### glob
584.PHONY: all-glob just-glob
585all-glob: just-glob
586just-glob: force
b26ff9d8
RP
587 if [ -d $(unsubdir)/glob ] ; then \
588 (cd $(unsubdir)/glob$(subdir); \
4d714963
RP
589 $(MAKE) \
590 "against=$(against)" \
591 "AR=$(AR)" \
592 "AR_FLAGS=$(AR_FLAGS)" \
593 "CC=$(CC)" \
594 "RANLIB=$(RANLIB)" \
595 "LOADLIBES=$(LOADLIBES)" \
596 "LDFLAGS=$(LDFLAGS)" \
597 "BISON=$(BISON)" \
598 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
599 all) ; \
600 else \
601 true ; \
602 fi
4d714963
RP
603
604clean-glob: force
b26ff9d8
RP
605 if [ -d $(unsubdir)/glob ] ; then \
606 (cd $(unsubdir)/glob$(subdir); \
4d714963
RP
607 $(MAKE) \
608 "against=$(against)" \
609 "AR=$(AR)" \
610 "AR_FLAGS=$(AR_FLAGS)" \
611 "CC=$(CC)" \
612 "RANLIB=$(RANLIB)" \
613 "LOADLIBES=$(LOADLIBES)" \
614 "LDFLAGS=$(LDFLAGS)" \
615 "BISON=$(BISON)" \
616 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
617 clean) ; \
618 else \
619 true ; \
620 fi
4d714963
RP
621
622install-glob: force
b26ff9d8
RP
623 if [ -d $(unsubdir)/glob ] ; then \
624 (cd $(unsubdir)/glob$(subdir); \
4d714963
RP
625 $(MAKE) \
626 "against=$(against)" \
627 "AR=$(AR)" \
628 "AR_FLAGS=$(AR_FLAGS)" \
629 "CC=$(CC)" \
630 "RANLIB=$(RANLIB)" \
631 "LOADLIBES=$(LOADLIBES)" \
632 "LDFLAGS=$(LDFLAGS)" \
633 "BISON=$(BISON)" \
634 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
635 install) ; \
636 else \
637 true ; \
638 fi
23e3e7f9 639
4d714963
RP
640### gas
641.PHONY: all-gas just-gas
642all-gas: just-gas
643just-gas: just-libiberty just-bfd force
b26ff9d8
RP
644 if [ -d $(unsubdir)/gas ] ; then \
645 (cd $(unsubdir)/gas$(subdir); \
4d714963
RP
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)" \
b26ff9d8
RP
656 all) ; \
657 else \
658 true ; \
659 fi
4d714963
RP
660
661clean-gas: force
b26ff9d8
RP
662 if [ -d $(unsubdir)/gas ] ; then \
663 (cd $(unsubdir)/gas$(subdir); \
4d714963
RP
664 $(MAKE) \
665 "against=$(against)" \
666 "AR=$(AR)" \
667 "AR_FLAGS=$(AR_FLAGS)" \
668 "CC=$(CC)" \
669 "RANLIB=$(RANLIB)" \
670 "LOADLIBES=$(LOADLIBES)" \
671 "LDFLAGS=$(LDFLAGS)" \
672 "BISON=$(BISON)" \
673 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
674 clean) ; \
675 else \
676 true ; \
677 fi
4d714963
RP
678
679install-gas: force
b26ff9d8
RP
680 if [ -d $(unsubdir)/gas ] ; then \
681 (cd $(unsubdir)/gas$(subdir); \
4d714963
RP
682 $(MAKE) \
683 "against=$(against)" \
684 "AR=$(AR)" \
685 "AR_FLAGS=$(AR_FLAGS)" \
686 "CC=$(CC)" \
687 "RANLIB=$(RANLIB)" \
688 "LOADLIBES=$(LOADLIBES)" \
689 "LDFLAGS=$(LDFLAGS)" \
690 "BISON=$(BISON)" \
691 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
692 install) ; \
693 else \
694 true ; \
695 fi
23e3e7f9 696
4d714963
RP
697### ld
698.PHONY: all-ld just-ld
699all-ld: just-ld
e9712bee 700just-ld: just-libiberty just-bfd just-bison force
b26ff9d8
RP
701 if [ -d $(unsubdir)/ld ] ; then \
702 (cd $(unsubdir)/ld$(subdir); \
4d714963
RP
703 $(MAKE) \
704 "against=$(against)" \
705 "AR=$(AR)" \
706 "AR_FLAGS=$(AR_FLAGS)" \
707 "CC=$(CC)" \
708 "RANLIB=$(RANLIB)" \
709 "LOADLIBES=$(LOADLIBES)" \
710 "LDFLAGS=$(LDFLAGS)" \
711 "BISON=$(BISON)" \
712 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
713 all) ; \
714 else \
715 true ; \
716 fi
a0f47eb7 717
4d714963 718clean-ld: force
b26ff9d8
RP
719 if [ -d $(unsubdir)/ld ] ; then \
720 (cd $(unsubdir)/ld$(subdir); \
4d714963
RP
721 $(MAKE) \
722 "against=$(against)" \
723 "AR=$(AR)" \
724 "AR_FLAGS=$(AR_FLAGS)" \
725 "CC=$(CC)" \
726 "RANLIB=$(RANLIB)" \
727 "LOADLIBES=$(LOADLIBES)" \
728 "LDFLAGS=$(LDFLAGS)" \
729 "BISON=$(BISON)" \
730 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
731 clean) ; \
732 else \
733 true ; \
734 fi
6a3958b2 735
4d714963 736install-ld: force
b26ff9d8
RP
737 if [ -d $(unsubdir)/ld ] ; then \
738 (cd $(unsubdir)/ld$(subdir); \
4d714963
RP
739 $(MAKE) \
740 "against=$(against)" \
741 "AR=$(AR)" \
742 "AR_FLAGS=$(AR_FLAGS)" \
743 "CC=$(CC)" \
744 "RANLIB=$(RANLIB)" \
745 "LOADLIBES=$(LOADLIBES)" \
746 "LDFLAGS=$(LDFLAGS)" \
747 "BISON=$(BISON)" \
748 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
749 install) ; \
750 else \
751 true ; \
752 fi
23e3e7f9 753
12682548
RP
754### gnulib (and gnulib1)
755.PHONY: all-gnulib just-gnulib1 just-gnulib
756just-gnulib1: all-gas all-binutils force
757 if [ -d $(unsubdir)/gnulib ] ; then \
758 (cd $(unsubdir)/gnulib$(subdir); \
759 $(MAKE) \
760 "against=$(against)" \
761 "AR=$(AR)" \
762 "AR_FLAGS=$(AR_FLAGS)" \
763 "CC=$(CC)" \
764 "RANLIB=$(RANLIB)" \
765 "LOADLIBES=$(LOADLIBES)" \
766 "LDFLAGS=$(LDFLAGS)" \
767 "BISON=$(BISON)" \
768 "MAKEINFO=$(MAKEINFO)" \
769 gnulib1.a) ; \
770 else \
771 true ; \
772 fi
773
774clean-gnulib1: force
775 if [ -d $(unsubdir)/gnulib ] ; then \
776 (cd $(unsubdir)/gnulib$(subdir); \
777 $(MAKE) \
778 "against=$(against)" \
779 "AR=$(AR)" \
780 "AR_FLAGS=$(AR_FLAGS)" \
781 "CC=$(CC)" \
782 "RANLIB=$(RANLIB)" \
783 "LOADLIBES=$(LOADLIBES)" \
784 "LDFLAGS=$(LDFLAGS)" \
785 "BISON=$(BISON)" \
786 "MAKEINFO=$(MAKEINFO)" \
787 clean-gnulib1) ; \
788 else \
789 true ; \
790 fi
791
792install-gnulib1: force
793 echo gnulib1 is a component, not an installable target
794
4d714963
RP
795all-gnulib: just-gnulib
796just-gnulib: all-gcc all-gas all-binutils force
ba8abfce 797 true
b26ff9d8
RP
798 if [ -d $(unsubdir)/gnulib ] ; then \
799 (cd $(unsubdir)/gnulib$(subdir); \
4d714963
RP
800 $(MAKE) \
801 "against=$(against)" \
802 "AR=$(AR)" \
803 "AR_FLAGS=$(AR_FLAGS)" \
804 "CC=$(CC)" \
805 "RANLIB=$(RANLIB)" \
806 "LOADLIBES=$(LOADLIBES)" \
807 "LDFLAGS=$(LDFLAGS)" \
808 "BISON=$(BISON)" \
809 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
810 all) ; \
811 else \
812 true ; \
813 fi
c5f94070 814
4d714963 815clean-gnulib: force
b26ff9d8
RP
816 if [ -d $(unsubdir)/gnulib ] ; then \
817 (cd $(unsubdir)/gnulib$(subdir); \
4d714963
RP
818 $(MAKE) \
819 "against=$(against)" \
820 "AR=$(AR)" \
821 "AR_FLAGS=$(AR_FLAGS)" \
822 "CC=$(CC)" \
823 "RANLIB=$(RANLIB)" \
824 "LOADLIBES=$(LOADLIBES)" \
825 "LDFLAGS=$(LDFLAGS)" \
826 "BISON=$(BISON)" \
827 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
828 clean) ; \
829 else \
830 true ; \
831 fi
4d714963
RP
832
833install-gnulib: force
b26ff9d8
RP
834 if [ -d $(unsubdir)/gnulib ] ; then \
835 (cd $(unsubdir)/gnulib$(subdir); \
4d714963
RP
836 $(MAKE) \
837 "against=$(against)" \
838 "AR=$(AR)" \
839 "AR_FLAGS=$(AR_FLAGS)" \
840 "CC=$(CC)" \
841 "RANLIB=$(RANLIB)" \
842 "LOADLIBES=$(LOADLIBES)" \
843 "LDFLAGS=$(LDFLAGS)" \
844 "BISON=$(BISON)" \
845 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
846 install) ; \
847 else \
848 true ; \
849 fi
23e3e7f9 850
4d714963
RP
851### gdb
852.PHONY: all-gdb just-gdb
853all-gdb: just-gdb
e9712bee 854just-gdb: just-bfd just-libiberty just-readline just-glob just-bison force
b26ff9d8
RP
855 if [ -d $(unsubdir)/gdb ] ; then \
856 (cd $(unsubdir)/gdb$(subdir); \
4d714963
RP
857 $(MAKE) \
858 "against=$(against)" \
859 "AR=$(AR)" \
860 "AR_FLAGS=$(AR_FLAGS)" \
861 "CC=$(CC)" \
862 "RANLIB=$(RANLIB)" \
863 "LOADLIBES=$(LOADLIBES)" \
864 "LDFLAGS=$(LDFLAGS)" \
865 "BISON=$(BISON)" \
866 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
867 all) ; \
868 else \
869 true ; \
870 fi
4d714963
RP
871
872clean-gdb: force
b26ff9d8
RP
873 if [ -d $(unsubdir)/gdb ] ; then \
874 (cd $(unsubdir)/gdb$(subdir); \
4d714963
RP
875 $(MAKE) \
876 "against=$(against)" \
877 "AR=$(AR)" \
878 "AR_FLAGS=$(AR_FLAGS)" \
879 "CC=$(CC)" \
880 "RANLIB=$(RANLIB)" \
881 "LOADLIBES=$(LOADLIBES)" \
882 "LDFLAGS=$(LDFLAGS)" \
883 "BISON=$(BISON)" \
884 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
885 clean) ; \
886 else \
887 true ; \
888 fi
4d714963
RP
889
890install-gdb: force
b26ff9d8
RP
891 if [ -d $(unsubdir)/gdb ] ; then \
892 (cd $(unsubdir)/gdb$(subdir); \
4d714963
RP
893 $(MAKE) \
894 "against=$(against)" \
895 "AR=$(AR)" \
896 "AR_FLAGS=$(AR_FLAGS)" \
897 "CC=$(CC)" \
898 "RANLIB=$(RANLIB)" \
899 "LOADLIBES=$(LOADLIBES)" \
900 "LDFLAGS=$(LDFLAGS)" \
901 "BISON=$(BISON)" \
902 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
903 install) ; \
904 else \
905 true ; \
906 fi
23e3e7f9 907
4d714963
RP
908### make
909.PHONY: all-make just-make
910all-make: just-make
911just-make: all-libiberty force
b26ff9d8
RP
912 if [ -d $(unsubdir)/make ] ; then \
913 (cd $(unsubdir)/make$(subdir); \
4d714963
RP
914 $(MAKE) \
915 "against=$(against)" \
916 "AR=$(AR)" \
917 "AR_FLAGS=$(AR_FLAGS)" \
918 "CC=$(CC)" \
919 "RANLIB=$(RANLIB)" \
920 "LOADLIBES=$(LOADLIBES)" \
921 "LDFLAGS=$(LDFLAGS)" \
922 "BISON=$(BISON)" \
923 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
924 all) ; \
925 else \
926 true ; \
927 fi
4d714963
RP
928
929clean-make: force
b26ff9d8
RP
930 if [ -d $(unsubdir)/make ] ; then \
931 (cd $(unsubdir)/make$(subdir); \
4d714963
RP
932 $(MAKE) \
933 "against=$(against)" \
934 "AR=$(AR)" \
935 "AR_FLAGS=$(AR_FLAGS)" \
936 "CC=$(CC)" \
937 "RANLIB=$(RANLIB)" \
938 "LOADLIBES=$(LOADLIBES)" \
939 "LDFLAGS=$(LDFLAGS)" \
940 "BISON=$(BISON)" \
941 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
942 clean) ; \
943 else \
944 true ; \
945 fi
4d714963
RP
946
947install-make: force
b26ff9d8
RP
948 if [ -d $(unsubdir)/make ] ; then \
949 (cd $(unsubdir)/make$(subdir); \
4d714963
RP
950 $(MAKE) \
951 "against=$(against)" \
952 "AR=$(AR)" \
953 "AR_FLAGS=$(AR_FLAGS)" \
954 "CC=$(CC)" \
955 "RANLIB=$(RANLIB)" \
956 "LOADLIBES=$(LOADLIBES)" \
957 "LDFLAGS=$(LDFLAGS)" \
958 "BISON=$(BISON)" \
959 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
960 install) ; \
961 else \
962 true ; \
963 fi
23e3e7f9 964
4d714963
RP
965### diff
966.PHONY: all-diff just-diff
967all-diff: just-diff
968just-diff: force
b26ff9d8
RP
969 if [ -d $(unsubdir)/diff ] ; then \
970 (cd $(unsubdir)/diff$(subdir); \
4d714963
RP
971 $(MAKE) \
972 "against=$(against)" \
973 "AR=$(AR)" \
974 "AR_FLAGS=$(AR_FLAGS)" \
975 "CC=$(CC)" \
976 "RANLIB=$(RANLIB)" \
977 "LOADLIBES=$(LOADLIBES)" \
978 "LDFLAGS=$(LDFLAGS)" \
979 "BISON=$(BISON)" \
980 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
981 all) ; \
982 else \
983 true ; \
984 fi
4d714963
RP
985
986clean-diff: force
b26ff9d8
RP
987 if [ -d $(unsubdir)/diff ] ; then \
988 (cd $(unsubdir)/diff$(subdir); \
4d714963
RP
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)" \
b26ff9d8
RP
999 clean) ; \
1000 else \
1001 true ; \
1002 fi
4d714963
RP
1003
1004install-diff: force
b26ff9d8
RP
1005 if [ -d $(unsubdir)/diff ] ; then \
1006 (cd $(unsubdir)/diff/$(subdir); \
4d714963
RP
1007 $(MAKE) \
1008 "against=$(against)" \
1009 "AR=$(AR)" \
1010 "AR_FLAGS=$(AR_FLAGS)" \
1011 "CC=$(CC)" \
1012 "RANLIB=$(RANLIB)" \
1013 "LOADLIBES=$(LOADLIBES)" \
1014 "LDFLAGS=$(LDFLAGS)" \
1015 "BISON=$(BISON)" \
1016 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1017 install) ; \
1018 else \
1019 true ; \
1020 fi
23e3e7f9 1021
4d714963
RP
1022### grep
1023.PHONY: all-grep just-grep
1024all-grep: just-grep
1025just-grep: force
b26ff9d8
RP
1026 if [ -d $(unsubdir)/grep ] ; then \
1027 (cd $(unsubdir)/grep$(subdir); \
4d714963
RP
1028 $(MAKE) \
1029 "against=$(against)" \
1030 "AR=$(AR)" \
1031 "AR_FLAGS=$(AR_FLAGS)" \
1032 "CC=$(CC)" \
1033 "RANLIB=$(RANLIB)" \
1034 "LOADLIBES=$(LOADLIBES)" \
1035 "LDFLAGS=$(LDFLAGS)" \
1036 "BISON=$(BISON)" \
1037 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1038 all) ; \
1039 else \
1040 true ; \
1041 fi
4d714963
RP
1042
1043clean-grep: force
b26ff9d8
RP
1044 if [ -d $(unsubdir)/grep ] ; then \
1045 (cd $(unsubdir)/grep$(subdir); \
4d714963
RP
1046 $(MAKE) \
1047 "against=$(against)" \
1048 "AR=$(AR)" \
1049 "AR_FLAGS=$(AR_FLAGS)" \
1050 "CC=$(CC)" \
1051 "RANLIB=$(RANLIB)" \
1052 "LOADLIBES=$(LOADLIBES)" \
1053 "LDFLAGS=$(LDFLAGS)" \
1054 "BISON=$(BISON)" \
1055 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1056 clean) ; \
1057 else \
1058 true ; \
1059 fi
4d714963
RP
1060
1061install-grep: force
b26ff9d8
RP
1062 if [ -d $(unsubdir)/grep ] ; then \
1063 (cd $(unsubdir)/grep$(subdir); \
4d714963
RP
1064 $(MAKE) \
1065 "against=$(against)" \
1066 "AR=$(AR)" \
1067 "AR_FLAGS=$(AR_FLAGS)" \
1068 "CC=$(CC)" \
1069 "RANLIB=$(RANLIB)" \
1070 "LOADLIBES=$(LOADLIBES)" \
1071 "LDFLAGS=$(LDFLAGS)" \
1072 "BISON=$(BISON)" \
1073 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1074 install) ; \
1075 else \
1076 true ; \
1077 fi
23e3e7f9 1078
4d714963
RP
1079### rcs
1080.PHONY: all-rcs just-rcs
1081all-rcs: just-rcs
1082just-rcs: just-diff just-grep force
b26ff9d8
RP
1083 if [ -d $(unsubdir)/rcs ] ; then \
1084 (cd $(unsubdir)/rcs$(subdir); \
4d714963
RP
1085 $(MAKE) \
1086 "against=$(against)" \
1087 "AR=$(AR)" \
1088 "AR_FLAGS=$(AR_FLAGS)" \
1089 "CC=$(CC)" \
1090 "RANLIB=$(RANLIB)" \
1091 "LOADLIBES=$(LOADLIBES)" \
1092 "LDFLAGS=$(LDFLAGS)" \
1093 "BISON=$(BISON)" \
1094 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1095 all) ; \
1096 else \
1097 true ; \
1098 fi
4d714963
RP
1099
1100clean-rcs: force
b26ff9d8
RP
1101 if [ -d $(unsubdir)/rcs ] ; then \
1102 (cd $(unsubdir)/rcs$(subdir); \
4d714963
RP
1103 $(MAKE) \
1104 "against=$(against)" \
1105 "AR=$(AR)" \
1106 "AR_FLAGS=$(AR_FLAGS)" \
1107 "CC=$(CC)" \
1108 "RANLIB=$(RANLIB)" \
1109 "LOADLIBES=$(LOADLIBES)" \
1110 "LDFLAGS=$(LDFLAGS)" \
1111 "BISON=$(BISON)" \
1112 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1113 clean) ; \
1114 else \
1115 true ; \
1116 fi
4d714963
RP
1117
1118install-rcs: install-grep install-diff force
b26ff9d8
RP
1119 if [ -d $(unsubdir)/rcs ] ; then \
1120 (cd $(unsubdir)/rcs$(subdir); \
4d714963
RP
1121 $(MAKE) \
1122 "against=$(against)" \
1123 "AR=$(AR)" \
1124 "AR_FLAGS=$(AR_FLAGS)" \
1125 "CC=$(CC)" \
1126 "RANLIB=$(RANLIB)" \
1127 "LOADLIBES=$(LOADLIBES)" \
1128 "LDFLAGS=$(LDFLAGS)" \
1129 "BISON=$(BISON)" \
1130 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1131 install) ; \
1132 else \
1133 true ; \
1134 fi
23e3e7f9 1135
4d714963
RP
1136### gdbm
1137.PHONY: all-gdbm just-gdbm
1138all-gdbm: just-gdbm
1139just-gdbm: force
b26ff9d8
RP
1140 if [ -d $(unsubdir)/gdbm ] ; then \
1141 (cd $(unsubdir)/gdbm$(subdir); \
4d714963
RP
1142 $(MAKE) \
1143 "against=$(against)" \
1144 "AR=$(AR)" \
1145 "AR_FLAGS=$(AR_FLAGS)" \
1146 "CC=$(CC)" \
1147 "RANLIB=$(RANLIB)" \
1148 "LOADLIBES=$(LOADLIBES)" \
1149 "LDFLAGS=$(LDFLAGS)" \
1150 "BISON=$(BISON)" \
1151 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1152 all) ; \
1153 else \
1154 true ; \
1155 fi
4d714963
RP
1156
1157clean-gdbm: force
b26ff9d8
RP
1158 if [ -d $(unsubdir)/gdbm ] ; then \
1159 (cd $(unsubdir)/gdbm$(subdir); \
4d714963
RP
1160 $(MAKE) \
1161 "against=$(against)" \
1162 "AR=$(AR)" \
1163 "AR_FLAGS=$(AR_FLAGS)" \
1164 "CC=$(CC)" \
1165 "RANLIB=$(RANLIB)" \
1166 "LOADLIBES=$(LOADLIBES)" \
1167 "LDFLAGS=$(LDFLAGS)" \
1168 "BISON=$(BISON)" \
1169 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1170 clean) ; \
1171 else \
1172 true ; \
1173 fi
4d714963
RP
1174
1175install-gdbm: force
b26ff9d8
RP
1176 if [ -d $(unsubdir)/gdbm ] ; then \
1177 (cd $(unsubdir)/gdbm$(subdir); \
4d714963
RP
1178 $(MAKE) \
1179 "against=$(against)" \
1180 "AR=$(AR)" \
1181 "AR_FLAGS=$(AR_FLAGS)" \
1182 "CC=$(CC)" \
1183 "RANLIB=$(RANLIB)" \
1184 "LOADLIBES=$(LOADLIBES)" \
1185 "LDFLAGS=$(LDFLAGS)" \
1186 "BISON=$(BISON)" \
1187 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1188 install) ; \
1189 else \
1190 true ; \
1191 fi
23e3e7f9 1192
4d714963
RP
1193### cvs
1194.PHONY: all-cvs just-cvs
1195all-cvs: just-cvs just-rcs just-grep just-diff
1196just-cvs: just-gdbm force
b26ff9d8
RP
1197 if [ -d $(unsubdir)/cvs ] ; then \
1198 (cd $(unsubdir)/cvs$(subdir); \
4d714963
RP
1199 $(MAKE) \
1200 "against=$(against)" \
1201 "AR=$(AR)" \
1202 "AR_FLAGS=$(AR_FLAGS)" \
1203 "CC=$(CC)" \
1204 "RANLIB=$(RANLIB)" \
1205 "LOADLIBES=$(LOADLIBES)" \
1206 "LDFLAGS=$(LDFLAGS)" \
1207 "BISON=$(BISON)" \
1208 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1209 all) ; \
1210 else \
1211 true ; \
1212 fi
4d714963 1213
ba8abfce 1214clean-cvs: clean-gdbm force
b26ff9d8
RP
1215 if [ -d $(unsubdir)/cvs ] ; then \
1216 (cd $(unsubdir)/cvs$(subdir); \
4d714963
RP
1217 $(MAKE) \
1218 "against=$(against)" \
1219 "AR=$(AR)" \
1220 "AR_FLAGS=$(AR_FLAGS)" \
1221 "CC=$(CC)" \
1222 "RANLIB=$(RANLIB)" \
1223 "LOADLIBES=$(LOADLIBES)" \
1224 "LDFLAGS=$(LDFLAGS)" \
1225 "BISON=$(BISON)" \
1226 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1227 clean) ; \
1228 else \
1229 true ; \
1230 fi
4d714963
RP
1231
1232install-cvs: install-rcs install-gdbm force
b26ff9d8
RP
1233 if [ -d $(unsubdir)/cvs ] ; then \
1234 (cd $(unsubdir)/cvs$(subdir); \
4d714963 1235 $(MAKE) \
4cc027e1
PB
1236 "bindir=$(bindir)" \
1237 "mandir=$(man1dir)" \
4d714963
RP
1238 "against=$(against)" \
1239 "AR=$(AR)" \
1240 "AR_FLAGS=$(AR_FLAGS)" \
1241 "CC=$(CC)" \
1242 "RANLIB=$(RANLIB)" \
1243 "LOADLIBES=$(LOADLIBES)" \
1244 "LDFLAGS=$(LDFLAGS)" \
1245 "BISON=$(BISON)" \
1246 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1247 install) ; \
1248 else \
1249 true ; \
1250 fi
23e3e7f9 1251
4d714963
RP
1252### emacs
1253.PHONY: all-emacs just-emacs
1254all-emacs: just-emacs
1255just-emacs: force
b26ff9d8
RP
1256 if [ -d $(unsubdir)/emacs ] ; then \
1257 (cd $(unsubdir)/emacs$(subdir); \
4d714963
RP
1258 $(MAKE) \
1259 "against=$(against)" \
1260 "AR=$(AR)" \
1261 "AR_FLAGS=$(AR_FLAGS)" \
1262 "CC=$(CC)" \
1263 "RANLIB=$(RANLIB)" \
1264 "LOADLIBES=$(LOADLIBES)" \
1265 "LDFLAGS=$(LDFLAGS)" \
1266 "BISON=$(BISON)" \
1267 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1268 all) ; \
1269 else \
1270 true ; \
1271 fi
4d714963
RP
1272
1273clean-emacs: force
b26ff9d8
RP
1274 if [ -d $(unsubdir)/emacs ] ; then \
1275 (cd $(unsubdir)/emacs$(subdir); \
4d714963
RP
1276 $(MAKE) \
1277 "against=$(against)" \
1278 "AR=$(AR)" \
1279 "AR_FLAGS=$(AR_FLAGS)" \
1280 "CC=$(CC)" \
1281 "RANLIB=$(RANLIB)" \
1282 "LOADLIBES=$(LOADLIBES)" \
1283 "LDFLAGS=$(LDFLAGS)" \
1284 "BISON=$(BISON)" \
1285 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1286 clean) ; \
1287 else \
1288 true ; \
1289 fi
4d714963
RP
1290
1291install-emacs: install-rcs install-gdbm force
b26ff9d8
RP
1292 if [ -d $(unsubdir)/emacs ] ; then \
1293 (cd $(unsubdir)/emacs$(subdir); \
4d714963
RP
1294 $(MAKE) \
1295 "against=$(against)" \
1296 "AR=$(AR)" \
1297 "AR_FLAGS=$(AR_FLAGS)" \
1298 "CC=$(CC)" \
1299 "RANLIB=$(RANLIB)" \
1300 "LOADLIBES=$(LOADLIBES)" \
1301 "LDFLAGS=$(LDFLAGS)" \
1302 "BISON=$(BISON)" \
1303 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1304 install) ; \
1305 else \
1306 true ; \
1307 fi
23e3e7f9 1308
4d714963
RP
1309### ispell
1310.PHONY: all-ispell just-ispell
1311all-ispell: just-ispell
1312just-ispell: all-emacs force
b26ff9d8
RP
1313 if [ -d $(unsubdir)/ispell ] ; then \
1314 (cd $(unsubdir)/ispell$(subdir); \
4d714963
RP
1315 $(MAKE) \
1316 "against=$(against)" \
1317 "AR=$(AR)" \
1318 "AR_FLAGS=$(AR_FLAGS)" \
1319 "CC=$(CC)" \
1320 "RANLIB=$(RANLIB)" \
1321 "LOADLIBES=$(LOADLIBES)" \
1322 "LDFLAGS=$(LDFLAGS)" \
1323 "BISON=$(BISON)" \
1324 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1325 all) ; \
1326 else \
1327 true ; \
1328 fi
4d714963
RP
1329
1330clean-ispell: force
b26ff9d8
RP
1331 if [ -d $(unsubdir)/ispell ] ; then \
1332 (cd $(unsubdir)/ispell$(subdir); \
4d714963
RP
1333 $(MAKE) \
1334 "against=$(against)" \
1335 "AR=$(AR)" \
1336 "AR_FLAGS=$(AR_FLAGS)" \
1337 "CC=$(CC)" \
1338 "RANLIB=$(RANLIB)" \
1339 "LOADLIBES=$(LOADLIBES)" \
1340 "LDFLAGS=$(LDFLAGS)" \
1341 "BISON=$(BISON)" \
1342 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1343 clean) ; \
1344 else \
1345 true ; \
1346 fi
4d714963
RP
1347
1348install-ispell: install-rcs install-gdbm force
b26ff9d8
RP
1349 if [ -d $(unsubdir)/ispell ] ; then \
1350 (cd $(unsubdir)/ispell$(subdir); \
4d714963
RP
1351 $(MAKE) \
1352 "against=$(against)" \
1353 "AR=$(AR)" \
1354 "AR_FLAGS=$(AR_FLAGS)" \
1355 "CC=$(CC)" \
1356 "RANLIB=$(RANLIB)" \
1357 "LOADLIBES=$(LOADLIBES)" \
1358 "LDFLAGS=$(LDFLAGS)" \
1359 "BISON=$(BISON)" \
1360 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1361 install) ; \
1362 else \
1363 true ; \
1364 fi
23e3e7f9 1365
25113b46
RP
1366### flex
1367.PHONY: all-flex just-flex
1368all-flex: just-flex
1369just-flex: force
1370 if [ -d $(unsubdir)/flex ] ; then \
1371 (cd $(unsubdir)/flex$(subdir); \
1372 $(MAKE) \
1373 "against=$(against)" \
1374 "AR=$(AR)" \
1375 "AR_FLAGS=$(AR_FLAGS)" \
1376 "CC=$(CC)" \
1377 "RANLIB=$(RANLIB)" \
1378 "LOADLIBES=$(LOADLIBES)" \
1379 "LDFLAGS=$(LDFLAGS)" \
1380 "BISON=$(BISON)" \
1381 "MAKEINFO=$(MAKEINFO)" \
1382 all) ; \
1383 else \
1384 true ; \
1385 fi
1386
1387clean-flex: force
1388 if [ -d $(unsubdir)/flex ] ; then \
1389 (cd $(unsubdir)/flex$(subdir); \
1390 $(MAKE) \
1391 "against=$(against)" \
1392 "AR=$(AR)" \
1393 "AR_FLAGS=$(AR_FLAGS)" \
1394 "CC=$(CC)" \
1395 "RANLIB=$(RANLIB)" \
1396 "LOADLIBES=$(LOADLIBES)" \
1397 "LDFLAGS=$(LDFLAGS)" \
1398 "BISON=$(BISON)" \
1399 "MAKEINFO=$(MAKEINFO)" \
1400 clean) ; \
1401 else \
1402 true ; \
1403 fi
1404
1405install-flex: force
1406 if [ -d $(unsubdir)/flex ] ; then \
1407 (cd $(unsubdir)/flex$(subdir); \
1408 $(MAKE) \
1409 "against=$(against)" \
1410 "AR=$(AR)" \
1411 "AR_FLAGS=$(AR_FLAGS)" \
1412 "CC=$(CC)" \
1413 "RANLIB=$(RANLIB)" \
1414 "LOADLIBES=$(LOADLIBES)" \
1415 "LDFLAGS=$(LDFLAGS)" \
1416 "BISON=$(BISON)" \
1417 "MAKEINFO=$(MAKEINFO)" \
1418 install) ; \
1419 else \
1420 true ; \
1421 fi
23e3e7f9 1422
079399f6
RP
1423### fileutils
1424.PHONY: all-fileutils just-fileutils
1425all-fileutils: just-fileutils
1426just-fileutils: force
1427 if [ -d $(unsubdir)/fileutils ] ; then \
1428 (cd $(unsubdir)/fileutils$(subdir); \
1429 $(MAKE) \
1430 "prefix=$(prefix)" \
1431 "datadir=$(datadir)" \
1432 "mandir=$(mandir)" \
1433 "against=$(against)" \
1434 "AR=$(AR)" \
1435 "AR_FLAGS=$(AR_FLAGS)" \
1436 "CC=$(CC)" \
1437 "RANLIB=$(RANLIB)" \
1438 "LOADLIBES=$(LOADLIBES)" \
1439 "LDFLAGS=$(LDFLAGS)" \
1440 "BISON=$(BISON)" \
1441 "MAKEINFO=$(MAKEINFO)" \
1442 all) ; \
1443 else \
1444 true ; \
1445 fi
1446
1447clean-fileutils: force
1448 if [ -d $(unsubdir)/fileutils ] ; then \
1449 (cd $(unsubdir)/fileutils$(subdir); \
1450 $(MAKE) \
1451 "prefix=$(prefix)" \
1452 "datadir=$(datadir)" \
1453 "mandir=$(mandir)" \
1454 "against=$(against)" \
1455 "AR=$(AR)" \
1456 "AR_FLAGS=$(AR_FLAGS)" \
1457 "CC=$(CC)" \
1458 "RANLIB=$(RANLIB)" \
1459 "LOADLIBES=$(LOADLIBES)" \
1460 "LDFLAGS=$(LDFLAGS)" \
1461 "BISON=$(BISON)" \
1462 "MAKEINFO=$(MAKEINFO)" \
1463 clean) ; \
1464 else \
1465 true ; \
1466 fi
1467
1468install-fileutils: force
1469 if [ -d $(unsubdir)/fileutils ] ; then \
1470 (cd $(unsubdir)/fileutils$(subdir); \
1471 $(MAKE) \
1472 "prefix=$(prefix)" \
1473 "datadir=$(datadir)" \
1474 "mandir=$(mandir)" \
1475 "against=$(against)" \
1476 "AR=$(AR)" \
1477 "AR_FLAGS=$(AR_FLAGS)" \
1478 "CC=$(CC)" \
1479 "RANLIB=$(RANLIB)" \
1480 "LOADLIBES=$(LOADLIBES)" \
1481 "LDFLAGS=$(LDFLAGS)" \
1482 "BISON=$(BISON)" \
1483 "MAKEINFO=$(MAKEINFO)" \
1484 install) ; \
1485 else \
1486 true ; \
1487 fi
23e3e7f9 1488
ba8abfce
JG
1489### libg++
1490.PHONY: all-libg++ just-libg++
4cc027e1
PB
1491all-libg++: just-gcc just-libg++
1492# NOTE! We have added GXX= and XTRAFLAGS to the $(MAKE) line!!!
1493# Do not clone this one.
1494just-libg++: force
ba8abfce 1495 if [ -d $(unsubdir)/libg++ ] ; then \
ba8abfce
JG
1496 (cd $(unsubdir)/libg++$(subdir); \
1497 $(MAKE) \
4cc027e1
PB
1498 GXX=`cd $(unsubdir)/..$(subdir); pwd`"/gcc/gcc -B"`cd $(unsubdir)/..$(subdir);pwd`"/gcc/" \
1499 "XTRAFLAGS=-I"`cd $(unsubdir)/..$(subdir); pwd`/gcc/include\
ba8abfce
JG
1500 "prefix=$(prefix)" \
1501 "datadir=$(datadir)" \
1502 "mandir=$(mandir)" \
1503 "against=$(against)" \
1504 "AR=$(AR)" \
1505 "AR_FLAGS=$(AR_FLAGS)" \
1506 "CC=$(CC)" \
1507 "RANLIB=$(RANLIB)" \
1508 "LOADLIBES=$(LOADLIBES)" \
1509 "LDFLAGS=$(LDFLAGS)" \
1510 "BISON=$(BISON)" \
1511 "MAKEINFO=$(MAKEINFO)" \
1512 all) ; \
1513 else \
1514 true ; \
1515 fi
1516
1517clean-libg++: force
1518 if [ -d $(unsubdir)/libg++ ] ; then \
1519 (cd $(unsubdir)/libg++$(subdir); \
1520 $(MAKE) \
1521 "prefix=$(prefix)" \
1522 "datadir=$(datadir)" \
1523 "mandir=$(mandir)" \
1524 "against=$(against)" \
1525 "AR=$(AR)" \
1526 "AR_FLAGS=$(AR_FLAGS)" \
1527 "CC=$(CC)" \
1528 "RANLIB=$(RANLIB)" \
1529 "LOADLIBES=$(LOADLIBES)" \
1530 "LDFLAGS=$(LDFLAGS)" \
1531 "BISON=$(BISON)" \
1532 "MAKEINFO=$(MAKEINFO)" \
1533 clean) ; \
1534 else \
1535 true ; \
1536 fi
1537
1538install-libg++: force
1539 if [ -d $(unsubdir)/libg++ ] ; then \
1540 (cd $(unsubdir)/libg++$(subdir); \
1541 $(MAKE) \
1542 "prefix=$(prefix)" \
1543 "datadir=$(datadir)" \
1544 "mandir=$(mandir)" \
1545 "against=$(against)" \
1546 "AR=$(AR)" \
1547 "AR_FLAGS=$(AR_FLAGS)" \
1548 "CC=$(CC)" \
1549 "RANLIB=$(RANLIB)" \
1550 "LOADLIBES=$(LOADLIBES)" \
1551 "LDFLAGS=$(LDFLAGS)" \
1552 "BISON=$(BISON)" \
1553 "MAKEINFO=$(MAKEINFO)" \
1554 install) ; \
1555 else \
1556 true ; \
1557 fi
23e3e7f9 1558
4d714963 1559### other supporting targets
a0f47eb7
SC
1560# this is a bad hack.
1561all.xclib: all.normal
1562 if [ -d clib ] ; then \
1563 (cd clib ; $(MAKE)) ; \
1564 fi
1565
3c81fef5 1566subdir_do: force
a01bf1fb 1567 for i in $(DODIRS); do \
2c55824f
RP
1568 if [ -f $(unsubdir)/$$i/localenv ] ; then \
1569 if (cd $(unsubdir)/$$i$(subdir); \
a0f47eb7
SC
1570 $(MAKE) \
1571 "against=$(against)" \
b772d75e
RP
1572 "BISON=$(BISON)" \
1573 "MAKEINFO=$(MAKEINFO)" \
1574 $(DO)) ; then true ; \
a0f47eb7 1575 else exit 1 ; fi ; \
2c55824f
RP
1576 else if [ -d $(unsubdir)/$$i ] ; then \
1577 if (cd $(unsubdir)/$$i$(subdir); \
a01bf1fb
RP
1578 $(MAKE) \
1579 "against=$(against)" \
1580 "AR=$(AR)" \
1581 "AR_FLAGS=$(AR_FLAGS)" \
4d714963 1582 "CC=$(CC)" \
2645fb0c 1583 "RANLIB=$(RANLIB)" \
905bb120
RP
1584 "LOADLIBES=$(LOADLIBES)" \
1585 "LDFLAGS=$(LDFLAGS)" \
b772d75e
RP
1586 "BISON=$(BISON)" \
1587 "MAKEINFO=$(MAKEINFO)" \
1588 $(DO)) ; then true ; \
a01bf1fb
RP
1589 else exit 1 ; fi ; \
1590 else true ; fi ; \
a0f47eb7 1591 fi ; \
a01bf1fb 1592 done
eb02fd64 1593
4d714963
RP
1594bootstrap:
1595 $(MAKE) all info
2b34da49 1596 $(MAKE) stage1
6a3958b2
RP
1597 $(MAKE) pass "stagepass=stage1"
1598 $(MAKE) stage2
1599 $(MAKE) pass "stagepass=stage2"
a01bf1fb 1600 $(MAKE) comparison
6a3958b2 1601
4d714963 1602bootstrap2:
6a3958b2
RP
1603 $(MAKE) pass "stagepass=stage1"
1604 $(MAKE) stage2
1605 $(MAKE) pass "stagepass=stage2"
a01bf1fb 1606 $(MAKE) comparison
6a3958b2 1607
4d714963 1608bootstrap3:
6a3958b2 1609 $(MAKE) pass "stagepass=stage2"
a01bf1fb 1610 $(MAKE) comparison
6a3958b2 1611
4d714963 1612pass:
517d18b2 1613 cp $(srcdir)/gcc/gstdarg.h $(unsubdir)/gas$(subdir)/stdarg.h
4d714963 1614 $(MAKE) subdir_do "DO=all info" "DODIRS=$(SUBDIRS)" \
2c55824f 1615 "CC=`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/gcc \
4d714963 1616 -O $(GCCVERBOSE) -I`pwd`/$(unsubdir)/gcc$(subdir)/include \
2c55824f
RP
1617 -B`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/ \
1618 -B`pwd`/$(unsubdir)/gas$(subdir)/$(stagepass)/ \
1619 -B`pwd`/$(unsubdir)/ld$(subdir)/$(stagepass)/" \
a297b8ce 1620 "AR=`pwd`/$(unsubdir)/binutils$(subdir)/$(stagepass)/ar" \
30189626 1621 "LD=`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/gcc $(GCCVERBOSE)" \
2c55824f
RP
1622 "RANLIB=`pwd`/$(unsubdir)/binutils$(subdir)/$(stagepass)/ranlib" \
1623 "LOADLIBES=`pwd`/$(unsubdir)/gnulib$(subdir)/$(stagepass)/gnulib.a /lib/libc.a" \
6a3958b2 1624 "LDFLAGS=-nostdlib /lib/crt0.o \
2c55824f
RP
1625 -L`pwd`/$(unsubdir)/gnulib$(subdir)/$(stagepass)/ \
1626 -B`pwd`/$(unsubdir)/ld$(subdir)/$(stagepass)/"
2b34da49 1627
eb02fd64 1628
4d714963 1629stage1:
3c81fef5 1630 $(MAKE) subdir_do DO=stage1 "DODIRS=$(SUBDIRS)"
eb02fd64 1631
4d714963 1632stage2:
3c81fef5 1633 $(MAKE) subdir_do DO=stage2 "DODIRS=$(SUBDIRS)"
eb02fd64 1634
4d714963 1635stage3:
3c81fef5 1636 $(MAKE) subdir_do DO=stage3 "DODIRS=$(SUBDIRS)"
eb02fd64 1637
4d714963 1638stage4:
3c81fef5 1639 $(MAKE) subdir_do DO=stage4 "DODIRS=$(SUBDIRS)"
eb02fd64 1640
a01bf1fb
RP
1641against=stage2
1642
1643comparison:; $(MAKE) subdir_do DO=comparison against=$(against) "DODIRS=$(SUBDIRS)"
1644
3c81fef5
RP
1645de-stage1:; $(MAKE) subdir_do DO=de-stage1 "DODIRS=$(SUBDIRS)"
1646de-stage2:; $(MAKE) subdir_do DO=de-stage2 "DODIRS=$(SUBDIRS)"
1647de-stage3:; $(MAKE) subdir_do DO=de-stage3 "DODIRS=$(SUBDIRS)"
1648de-stage4:; $(MAKE) subdir_do DO=de-stage4 "DODIRS=$(SUBDIRS)"
6a3958b2 1649
abc52b80
JG
1650# The "else true" stuff is for Ultrix; the shell returns the exit code
1651# of the "if" command, if no commands are run in the "then" or "else" part,
1652# causing Make to quit.
4c27527f
RP
1653
1654MAKEDIRS= \
4d714963
RP
1655 $(prefix) \
1656 $(bindir) \
1657 $(libdir) \
1658 $(includedir) \
1659 $(datadir) \
1660 $(docdir) \
1661 $(mandir) \
1662 $(man1dir) \
1663 $(man5dir)
1664
1665# $(man2dir) \
1666# $(man3dir) \
1667# $(man4dir) \
1668# $(man6dir) \
1669# $(man7dir) \
1670# $(man8dir)
4c27527f 1671
a297b8ce 1672install-dirs: force
4c27527f 1673 for i in $(MAKEDIRS) ; do \
cd49a4dc 1674 echo Making $$i... ; \
4d714963 1675 if [ -d $$i ] ; then true ; else mkdir $$i || exit 1 ; fi ; \
4c27527f 1676 done
0ec776a5 1677
c5f94070 1678MAKEINFODIRS= \
4d714963
RP
1679 $(prefix) \
1680 $(infodir)
c5f94070
RP
1681
1682install-info-dirs: force
9a9e8e7f
RP
1683 if [ -d $(prefix) ] ; then true ; else mkdir $(prefix) ; fi
1684 if [ -d $(datadir) ] ; then true ; else mkdir $(datadir) ; fi
1685 if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
c5f94070 1686
6b7e5998 1687dir.info: force
c466cfab
RP
1688 $(srcdir)/texinfo/gen-info-dir $(infodir) > dir.info.new
1689 mv -f dir.info.new dir.info
6b7e5998 1690
eb02fd64
RP
1691etags tags: TAGS
1692
1693TAGS: FORCE
1694 etags `$(MAKE) ls`
1695
1696ls:
1697 @echo Makefile
1698 @for i in $(SUBDIRS); \
1699 do \
1700 (cd $$i; \
1701 pwd=`pwd`; \
1702 wd=`basename $$pwd`; \
1703 for j in `$(MAKE) ls`; \
1704 do \
1705 echo $$wd/$$j; \
1706 done) \
1707 done
1708
3c81fef5 1709force:
eb02fd64
RP
1710
1711# with the gnu make, this is done automatically.
1712
f1eb48b6 1713Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
a26878d1 1714 $(SHELL) ./config.status
eb02fd64 1715
11954bf1
JG
1716#
1717# Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
1718
23e3e7f9 1719DEVO_SUPPORT= README cfg-paper.texi Makefile.in configure configure.in \
1a7cac26 1720 config.sub config configure.man
a3a063a9 1721GDB_SUPPORT_DIRS= bfd include libiberty readline glob
abc52b80 1722GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS) texinfo/fsf/texinfo.tex
11954bf1 1723
abc52b80 1724setup-dirs: force_update
11954bf1
JG
1725 ./configure sun4
1726 make clean
1727 ./configure -rm sun4
905bb120 1728 chmod og=u `find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
abc52b80
JG
1729
1730bfd.ilrt.tar.Z: setup-dirs
11954bf1 1731 rm -f bfd.ilrt.tar.Z
abc52b80 1732 tar cf - $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) \
11954bf1
JG
1733 | compress -v >bfd.ilrt.tar.Z
1734
abc52b80
JG
1735gdb.tar.Z: setup-dirs
1736 (cd gdb; $(MAKE) -f Makefile.in make-proto-gdb.dir)
1737 $(MAKE) $(MFLAGS) -f Makefile.in make-gdb.tar.Z
1738
1739make-gdb.tar.Z: $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS) gdb texinfo/fsf/texinfo.tex
1740 rm -rf proto-toplev; mkdir proto-toplev
1741 ln -s ../gdb/proto-gdb.dir proto-toplev/gdb
1742 (cd proto-toplev; for i in $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS); do \
1743 ln -s ../$$i . ; \
1744 done)
a3a063a9
JG
1745 # Take out texinfo from configurable dirs
1746 rm proto-toplev/configure.in
1747 sed '/^configdirs=/s/texinfo //' <configure.in >proto-toplev/configure.in
4d714963
RP
1748 # Take out glob from buildable dirs
1749 rm proto-toplev/Makefile.in
1750 sed '/^SUBDIRS =/s/glob //' <Makefile.in >proto-toplev/Makefile.in
4cc027e1
PB
1751 # Take out texinfo from buildable dirs
1752 cp proto-toplev/Makefile.in temp.$$
1753 sed '/^all\.normal: /s/all-texinfo //' <temp.$$ >temp1.$$
1754 sed '/^clean: /s/clean-texinfo //' <temp1.$$ >temp.$$
1755 sed '/^install\.all: /s/install-texinfo //' <temp.$$ >proto-toplev/Makefile.in
1756 rm temp.$$ temp1.$$
abc52b80
JG
1757 mkdir proto-toplev/texinfo
1758 mkdir proto-toplev/texinfo/fsf
1759 ln -s ../../../texinfo/fsf/texinfo.tex proto-toplev/texinfo/fsf/
905bb120 1760 chmod og=u `find proto-toplev -print`
abc52b80
JG
1761 (VER=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
1762 echo "==> Making gdb-$$VER.tar.Z"; \
1763 ln -s proto-toplev gdb-$$VER; \
1764 tar cfh - gdb-$$VER \
1765 | compress -v >gdb-$$VER.tar.Z)
1766
11954bf1
JG
1767force_update:
1768
0ec776a5
SC
1769nothing:
1770
eb02fd64 1771# end of Makefile.in
This page took 0.128167 seconds and 4 git commands to generate.