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