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