Format inner print loop according to emacs. Code changes will follow
[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
4d714963
RP
48AR_FLAGS = qv
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 ; \
2bc9434c 53 else echo yacc ; 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\\`)\`
a3a063a9 61SUBDIRS = libiberty glob readline bfd gdb binutils ld gas gcc 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
4d714963 70\f
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
8f861f08 78info: configure.info doc.info
4d714963 79 $(MAKE) subdir_do DO=info "DODIRS=$(SUBDIRS)"
c5f94070 80
8f861f08
RP
81configure.info: configure.texi
82 $(MAKEINFO) -o configure.info $(srcdir)/configure.texi
83
9a9e8e7f
RP
84doc.info: doc.texi
85 $(MAKEINFO) -o doc.info $(srcdir)/doc.texi
86
87install-info: install-info-dirs force
c5f94070 88 $(MAKE) subdir_do DO=install-info "DODIRS=$(SUBDIRS)"
9a9e8e7f
RP
89 $(MAKE) dir.info install-dir.info
90
91install-dir.info:
92 $(INSTALL_DATA) dir.info $(infodir)/dir.info
4d714963
RP
93
94# clib prms
bb07ee3e 95all.normal: all-texinfo all-bison all-byacc all-ld all-gnulib all-gdb all-make \
4d714963 96 all-cvs all-emacs all-ispell
b26ff9d8 97all.cross: all-bison all-ld all-gnulib all-gdb
4d714963
RP
98# $(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS) $(OTHERS)"
99
100clean: clean-libiberty clean-texinfo clean-bfd clean-binutils clean-bison \
101 clean-byacc clean-ld clean-gas clean-gcc clean-gnulib clean-readline \
102 clean-glob clean-gdb clean-make clean-diff clean-grep clean-rcs \
65fd9a4d 103 clean-gdbm clean-cvs clean-emacs clean-ispell
4d714963
RP
104 rm -rf *.a TEMP errs core *.o *~ \#* TAGS *.E
105
b26ff9d8 106install: $(INSTALL_TARGET)
8f861f08 107 $(INSTALL_DATA) configure.man $(man1dir)/configure.1
b26ff9d8
RP
108
109install.all: install-dirs install-libiberty install-texinfo install-binutils install-bison \
bb07ee3e 110 install-byacc install-ld install-gas install-gcc install-gnulib \
4d714963
RP
111 install-readline install-glob install-gdb install-make install-cvs \
112 install-emacs install-ispell
b26ff9d8
RP
113install.cross: install-dirs install-libiberty install-binutils install-bison \
114 install-byacc install-ld install-gas install-gnulib \
115 install-readline install-glob install-gdb
4d714963
RP
116\f
117### libiberty
118.PHONY: all-libiberty just-libiberty
119all-libiberty: just-libiberty
120just-libiberty: force
b26ff9d8
RP
121 if [ -d $(unsubdir)/libiberty ] ; then \
122 (cd $(unsubdir)/libiberty$(subdir); \
4d714963
RP
123 $(MAKE) \
124 "against=$(against)" \
125 "AR=$(AR)" \
126 "AR_FLAGS=$(AR_FLAGS)" \
127 "CC=$(CC)" \
128 "RANLIB=$(RANLIB)" \
129 "LOADLIBES=$(LOADLIBES)" \
130 "LDFLAGS=$(LDFLAGS)" \
131 "BISON=$(BISON)" \
132 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
133 all) ; \
134 else \
135 true ; \
136 fi
4d714963
RP
137
138clean-libiberty: force
b26ff9d8
RP
139 if [ -d $(unsubdir)/libiberty ] ; then \
140 (cd $(unsubdir)/libiberty$(subdir); \
4d714963
RP
141 $(MAKE) \
142 "against=$(against)" \
143 "AR=$(AR)" \
144 "AR_FLAGS=$(AR_FLAGS)" \
145 "CC=$(CC)" \
146 "RANLIB=$(RANLIB)" \
147 "LOADLIBES=$(LOADLIBES)" \
148 "LDFLAGS=$(LDFLAGS)" \
149 "BISON=$(BISON)" \
150 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
151 clean) ; \
152 else \
153 true ; \
154 fi
4d714963
RP
155
156install-libiberty: force
b26ff9d8
RP
157 if [ -d $(unsubdir)/libiberty ] ; then \
158 (cd $(unsubdir)/libiberty$(subdir); \
4d714963
RP
159 $(MAKE) \
160 "against=$(against)" \
161 "AR=$(AR)" \
162 "AR_FLAGS=$(AR_FLAGS)" \
163 "CC=$(CC)" \
164 "RANLIB=$(RANLIB)" \
165 "LOADLIBES=$(LOADLIBES)" \
166 "LDFLAGS=$(LDFLAGS)" \
167 "BISON=$(BISON)" \
168 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
169 install) ; \
170 else \
171 true ; \
172 fi
4d714963
RP
173\f
174### texinfo
175.PHONY: all-texinfo just-texinfo
176all-texinfo: just-texinfo
177just-texinfo: just-libiberty force
b26ff9d8
RP
178 if [ -d $(unsubdir)/texinfo ] ; then \
179 (cd $(unsubdir)/texinfo$(subdir); \
4d714963
RP
180 $(MAKE) \
181 "against=$(against)" \
182 "AR=$(AR)" \
183 "AR_FLAGS=$(AR_FLAGS)" \
184 "CC=$(CC)" \
185 "RANLIB=$(RANLIB)" \
186 "LOADLIBES=$(LOADLIBES)" \
187 "LDFLAGS=$(LDFLAGS)" \
188 "BISON=$(BISON)" \
189 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
190 all) ; \
191 else \
192 true ; \
193 fi
4d714963
RP
194
195clean-texinfo: force
b26ff9d8
RP
196 if [ -d $(unsubdir)/texinfo ] ; then \
197 (cd $(unsubdir)/texinfo$(subdir); \
4d714963
RP
198 $(MAKE) \
199 "against=$(against)" \
200 "AR=$(AR)" \
201 "AR_FLAGS=$(AR_FLAGS)" \
202 "CC=$(CC)" \
203 "RANLIB=$(RANLIB)" \
204 "LOADLIBES=$(LOADLIBES)" \
205 "LDFLAGS=$(LDFLAGS)" \
206 "BISON=$(BISON)" \
207 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
208 clean) ; \
209 else \
210 true ; \
211 fi
4d714963
RP
212
213install-texinfo: force
b26ff9d8
RP
214 if [ -d $(unsubdir)/texinfo ] ; then \
215 (cd $(unsubdir)/texinfo$(subdir); \
4d714963
RP
216 $(MAKE) \
217 "against=$(against)" \
218 "AR=$(AR)" \
219 "AR_FLAGS=$(AR_FLAGS)" \
220 "CC=$(CC)" \
221 "RANLIB=$(RANLIB)" \
222 "LOADLIBES=$(LOADLIBES)" \
223 "LDFLAGS=$(LDFLAGS)" \
224 "BISON=$(BISON)" \
225 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
226 install) ; \
227 else \
228 true ; \
229 fi
4d714963
RP
230\f
231### bfd
232.PHONY: all-bfd just-bfd
233all-bfd: just-bfd
234just-bfd: force
b26ff9d8
RP
235 if [ -d $(unsubdir)/bfd ] ; then \
236 (cd $(unsubdir)/bfd$(subdir); \
4d714963
RP
237 $(MAKE) \
238 "against=$(against)" \
239 "AR=$(AR)" \
240 "AR_FLAGS=$(AR_FLAGS)" \
241 "CC=$(CC)" \
242 "RANLIB=$(RANLIB)" \
243 "LOADLIBES=$(LOADLIBES)" \
244 "LDFLAGS=$(LDFLAGS)" \
245 "BISON=$(BISON)" \
246 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
247 all) ; \
248 else \
249 true ; \
250 fi
4d714963
RP
251
252clean-bfd: force
b26ff9d8
RP
253 if [ -d $(unsubdir)/bfd ] ; then \
254 (cd $(unsubdir)/bfd$(subdir); \
4d714963
RP
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)" \
b26ff9d8
RP
265 clean) ; \
266 else \
267 true ; \
268 fi
4d714963
RP
269
270install-bfd: force
b26ff9d8
RP
271 if [ -d $(unsubdir)/bfd ] ; then \
272 (cd $(unsubdir)/bfd$(subdir); \
4d714963
RP
273 $(MAKE) \
274 "against=$(against)" \
275 "AR=$(AR)" \
276 "AR_FLAGS=$(AR_FLAGS)" \
277 "CC=$(CC)" \
278 "RANLIB=$(RANLIB)" \
279 "LOADLIBES=$(LOADLIBES)" \
280 "LDFLAGS=$(LDFLAGS)" \
281 "BISON=$(BISON)" \
282 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
283 install) ; \
284 else \
285 true ; \
286 fi
4d714963
RP
287\f
288### binutils
289.PHONY: all-binutils just-binutils
290all-binutils: just-binutils
291just-binutils: just-libiberty just-bfd force
b26ff9d8
RP
292 if [ -d $(unsubdir)/binutils ] ; then \
293 (cd $(unsubdir)/binutils$(subdir); \
4d714963
RP
294 $(MAKE) \
295 "against=$(against)" \
296 "AR=$(AR)" \
297 "AR_FLAGS=$(AR_FLAGS)" \
298 "CC=$(CC)" \
299 "RANLIB=$(RANLIB)" \
300 "LOADLIBES=$(LOADLIBES)" \
301 "LDFLAGS=$(LDFLAGS)" \
302 "BISON=$(BISON)" \
303 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
304 all) ; \
305 else \
306 true ; \
307 fi
4d714963
RP
308
309clean-binutils: force
b26ff9d8
RP
310 if [ -d $(unsubdir)/binutils ] ; then \
311 (cd $(unsubdir)/binutils$(subdir); \
4d714963
RP
312 $(MAKE) \
313 "against=$(against)" \
314 "AR=$(AR)" \
315 "AR_FLAGS=$(AR_FLAGS)" \
316 "CC=$(CC)" \
317 "RANLIB=$(RANLIB)" \
318 "LOADLIBES=$(LOADLIBES)" \
319 "LDFLAGS=$(LDFLAGS)" \
320 "BISON=$(BISON)" \
321 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
322 clean) ; \
323 else \
324 true ; \
325 fi
4d714963
RP
326
327install-binutils: force
b26ff9d8
RP
328 if [ -d $(unsubdir)/binutils ] ; then \
329 (cd $(unsubdir)/binutils$(subdir); \
4d714963
RP
330 $(MAKE) \
331 "against=$(against)" \
332 "AR=$(AR)" \
333 "AR_FLAGS=$(AR_FLAGS)" \
334 "CC=$(CC)" \
335 "RANLIB=$(RANLIB)" \
336 "LOADLIBES=$(LOADLIBES)" \
337 "LDFLAGS=$(LDFLAGS)" \
338 "BISON=$(BISON)" \
339 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
340 install) ; \
341 else \
342 true ; \
343 fi
4d714963
RP
344\f
345### byacc
346.PHONY: all-byacc just-byacc
347all-byacc: just-byacc
348just-byacc: force
b26ff9d8
RP
349 if [ -d $(unsubdir)/byacc ] ; then \
350 (cd $(unsubdir)/byacc$(subdir); \
4d714963
RP
351 $(MAKE) \
352 "against=$(against)" \
353 "AR=$(AR)" \
354 "AR_FLAGS=$(AR_FLAGS)" \
355 "CC=$(CC)" \
356 "RANLIB=$(RANLIB)" \
357 "LOADLIBES=$(LOADLIBES)" \
358 "LDFLAGS=$(LDFLAGS)" \
359 "BISON=$(BISON)" \
360 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
361 all) ; \
362 else \
363 true ; \
364 fi
4d714963
RP
365
366clean-byacc: force
b26ff9d8
RP
367 if [ -d $(unsubdir)/byacc ] ; then \
368 (cd $(unsubdir)/byacc$(subdir); \
4d714963
RP
369 $(MAKE) \
370 "against=$(against)" \
371 "AR=$(AR)" \
372 "AR_FLAGS=$(AR_FLAGS)" \
373 "CC=$(CC)" \
374 "RANLIB=$(RANLIB)" \
375 "LOADLIBES=$(LOADLIBES)" \
376 "LDFLAGS=$(LDFLAGS)" \
377 "BISON=$(BISON)" \
378 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
379 clean) ; \
380 else \
381 true ; \
382 fi
4d714963
RP
383
384install-byacc: force
b26ff9d8
RP
385 if [ -d $(unsubdir)/byacc ] ; then \
386 (cd $(unsubdir)/byacc$(subdir); \
4d714963
RP
387 $(MAKE) \
388 "against=$(against)" \
389 "AR=$(AR)" \
390 "AR_FLAGS=$(AR_FLAGS)" \
391 "CC=$(CC)" \
392 "RANLIB=$(RANLIB)" \
393 "LOADLIBES=$(LOADLIBES)" \
394 "LDFLAGS=$(LDFLAGS)" \
395 "BISON=$(BISON)" \
396 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
397 install) ; \
398 else \
399 true ; \
400 fi
4d714963
RP
401\f
402### bison
403.PHONY: all-bison just-bison
404all-bison: just-bison
405just-bison: just-libiberty force
b26ff9d8
RP
406 if [ -d $(unsubdir)/bison ] ; then \
407 (cd $(unsubdir)/bison$(subdir); \
4d714963
RP
408 $(MAKE) \
409 "against=$(against)" \
410 "AR=$(AR)" \
411 "AR_FLAGS=$(AR_FLAGS)" \
412 "CC=$(CC)" \
413 "RANLIB=$(RANLIB)" \
414 "LOADLIBES=$(LOADLIBES)" \
415 "LDFLAGS=$(LDFLAGS)" \
416 "BISON=$(BISON)" \
417 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
418 all) ; \
419 else \
420 true ; \
421 fi
4d714963
RP
422
423clean-bison: force
b26ff9d8
RP
424 if [ -d $(unsubdir)/bison ] ; then \
425 (cd $(unsubdir)/bison$(subdir); \
4d714963
RP
426 $(MAKE) \
427 "against=$(against)" \
428 "AR=$(AR)" \
429 "AR_FLAGS=$(AR_FLAGS)" \
430 "CC=$(CC)" \
431 "RANLIB=$(RANLIB)" \
432 "LOADLIBES=$(LOADLIBES)" \
433 "LDFLAGS=$(LDFLAGS)" \
434 "BISON=$(BISON)" \
435 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
436 clean) ; \
437 else \
438 true ; \
439 fi
4d714963
RP
440
441install-bison: force
b26ff9d8
RP
442 if [ -d $(unsubdir)/bison ] ; then \
443 (cd $(unsubdir)/bison$(subdir); \
4d714963
RP
444 $(MAKE) \
445 "against=$(against)" \
446 "AR=$(AR)" \
447 "AR_FLAGS=$(AR_FLAGS)" \
448 "CC=$(CC)" \
449 "RANLIB=$(RANLIB)" \
450 "LOADLIBES=$(LOADLIBES)" \
451 "LDFLAGS=$(LDFLAGS)" \
452 "BISON=$(BISON)" \
453 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
454 install) ; \
455 else \
456 true ; \
457 fi
4d714963
RP
458\f
459### gcc
460.PHONY: all-gcc just-gcc
461all-gcc: just-gcc
e9712bee 462just-gcc: just-libiberty just-bison force
b26ff9d8
RP
463 if [ -d $(unsubdir)/gcc ] ; then \
464 (cd $(unsubdir)/gcc$(subdir); \
4d714963
RP
465 $(MAKE) \
466 "against=$(against)" \
467 "AR=$(AR)" \
468 "AR_FLAGS=$(AR_FLAGS)" \
469 "CC=$(CC)" \
470 "RANLIB=$(RANLIB)" \
471 "LOADLIBES=$(LOADLIBES)" \
472 "LDFLAGS=$(LDFLAGS)" \
473 "BISON=$(BISON)" \
474 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
475 all) ; \
476 else \
477 true ; \
478 fi
4d714963
RP
479
480clean-gcc: force
b26ff9d8
RP
481 if [ -d $(unsubdir)/gcc ] ; then \
482 (cd $(unsubdir)/gcc$(subdir); \
4d714963
RP
483 $(MAKE) \
484 "against=$(against)" \
485 "AR=$(AR)" \
486 "AR_FLAGS=$(AR_FLAGS)" \
487 "CC=$(CC)" \
488 "RANLIB=$(RANLIB)" \
489 "LOADLIBES=$(LOADLIBES)" \
490 "LDFLAGS=$(LDFLAGS)" \
491 "BISON=$(BISON)" \
492 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
493 clean) ; \
494 else \
495 true ; \
496 fi
4d714963
RP
497
498install-gcc:
b26ff9d8
RP
499 if [ -d $(unsubdir)/gcc ] ; then \
500 (cd $(unsubdir)/gcc$(subdir); \
4d714963
RP
501 $(MAKE) \
502 "against=$(against)" \
503 "AR=$(AR)" \
504 "AR_FLAGS=$(AR_FLAGS)" \
505 "CC=$(CC)" \
506 "RANLIB=$(RANLIB)" \
507 "LOADLIBES=$(LOADLIBES)" \
508 "LDFLAGS=$(LDFLAGS)" \
509 "BISON=$(BISON)" \
510 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
511 install) ; \
512 else \
513 true ; \
514 fi
4d714963
RP
515\f
516### readline
517.PHONY: all-readline just-readline
518all-readline: just-readline
519just-readline: force
b26ff9d8
RP
520 if [ -d $(unsubdir)/readline ] ; then \
521 (cd $(unsubdir)/readline$(subdir); \
4d714963
RP
522 $(MAKE) \
523 "against=$(against)" \
524 "AR=$(AR)" \
525 "AR_FLAGS=$(AR_FLAGS)" \
526 "CC=$(CC)" \
527 "RANLIB=$(RANLIB)" \
528 "LOADLIBES=$(LOADLIBES)" \
529 "LDFLAGS=$(LDFLAGS)" \
530 "BISON=$(BISON)" \
531 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
532 all) ; \
533 else \
534 true ; \
535 fi
4d714963
RP
536
537clean-readline: force
b26ff9d8
RP
538 if [ -d $(unsubdir)/readline ] ; then \
539 (cd $(unsubdir)/readline$(subdir); \
4d714963
RP
540 $(MAKE) \
541 "against=$(against)" \
542 "AR=$(AR)" \
543 "AR_FLAGS=$(AR_FLAGS)" \
544 "CC=$(CC)" \
545 "RANLIB=$(RANLIB)" \
546 "LOADLIBES=$(LOADLIBES)" \
547 "LDFLAGS=$(LDFLAGS)" \
548 "BISON=$(BISON)" \
549 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
550 clean) ; \
551 else \
552 true ; \
553 fi
4d714963
RP
554
555install-readline: force
b26ff9d8
RP
556 if [ -d $(unsubdir)/readline ] ; then \
557 (cd $(unsubdir)/readline$(subdir); \
4d714963
RP
558 $(MAKE) \
559 "against=$(against)" \
560 "AR=$(AR)" \
561 "AR_FLAGS=$(AR_FLAGS)" \
562 "CC=$(CC)" \
563 "RANLIB=$(RANLIB)" \
564 "LOADLIBES=$(LOADLIBES)" \
565 "LDFLAGS=$(LDFLAGS)" \
566 "BISON=$(BISON)" \
567 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
568 install) ; \
569 else \
570 true ; \
571 fi
4d714963
RP
572\f
573### glob
574.PHONY: all-glob just-glob
575all-glob: just-glob
576just-glob: force
b26ff9d8
RP
577 if [ -d $(unsubdir)/glob ] ; then \
578 (cd $(unsubdir)/glob$(subdir); \
4d714963
RP
579 $(MAKE) \
580 "against=$(against)" \
581 "AR=$(AR)" \
582 "AR_FLAGS=$(AR_FLAGS)" \
583 "CC=$(CC)" \
584 "RANLIB=$(RANLIB)" \
585 "LOADLIBES=$(LOADLIBES)" \
586 "LDFLAGS=$(LDFLAGS)" \
587 "BISON=$(BISON)" \
588 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
589 all) ; \
590 else \
591 true ; \
592 fi
4d714963
RP
593
594clean-glob: force
b26ff9d8
RP
595 if [ -d $(unsubdir)/glob ] ; then \
596 (cd $(unsubdir)/glob$(subdir); \
4d714963
RP
597 $(MAKE) \
598 "against=$(against)" \
599 "AR=$(AR)" \
600 "AR_FLAGS=$(AR_FLAGS)" \
601 "CC=$(CC)" \
602 "RANLIB=$(RANLIB)" \
603 "LOADLIBES=$(LOADLIBES)" \
604 "LDFLAGS=$(LDFLAGS)" \
605 "BISON=$(BISON)" \
606 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
607 clean) ; \
608 else \
609 true ; \
610 fi
4d714963
RP
611
612install-glob: force
b26ff9d8
RP
613 if [ -d $(unsubdir)/glob ] ; then \
614 (cd $(unsubdir)/glob$(subdir); \
4d714963
RP
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)" \
b26ff9d8
RP
625 install) ; \
626 else \
627 true ; \
628 fi
4d714963
RP
629\f
630### gas
631.PHONY: all-gas just-gas
632all-gas: just-gas
633just-gas: just-libiberty just-bfd force
b26ff9d8
RP
634 if [ -d $(unsubdir)/gas ] ; then \
635 (cd $(unsubdir)/gas$(subdir); \
4d714963
RP
636 $(MAKE) \
637 "against=$(against)" \
638 "AR=$(AR)" \
639 "AR_FLAGS=$(AR_FLAGS)" \
640 "CC=$(CC)" \
641 "RANLIB=$(RANLIB)" \
642 "LOADLIBES=$(LOADLIBES)" \
643 "LDFLAGS=$(LDFLAGS)" \
644 "BISON=$(BISON)" \
645 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
646 all) ; \
647 else \
648 true ; \
649 fi
4d714963
RP
650
651clean-gas: force
b26ff9d8
RP
652 if [ -d $(unsubdir)/gas ] ; then \
653 (cd $(unsubdir)/gas$(subdir); \
4d714963
RP
654 $(MAKE) \
655 "against=$(against)" \
656 "AR=$(AR)" \
657 "AR_FLAGS=$(AR_FLAGS)" \
658 "CC=$(CC)" \
659 "RANLIB=$(RANLIB)" \
660 "LOADLIBES=$(LOADLIBES)" \
661 "LDFLAGS=$(LDFLAGS)" \
662 "BISON=$(BISON)" \
663 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
664 clean) ; \
665 else \
666 true ; \
667 fi
4d714963
RP
668
669install-gas: force
b26ff9d8
RP
670 if [ -d $(unsubdir)/gas ] ; then \
671 (cd $(unsubdir)/gas$(subdir); \
4d714963
RP
672 $(MAKE) \
673 "against=$(against)" \
674 "AR=$(AR)" \
675 "AR_FLAGS=$(AR_FLAGS)" \
676 "CC=$(CC)" \
677 "RANLIB=$(RANLIB)" \
678 "LOADLIBES=$(LOADLIBES)" \
679 "LDFLAGS=$(LDFLAGS)" \
680 "BISON=$(BISON)" \
681 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
682 install) ; \
683 else \
684 true ; \
685 fi
4d714963
RP
686\f
687### ld
688.PHONY: all-ld just-ld
689all-ld: just-ld
e9712bee 690just-ld: just-libiberty just-bfd just-bison force
b26ff9d8
RP
691 if [ -d $(unsubdir)/ld ] ; then \
692 (cd $(unsubdir)/ld$(subdir); \
4d714963
RP
693 $(MAKE) \
694 "against=$(against)" \
695 "AR=$(AR)" \
696 "AR_FLAGS=$(AR_FLAGS)" \
697 "CC=$(CC)" \
698 "RANLIB=$(RANLIB)" \
699 "LOADLIBES=$(LOADLIBES)" \
700 "LDFLAGS=$(LDFLAGS)" \
701 "BISON=$(BISON)" \
702 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
703 all) ; \
704 else \
705 true ; \
706 fi
a0f47eb7 707
4d714963 708clean-ld: force
b26ff9d8
RP
709 if [ -d $(unsubdir)/ld ] ; then \
710 (cd $(unsubdir)/ld$(subdir); \
4d714963
RP
711 $(MAKE) \
712 "against=$(against)" \
713 "AR=$(AR)" \
714 "AR_FLAGS=$(AR_FLAGS)" \
715 "CC=$(CC)" \
716 "RANLIB=$(RANLIB)" \
717 "LOADLIBES=$(LOADLIBES)" \
718 "LDFLAGS=$(LDFLAGS)" \
719 "BISON=$(BISON)" \
720 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
721 clean) ; \
722 else \
723 true ; \
724 fi
6a3958b2 725
4d714963 726install-ld: force
b26ff9d8
RP
727 if [ -d $(unsubdir)/ld ] ; then \
728 (cd $(unsubdir)/ld$(subdir); \
4d714963
RP
729 $(MAKE) \
730 "against=$(against)" \
731 "AR=$(AR)" \
732 "AR_FLAGS=$(AR_FLAGS)" \
733 "CC=$(CC)" \
734 "RANLIB=$(RANLIB)" \
735 "LOADLIBES=$(LOADLIBES)" \
736 "LDFLAGS=$(LDFLAGS)" \
737 "BISON=$(BISON)" \
738 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
739 install) ; \
740 else \
741 true ; \
742 fi
4d714963
RP
743\f
744### gnulib
745.PHONY: all-gnulib just-gnulib
746all-gnulib: just-gnulib
747just-gnulib: all-gcc all-gas all-binutils force
b26ff9d8
RP
748 if [ -d $(unsubdir)/gnulib ] ; then \
749 (cd $(unsubdir)/gnulib$(subdir); \
4d714963
RP
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)" \
b26ff9d8
RP
760 all) ; \
761 else \
762 true ; \
763 fi
c5f94070 764
4d714963 765clean-gnulib: force
b26ff9d8
RP
766 if [ -d $(unsubdir)/gnulib ] ; then \
767 (cd $(unsubdir)/gnulib$(subdir); \
4d714963
RP
768 $(MAKE) \
769 "against=$(against)" \
770 "AR=$(AR)" \
771 "AR_FLAGS=$(AR_FLAGS)" \
772 "CC=$(CC)" \
773 "RANLIB=$(RANLIB)" \
774 "LOADLIBES=$(LOADLIBES)" \
775 "LDFLAGS=$(LDFLAGS)" \
776 "BISON=$(BISON)" \
777 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
778 clean) ; \
779 else \
780 true ; \
781 fi
4d714963
RP
782
783install-gnulib: force
b26ff9d8
RP
784 if [ -d $(unsubdir)/gnulib ] ; then \
785 (cd $(unsubdir)/gnulib$(subdir); \
4d714963
RP
786 $(MAKE) \
787 "against=$(against)" \
788 "AR=$(AR)" \
789 "AR_FLAGS=$(AR_FLAGS)" \
790 "CC=$(CC)" \
791 "RANLIB=$(RANLIB)" \
792 "LOADLIBES=$(LOADLIBES)" \
793 "LDFLAGS=$(LDFLAGS)" \
794 "BISON=$(BISON)" \
795 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
796 install) ; \
797 else \
798 true ; \
799 fi
4d714963
RP
800\f
801### gdb
802.PHONY: all-gdb just-gdb
803all-gdb: just-gdb
e9712bee 804just-gdb: just-bfd just-libiberty just-readline just-glob just-bison force
b26ff9d8
RP
805 if [ -d $(unsubdir)/gdb ] ; then \
806 (cd $(unsubdir)/gdb$(subdir); \
4d714963
RP
807 $(MAKE) \
808 "against=$(against)" \
809 "AR=$(AR)" \
810 "AR_FLAGS=$(AR_FLAGS)" \
811 "CC=$(CC)" \
812 "RANLIB=$(RANLIB)" \
813 "LOADLIBES=$(LOADLIBES)" \
814 "LDFLAGS=$(LDFLAGS)" \
815 "BISON=$(BISON)" \
816 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
817 all) ; \
818 else \
819 true ; \
820 fi
4d714963
RP
821
822clean-gdb: force
b26ff9d8
RP
823 if [ -d $(unsubdir)/gdb ] ; then \
824 (cd $(unsubdir)/gdb$(subdir); \
4d714963
RP
825 $(MAKE) \
826 "against=$(against)" \
827 "AR=$(AR)" \
828 "AR_FLAGS=$(AR_FLAGS)" \
829 "CC=$(CC)" \
830 "RANLIB=$(RANLIB)" \
831 "LOADLIBES=$(LOADLIBES)" \
832 "LDFLAGS=$(LDFLAGS)" \
833 "BISON=$(BISON)" \
834 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
835 clean) ; \
836 else \
837 true ; \
838 fi
4d714963
RP
839
840install-gdb: force
b26ff9d8
RP
841 if [ -d $(unsubdir)/gdb ] ; then \
842 (cd $(unsubdir)/gdb$(subdir); \
4d714963
RP
843 $(MAKE) \
844 "against=$(against)" \
845 "AR=$(AR)" \
846 "AR_FLAGS=$(AR_FLAGS)" \
847 "CC=$(CC)" \
848 "RANLIB=$(RANLIB)" \
849 "LOADLIBES=$(LOADLIBES)" \
850 "LDFLAGS=$(LDFLAGS)" \
851 "BISON=$(BISON)" \
852 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
853 install) ; \
854 else \
855 true ; \
856 fi
4d714963
RP
857\f
858### make
859.PHONY: all-make just-make
860all-make: just-make
861just-make: all-libiberty force
b26ff9d8
RP
862 if [ -d $(unsubdir)/make ] ; then \
863 (cd $(unsubdir)/make$(subdir); \
4d714963
RP
864 $(MAKE) \
865 "against=$(against)" \
866 "AR=$(AR)" \
867 "AR_FLAGS=$(AR_FLAGS)" \
868 "CC=$(CC)" \
869 "RANLIB=$(RANLIB)" \
870 "LOADLIBES=$(LOADLIBES)" \
871 "LDFLAGS=$(LDFLAGS)" \
872 "BISON=$(BISON)" \
873 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
874 all) ; \
875 else \
876 true ; \
877 fi
4d714963
RP
878
879clean-make: force
b26ff9d8
RP
880 if [ -d $(unsubdir)/make ] ; then \
881 (cd $(unsubdir)/make$(subdir); \
4d714963
RP
882 $(MAKE) \
883 "against=$(against)" \
884 "AR=$(AR)" \
885 "AR_FLAGS=$(AR_FLAGS)" \
886 "CC=$(CC)" \
887 "RANLIB=$(RANLIB)" \
888 "LOADLIBES=$(LOADLIBES)" \
889 "LDFLAGS=$(LDFLAGS)" \
890 "BISON=$(BISON)" \
891 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
892 clean) ; \
893 else \
894 true ; \
895 fi
4d714963
RP
896
897install-make: force
b26ff9d8
RP
898 if [ -d $(unsubdir)/make ] ; then \
899 (cd $(unsubdir)/make$(subdir); \
4d714963
RP
900 $(MAKE) \
901 "against=$(against)" \
902 "AR=$(AR)" \
903 "AR_FLAGS=$(AR_FLAGS)" \
904 "CC=$(CC)" \
905 "RANLIB=$(RANLIB)" \
906 "LOADLIBES=$(LOADLIBES)" \
907 "LDFLAGS=$(LDFLAGS)" \
908 "BISON=$(BISON)" \
909 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
910 install) ; \
911 else \
912 true ; \
913 fi
4d714963
RP
914\f
915### diff
916.PHONY: all-diff just-diff
917all-diff: just-diff
918just-diff: force
b26ff9d8
RP
919 if [ -d $(unsubdir)/diff ] ; then \
920 (cd $(unsubdir)/diff$(subdir); \
4d714963
RP
921 $(MAKE) \
922 "against=$(against)" \
923 "AR=$(AR)" \
924 "AR_FLAGS=$(AR_FLAGS)" \
925 "CC=$(CC)" \
926 "RANLIB=$(RANLIB)" \
927 "LOADLIBES=$(LOADLIBES)" \
928 "LDFLAGS=$(LDFLAGS)" \
929 "BISON=$(BISON)" \
930 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
931 all) ; \
932 else \
933 true ; \
934 fi
4d714963
RP
935
936clean-diff: force
b26ff9d8
RP
937 if [ -d $(unsubdir)/diff ] ; then \
938 (cd $(unsubdir)/diff$(subdir); \
4d714963
RP
939 $(MAKE) \
940 "against=$(against)" \
941 "AR=$(AR)" \
942 "AR_FLAGS=$(AR_FLAGS)" \
943 "CC=$(CC)" \
944 "RANLIB=$(RANLIB)" \
945 "LOADLIBES=$(LOADLIBES)" \
946 "LDFLAGS=$(LDFLAGS)" \
947 "BISON=$(BISON)" \
948 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
949 clean) ; \
950 else \
951 true ; \
952 fi
4d714963
RP
953
954install-diff: force
b26ff9d8
RP
955 if [ -d $(unsubdir)/diff ] ; then \
956 (cd $(unsubdir)/diff/$(subdir); \
4d714963
RP
957 $(MAKE) \
958 "against=$(against)" \
959 "AR=$(AR)" \
960 "AR_FLAGS=$(AR_FLAGS)" \
961 "CC=$(CC)" \
962 "RANLIB=$(RANLIB)" \
963 "LOADLIBES=$(LOADLIBES)" \
964 "LDFLAGS=$(LDFLAGS)" \
965 "BISON=$(BISON)" \
966 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
967 install) ; \
968 else \
969 true ; \
970 fi
4d714963
RP
971\f
972### grep
973.PHONY: all-grep just-grep
974all-grep: just-grep
975just-grep: force
b26ff9d8
RP
976 if [ -d $(unsubdir)/grep ] ; then \
977 (cd $(unsubdir)/grep$(subdir); \
4d714963
RP
978 $(MAKE) \
979 "against=$(against)" \
980 "AR=$(AR)" \
981 "AR_FLAGS=$(AR_FLAGS)" \
982 "CC=$(CC)" \
983 "RANLIB=$(RANLIB)" \
984 "LOADLIBES=$(LOADLIBES)" \
985 "LDFLAGS=$(LDFLAGS)" \
986 "BISON=$(BISON)" \
987 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
988 all) ; \
989 else \
990 true ; \
991 fi
4d714963
RP
992
993clean-grep: force
b26ff9d8
RP
994 if [ -d $(unsubdir)/grep ] ; then \
995 (cd $(unsubdir)/grep$(subdir); \
4d714963
RP
996 $(MAKE) \
997 "against=$(against)" \
998 "AR=$(AR)" \
999 "AR_FLAGS=$(AR_FLAGS)" \
1000 "CC=$(CC)" \
1001 "RANLIB=$(RANLIB)" \
1002 "LOADLIBES=$(LOADLIBES)" \
1003 "LDFLAGS=$(LDFLAGS)" \
1004 "BISON=$(BISON)" \
1005 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1006 clean) ; \
1007 else \
1008 true ; \
1009 fi
4d714963
RP
1010
1011install-grep: force
b26ff9d8
RP
1012 if [ -d $(unsubdir)/grep ] ; then \
1013 (cd $(unsubdir)/grep$(subdir); \
4d714963
RP
1014 $(MAKE) \
1015 "against=$(against)" \
1016 "AR=$(AR)" \
1017 "AR_FLAGS=$(AR_FLAGS)" \
1018 "CC=$(CC)" \
1019 "RANLIB=$(RANLIB)" \
1020 "LOADLIBES=$(LOADLIBES)" \
1021 "LDFLAGS=$(LDFLAGS)" \
1022 "BISON=$(BISON)" \
1023 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1024 install) ; \
1025 else \
1026 true ; \
1027 fi
4d714963
RP
1028\f
1029### rcs
1030.PHONY: all-rcs just-rcs
1031all-rcs: just-rcs
1032just-rcs: just-diff just-grep force
b26ff9d8
RP
1033 if [ -d $(unsubdir)/rcs ] ; then \
1034 (cd $(unsubdir)/rcs$(subdir); \
4d714963
RP
1035 $(MAKE) \
1036 "against=$(against)" \
1037 "AR=$(AR)" \
1038 "AR_FLAGS=$(AR_FLAGS)" \
1039 "CC=$(CC)" \
1040 "RANLIB=$(RANLIB)" \
1041 "LOADLIBES=$(LOADLIBES)" \
1042 "LDFLAGS=$(LDFLAGS)" \
1043 "BISON=$(BISON)" \
1044 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1045 all) ; \
1046 else \
1047 true ; \
1048 fi
4d714963
RP
1049
1050clean-rcs: force
b26ff9d8
RP
1051 if [ -d $(unsubdir)/rcs ] ; then \
1052 (cd $(unsubdir)/rcs$(subdir); \
4d714963
RP
1053 $(MAKE) \
1054 "against=$(against)" \
1055 "AR=$(AR)" \
1056 "AR_FLAGS=$(AR_FLAGS)" \
1057 "CC=$(CC)" \
1058 "RANLIB=$(RANLIB)" \
1059 "LOADLIBES=$(LOADLIBES)" \
1060 "LDFLAGS=$(LDFLAGS)" \
1061 "BISON=$(BISON)" \
1062 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1063 clean) ; \
1064 else \
1065 true ; \
1066 fi
4d714963
RP
1067
1068install-rcs: install-grep install-diff force
b26ff9d8
RP
1069 if [ -d $(unsubdir)/rcs ] ; then \
1070 (cd $(unsubdir)/rcs$(subdir); \
4d714963
RP
1071 $(MAKE) \
1072 "against=$(against)" \
1073 "AR=$(AR)" \
1074 "AR_FLAGS=$(AR_FLAGS)" \
1075 "CC=$(CC)" \
1076 "RANLIB=$(RANLIB)" \
1077 "LOADLIBES=$(LOADLIBES)" \
1078 "LDFLAGS=$(LDFLAGS)" \
1079 "BISON=$(BISON)" \
1080 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1081 install) ; \
1082 else \
1083 true ; \
1084 fi
4d714963
RP
1085\f
1086### gdbm
1087.PHONY: all-gdbm just-gdbm
1088all-gdbm: just-gdbm
1089just-gdbm: force
b26ff9d8
RP
1090 if [ -d $(unsubdir)/gdbm ] ; then \
1091 (cd $(unsubdir)/gdbm$(subdir); \
4d714963
RP
1092 $(MAKE) \
1093 "against=$(against)" \
1094 "AR=$(AR)" \
1095 "AR_FLAGS=$(AR_FLAGS)" \
1096 "CC=$(CC)" \
1097 "RANLIB=$(RANLIB)" \
1098 "LOADLIBES=$(LOADLIBES)" \
1099 "LDFLAGS=$(LDFLAGS)" \
1100 "BISON=$(BISON)" \
1101 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1102 all) ; \
1103 else \
1104 true ; \
1105 fi
4d714963
RP
1106
1107clean-gdbm: force
b26ff9d8
RP
1108 if [ -d $(unsubdir)/gdbm ] ; then \
1109 (cd $(unsubdir)/gdbm$(subdir); \
4d714963
RP
1110 $(MAKE) \
1111 "against=$(against)" \
1112 "AR=$(AR)" \
1113 "AR_FLAGS=$(AR_FLAGS)" \
1114 "CC=$(CC)" \
1115 "RANLIB=$(RANLIB)" \
1116 "LOADLIBES=$(LOADLIBES)" \
1117 "LDFLAGS=$(LDFLAGS)" \
1118 "BISON=$(BISON)" \
1119 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1120 clean) ; \
1121 else \
1122 true ; \
1123 fi
4d714963
RP
1124
1125install-gdbm: force
b26ff9d8
RP
1126 if [ -d $(unsubdir)/gdbm ] ; then \
1127 (cd $(unsubdir)/gdbm$(subdir); \
4d714963
RP
1128 $(MAKE) \
1129 "against=$(against)" \
1130 "AR=$(AR)" \
1131 "AR_FLAGS=$(AR_FLAGS)" \
1132 "CC=$(CC)" \
1133 "RANLIB=$(RANLIB)" \
1134 "LOADLIBES=$(LOADLIBES)" \
1135 "LDFLAGS=$(LDFLAGS)" \
1136 "BISON=$(BISON)" \
1137 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1138 install) ; \
1139 else \
1140 true ; \
1141 fi
4d714963
RP
1142\f
1143### cvs
1144.PHONY: all-cvs just-cvs
1145all-cvs: just-cvs just-rcs just-grep just-diff
1146just-cvs: just-gdbm force
b26ff9d8
RP
1147 if [ -d $(unsubdir)/cvs ] ; then \
1148 (cd $(unsubdir)/cvs$(subdir); \
4d714963
RP
1149 $(MAKE) \
1150 "against=$(against)" \
1151 "AR=$(AR)" \
1152 "AR_FLAGS=$(AR_FLAGS)" \
1153 "CC=$(CC)" \
1154 "RANLIB=$(RANLIB)" \
1155 "LOADLIBES=$(LOADLIBES)" \
1156 "LDFLAGS=$(LDFLAGS)" \
1157 "BISON=$(BISON)" \
1158 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1159 all) ; \
1160 else \
1161 true ; \
1162 fi
4d714963
RP
1163
1164clean-cvs: force
b26ff9d8
RP
1165 if [ -d $(unsubdir)/cvs ] ; then \
1166 (cd $(unsubdir)/cvs$(subdir); \
4d714963
RP
1167 $(MAKE) \
1168 "against=$(against)" \
1169 "AR=$(AR)" \
1170 "AR_FLAGS=$(AR_FLAGS)" \
1171 "CC=$(CC)" \
1172 "RANLIB=$(RANLIB)" \
1173 "LOADLIBES=$(LOADLIBES)" \
1174 "LDFLAGS=$(LDFLAGS)" \
1175 "BISON=$(BISON)" \
1176 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1177 clean) ; \
1178 else \
1179 true ; \
1180 fi
4d714963
RP
1181
1182install-cvs: install-rcs install-gdbm force
b26ff9d8
RP
1183 if [ -d $(unsubdir)/cvs ] ; then \
1184 (cd $(unsubdir)/cvs$(subdir); \
4d714963
RP
1185 $(MAKE) \
1186 "against=$(against)" \
1187 "AR=$(AR)" \
1188 "AR_FLAGS=$(AR_FLAGS)" \
1189 "CC=$(CC)" \
1190 "RANLIB=$(RANLIB)" \
1191 "LOADLIBES=$(LOADLIBES)" \
1192 "LDFLAGS=$(LDFLAGS)" \
1193 "BISON=$(BISON)" \
1194 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1195 install) ; \
1196 else \
1197 true ; \
1198 fi
4d714963
RP
1199\f
1200### emacs
1201.PHONY: all-emacs just-emacs
1202all-emacs: just-emacs
1203just-emacs: force
b26ff9d8
RP
1204 if [ -d $(unsubdir)/emacs ] ; then \
1205 (cd $(unsubdir)/emacs$(subdir); \
4d714963
RP
1206 $(MAKE) \
1207 "against=$(against)" \
1208 "AR=$(AR)" \
1209 "AR_FLAGS=$(AR_FLAGS)" \
1210 "CC=$(CC)" \
1211 "RANLIB=$(RANLIB)" \
1212 "LOADLIBES=$(LOADLIBES)" \
1213 "LDFLAGS=$(LDFLAGS)" \
1214 "BISON=$(BISON)" \
1215 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1216 all) ; \
1217 else \
1218 true ; \
1219 fi
4d714963
RP
1220
1221clean-emacs: force
b26ff9d8
RP
1222 if [ -d $(unsubdir)/emacs ] ; then \
1223 (cd $(unsubdir)/emacs$(subdir); \
4d714963
RP
1224 $(MAKE) \
1225 "against=$(against)" \
1226 "AR=$(AR)" \
1227 "AR_FLAGS=$(AR_FLAGS)" \
1228 "CC=$(CC)" \
1229 "RANLIB=$(RANLIB)" \
1230 "LOADLIBES=$(LOADLIBES)" \
1231 "LDFLAGS=$(LDFLAGS)" \
1232 "BISON=$(BISON)" \
1233 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1234 clean) ; \
1235 else \
1236 true ; \
1237 fi
4d714963
RP
1238
1239install-emacs: install-rcs install-gdbm force
b26ff9d8
RP
1240 if [ -d $(unsubdir)/emacs ] ; then \
1241 (cd $(unsubdir)/emacs$(subdir); \
4d714963
RP
1242 $(MAKE) \
1243 "against=$(against)" \
1244 "AR=$(AR)" \
1245 "AR_FLAGS=$(AR_FLAGS)" \
1246 "CC=$(CC)" \
1247 "RANLIB=$(RANLIB)" \
1248 "LOADLIBES=$(LOADLIBES)" \
1249 "LDFLAGS=$(LDFLAGS)" \
1250 "BISON=$(BISON)" \
1251 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1252 install) ; \
1253 else \
1254 true ; \
1255 fi
4d714963
RP
1256\f
1257### ispell
1258.PHONY: all-ispell just-ispell
1259all-ispell: just-ispell
1260just-ispell: all-emacs force
b26ff9d8
RP
1261 if [ -d $(unsubdir)/ispell ] ; then \
1262 (cd $(unsubdir)/ispell$(subdir); \
4d714963
RP
1263 $(MAKE) \
1264 "against=$(against)" \
1265 "AR=$(AR)" \
1266 "AR_FLAGS=$(AR_FLAGS)" \
1267 "CC=$(CC)" \
1268 "RANLIB=$(RANLIB)" \
1269 "LOADLIBES=$(LOADLIBES)" \
1270 "LDFLAGS=$(LDFLAGS)" \
1271 "BISON=$(BISON)" \
1272 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1273 all) ; \
1274 else \
1275 true ; \
1276 fi
4d714963
RP
1277
1278clean-ispell: force
b26ff9d8
RP
1279 if [ -d $(unsubdir)/ispell ] ; then \
1280 (cd $(unsubdir)/ispell$(subdir); \
4d714963
RP
1281 $(MAKE) \
1282 "against=$(against)" \
1283 "AR=$(AR)" \
1284 "AR_FLAGS=$(AR_FLAGS)" \
1285 "CC=$(CC)" \
1286 "RANLIB=$(RANLIB)" \
1287 "LOADLIBES=$(LOADLIBES)" \
1288 "LDFLAGS=$(LDFLAGS)" \
1289 "BISON=$(BISON)" \
1290 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1291 clean) ; \
1292 else \
1293 true ; \
1294 fi
4d714963
RP
1295
1296install-ispell: install-rcs install-gdbm force
b26ff9d8
RP
1297 if [ -d $(unsubdir)/ispell ] ; then \
1298 (cd $(unsubdir)/ispell$(subdir); \
4d714963
RP
1299 $(MAKE) \
1300 "against=$(against)" \
1301 "AR=$(AR)" \
1302 "AR_FLAGS=$(AR_FLAGS)" \
1303 "CC=$(CC)" \
1304 "RANLIB=$(RANLIB)" \
1305 "LOADLIBES=$(LOADLIBES)" \
1306 "LDFLAGS=$(LDFLAGS)" \
1307 "BISON=$(BISON)" \
1308 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1309 install) ; \
1310 else \
1311 true ; \
1312 fi
4d714963
RP
1313\f
1314### other supporting targets
a0f47eb7
SC
1315# this is a bad hack.
1316all.xclib: all.normal
1317 if [ -d clib ] ; then \
1318 (cd clib ; $(MAKE)) ; \
1319 fi
1320
3c81fef5 1321subdir_do: force
a01bf1fb 1322 for i in $(DODIRS); do \
2c55824f
RP
1323 if [ -f $(unsubdir)/$$i/localenv ] ; then \
1324 if (cd $(unsubdir)/$$i$(subdir); \
a0f47eb7
SC
1325 $(MAKE) \
1326 "against=$(against)" \
b772d75e
RP
1327 "BISON=$(BISON)" \
1328 "MAKEINFO=$(MAKEINFO)" \
1329 $(DO)) ; then true ; \
a0f47eb7 1330 else exit 1 ; fi ; \
2c55824f
RP
1331 else if [ -d $(unsubdir)/$$i ] ; then \
1332 if (cd $(unsubdir)/$$i$(subdir); \
a01bf1fb
RP
1333 $(MAKE) \
1334 "against=$(against)" \
1335 "AR=$(AR)" \
1336 "AR_FLAGS=$(AR_FLAGS)" \
4d714963 1337 "CC=$(CC)" \
2645fb0c 1338 "RANLIB=$(RANLIB)" \
905bb120
RP
1339 "LOADLIBES=$(LOADLIBES)" \
1340 "LDFLAGS=$(LDFLAGS)" \
b772d75e
RP
1341 "BISON=$(BISON)" \
1342 "MAKEINFO=$(MAKEINFO)" \
1343 $(DO)) ; then true ; \
a01bf1fb
RP
1344 else exit 1 ; fi ; \
1345 else true ; fi ; \
a0f47eb7 1346 fi ; \
a01bf1fb 1347 done
eb02fd64 1348
4d714963
RP
1349bootstrap:
1350 $(MAKE) all info
2b34da49 1351 $(MAKE) stage1
6a3958b2
RP
1352 $(MAKE) pass "stagepass=stage1"
1353 $(MAKE) stage2
1354 $(MAKE) pass "stagepass=stage2"
a01bf1fb 1355 $(MAKE) comparison
6a3958b2 1356
4d714963 1357bootstrap2:
6a3958b2
RP
1358 $(MAKE) pass "stagepass=stage1"
1359 $(MAKE) stage2
1360 $(MAKE) pass "stagepass=stage2"
a01bf1fb 1361 $(MAKE) comparison
6a3958b2 1362
4d714963 1363bootstrap3:
6a3958b2 1364 $(MAKE) pass "stagepass=stage2"
a01bf1fb 1365 $(MAKE) comparison
6a3958b2 1366
4d714963 1367pass:
517d18b2 1368 cp $(srcdir)/gcc/gstdarg.h $(unsubdir)/gas$(subdir)/stdarg.h
4d714963 1369 $(MAKE) subdir_do "DO=all info" "DODIRS=$(SUBDIRS)" \
2c55824f 1370 "CC=`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/gcc \
4d714963 1371 -O $(GCCVERBOSE) -I`pwd`/$(unsubdir)/gcc$(subdir)/include \
2c55824f
RP
1372 -B`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/ \
1373 -B`pwd`/$(unsubdir)/gas$(subdir)/$(stagepass)/ \
1374 -B`pwd`/$(unsubdir)/ld$(subdir)/$(stagepass)/" \
a297b8ce 1375 "AR=`pwd`/$(unsubdir)/binutils$(subdir)/$(stagepass)/ar" \
30189626 1376 "LD=`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/gcc $(GCCVERBOSE)" \
2c55824f
RP
1377 "RANLIB=`pwd`/$(unsubdir)/binutils$(subdir)/$(stagepass)/ranlib" \
1378 "LOADLIBES=`pwd`/$(unsubdir)/gnulib$(subdir)/$(stagepass)/gnulib.a /lib/libc.a" \
6a3958b2 1379 "LDFLAGS=-nostdlib /lib/crt0.o \
2c55824f
RP
1380 -L`pwd`/$(unsubdir)/gnulib$(subdir)/$(stagepass)/ \
1381 -B`pwd`/$(unsubdir)/ld$(subdir)/$(stagepass)/"
2b34da49 1382
eb02fd64 1383
4d714963 1384stage1:
3c81fef5 1385 $(MAKE) subdir_do DO=stage1 "DODIRS=$(SUBDIRS)"
eb02fd64 1386
4d714963 1387stage2:
3c81fef5 1388 $(MAKE) subdir_do DO=stage2 "DODIRS=$(SUBDIRS)"
eb02fd64 1389
4d714963 1390stage3:
3c81fef5 1391 $(MAKE) subdir_do DO=stage3 "DODIRS=$(SUBDIRS)"
eb02fd64 1392
4d714963 1393stage4:
3c81fef5 1394 $(MAKE) subdir_do DO=stage4 "DODIRS=$(SUBDIRS)"
eb02fd64 1395
a01bf1fb
RP
1396against=stage2
1397
1398comparison:; $(MAKE) subdir_do DO=comparison against=$(against) "DODIRS=$(SUBDIRS)"
1399
3c81fef5
RP
1400de-stage1:; $(MAKE) subdir_do DO=de-stage1 "DODIRS=$(SUBDIRS)"
1401de-stage2:; $(MAKE) subdir_do DO=de-stage2 "DODIRS=$(SUBDIRS)"
1402de-stage3:; $(MAKE) subdir_do DO=de-stage3 "DODIRS=$(SUBDIRS)"
1403de-stage4:; $(MAKE) subdir_do DO=de-stage4 "DODIRS=$(SUBDIRS)"
6a3958b2 1404
abc52b80
JG
1405# The "else true" stuff is for Ultrix; the shell returns the exit code
1406# of the "if" command, if no commands are run in the "then" or "else" part,
1407# causing Make to quit.
4c27527f
RP
1408
1409MAKEDIRS= \
4d714963
RP
1410 $(prefix) \
1411 $(bindir) \
1412 $(libdir) \
1413 $(includedir) \
1414 $(datadir) \
1415 $(docdir) \
1416 $(mandir) \
1417 $(man1dir) \
1418 $(man5dir)
1419
1420# $(man2dir) \
1421# $(man3dir) \
1422# $(man4dir) \
1423# $(man6dir) \
1424# $(man7dir) \
1425# $(man8dir)
4c27527f 1426
a297b8ce 1427install-dirs: force
4c27527f 1428 for i in $(MAKEDIRS) ; do \
cd49a4dc 1429 echo Making $$i... ; \
4d714963 1430 if [ -d $$i ] ; then true ; else mkdir $$i || exit 1 ; fi ; \
4c27527f 1431 done
0ec776a5 1432
c5f94070 1433MAKEINFODIRS= \
4d714963
RP
1434 $(prefix) \
1435 $(infodir)
c5f94070
RP
1436
1437install-info-dirs: force
9a9e8e7f
RP
1438 if [ -d $(prefix) ] ; then true ; else mkdir $(prefix) ; fi
1439 if [ -d $(datadir) ] ; then true ; else mkdir $(datadir) ; fi
1440 if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
c5f94070 1441
6b7e5998 1442dir.info: force
c466cfab
RP
1443 $(srcdir)/texinfo/gen-info-dir $(infodir) > dir.info.new
1444 mv -f dir.info.new dir.info
6b7e5998 1445
eb02fd64
RP
1446etags tags: TAGS
1447
1448TAGS: FORCE
1449 etags `$(MAKE) ls`
1450
1451ls:
1452 @echo Makefile
1453 @for i in $(SUBDIRS); \
1454 do \
1455 (cd $$i; \
1456 pwd=`pwd`; \
1457 wd=`basename $$pwd`; \
1458 for j in `$(MAKE) ls`; \
1459 do \
1460 echo $$wd/$$j; \
1461 done) \
1462 done
1463
3c81fef5 1464force:
eb02fd64
RP
1465
1466# with the gnu make, this is done automatically.
1467
f1eb48b6 1468Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
a26878d1 1469 $(SHELL) ./config.status
eb02fd64 1470
11954bf1
JG
1471#
1472# Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
1473
aaee1265 1474DEVO_SUPPORT= README DOC.configure Makefile.in configure configure.in \
abc52b80 1475 config.sub config
a3a063a9 1476GDB_SUPPORT_DIRS= bfd include libiberty readline glob
abc52b80 1477GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS) texinfo/fsf/texinfo.tex
11954bf1 1478
abc52b80 1479setup-dirs: force_update
11954bf1
JG
1480 ./configure sun4
1481 make clean
1482 ./configure -rm sun4
905bb120 1483 chmod og=u `find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
abc52b80
JG
1484
1485bfd.ilrt.tar.Z: setup-dirs
11954bf1 1486 rm -f bfd.ilrt.tar.Z
abc52b80 1487 tar cf - $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) \
11954bf1
JG
1488 | compress -v >bfd.ilrt.tar.Z
1489
abc52b80
JG
1490gdb.tar.Z: setup-dirs
1491 (cd gdb; $(MAKE) -f Makefile.in make-proto-gdb.dir)
1492 $(MAKE) $(MFLAGS) -f Makefile.in make-gdb.tar.Z
1493
1494make-gdb.tar.Z: $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS) gdb texinfo/fsf/texinfo.tex
1495 rm -rf proto-toplev; mkdir proto-toplev
1496 ln -s ../gdb/proto-gdb.dir proto-toplev/gdb
1497 (cd proto-toplev; for i in $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS); do \
1498 ln -s ../$$i . ; \
1499 done)
a3a063a9
JG
1500 # Take out texinfo from configurable dirs
1501 rm proto-toplev/configure.in
1502 sed '/^configdirs=/s/texinfo //' <configure.in >proto-toplev/configure.in
4d714963
RP
1503 # Take out glob from buildable dirs
1504 rm proto-toplev/Makefile.in
1505 sed '/^SUBDIRS =/s/glob //' <Makefile.in >proto-toplev/Makefile.in
abc52b80
JG
1506 mkdir proto-toplev/texinfo
1507 mkdir proto-toplev/texinfo/fsf
1508 ln -s ../../../texinfo/fsf/texinfo.tex proto-toplev/texinfo/fsf/
905bb120 1509 chmod og=u `find proto-toplev -print`
abc52b80
JG
1510 (VER=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
1511 echo "==> Making gdb-$$VER.tar.Z"; \
1512 ln -s proto-toplev gdb-$$VER; \
1513 tar cfh - gdb-$$VER \
1514 | compress -v >gdb-$$VER.tar.Z)
1515
11954bf1
JG
1516force_update:
1517
0ec776a5
SC
1518nothing:
1519
eb02fd64 1520# end of Makefile.in
This page took 0.107959 seconds and 4 git commands to generate.