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