b70c763c6face901b299f72449ed49607dd5a4b6
[deliverable/binutils-gdb.git] / Makefile.in
1 #
2 # Makefile for directory with subdirs to build.
3 # Copyright (C) 1990, 1991, 1992 Free Software Foundation
4 #
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 #
19
20 srcdir = .
21
22 prefix = /usr/local
23
24 exec_prefix = $(prefix)
25 bindir = $(exec_prefix)/bin
26 libdir = $(exec_prefix)/lib
27 tooldir = $(libdir)
28
29 datadir = $(prefix)/lib
30 mandir = $(prefix)/man
31 man1dir = $(mandir)/man1
32 man2dir = $(mandir)/man2
33 man3dir = $(mandir)/man3
34 man4dir = $(mandir)/man4
35 man5dir = $(mandir)/man5
36 man6dir = $(mandir)/man6
37 man7dir = $(mandir)/man7
38 man8dir = $(mandir)/man8
39 man9dir = $(mandir)/man9
40 infodir = $(prefix)/info
41 includedir = $(prefix)/include
42 docdir = $(datadir)/doc
43
44 SHELL = /bin/sh
45
46 INSTALL = install -c
47 INSTALL_PROGRAM = $(INSTALL)
48 INSTALL_DATA = $(INSTALL)
49
50 AR = ar
51 AR_FLAGS = qc
52 CFLAGS = -g
53 RANLIB = ranlib
54
55 BISON = `if [ -d $${rootme}/bison ] ; \
56 then echo $${rootme}/bison/bison -L $${rootme}/bison/ -y ; \
57 else echo bison -y ; fi`
58
59 LEX = `if [ -d $${rootme}/flex ] ; \
60 then echo $${rootme}/flex/flex -S$${rootme}/flex/flex.skel ; \
61 else echo flex ; fi`
62
63 MAKEINFO = `if [ -d $${rootme}/texinfo/C ] ; \
64 then echo $${rootme}/texinfo/C/makeinfo ; \
65 else echo makeinfo ; fi`
66
67 SUBDIRS = libiberty mmalloc glob readline bfd gdb binutils ld gas gcc libg++ libgcc clib newlib
68 OTHERS =
69
70 ALL = all.normal
71 INSTALL_TARGET = install.all
72
73 ### for debugging
74 #GCCVERBOSE=-v
75
76
77 #### host and target specific makefile fragments come in here.
78 ###
79
80 FLAGS_TO_PASS = \
81 "prefix=$(prefix)" \
82 "exec_prefix=$(exec_prefix)" \
83 "tooldir=$(tooldir)" \
84 "AR=$(AR)" \
85 "AR_FLAGS=$(AR_FLAGS)" \
86 "CC=$(CC)" \
87 "CFLAGS=$(CFLAGS)" \
88 "RANLIB=$(RANLIB)" \
89 "LOADLIBES=$(LOADLIBES)" \
90 "LDFLAGS=$(LDFLAGS)" \
91 "BISON=$(BISON)" \
92 "LEX=$(LEX)" \
93 "MAKEINFO=$(MAKEINFO)" \
94 "INSTALL=$(INSTALL)" \
95 "INSTALL_DATA=$(INSTALL_DATA)" \
96 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)"
97
98 .PHONY: all info install-info clean-info
99 .NOEXPORT:
100
101 all: $(ALL)
102
103 info: cfg-paper.info configure.info standards.info
104 @rootme=`pwd` ; export rootme ; $(MAKE) subdir_do DO=info "DODIRS=$(SUBDIRS)" "MAKEINFO=$(MAKEINFO)"
105
106 # Note libg++ has to be handled specially (we can't compile it with CC=cc).
107 check:
108 @rootme=`pwd` ; export rootme ; $(MAKE) subdir_do DO=check \
109 "DODIRS=`echo $(SUBDIRS) | sed -e \"s/libg\+\+//\"" \
110 "MAKEINFO=$(MAKEINFO)"
111 @rootme=`pwd` ; export rootme ; $(MAKE) subdir_do DO=check \
112 "DODIRS=libg++" "CC=${GXX}" "XTRAFLAGS=${XTRAFLAGS}" \
113 "MAKEINFO=$(MAKEINFO)"
114
115 clean-info:
116 @$(MAKE) subdir_do DO=clean-info "DODIRS=$(SUBDIRS)"
117 rm -f *.info*
118
119 cfg-paper.info: cfg-paper.texi
120 rootme=`pwd` ; export rootme ; $(MAKEINFO) -o cfg-paper.info $(srcdir)/cfg-paper.texi
121
122 configure.info: configure.texi
123 rootme=`pwd` ; export rootme ; $(MAKEINFO) -o configure.info $(srcdir)/configure.texi
124
125 standards.info: standards.texi
126 rootme=`pwd` ; export rootme ; $(MAKEINFO) -o standards.info $(srcdir)/standards.texi
127
128 install-info: install-info-dirs force
129 [ -d $(infodir) ] || mkdir $(infodir)
130 @$(MAKE) subdir_do DO=install-info "DODIRS=$(SUBDIRS)"
131 $(INSTALL_DATA) cfg-paper.info $(infodir)/cfg-paper.info
132 $(INSTALL_DATA) configure.info $(infodir)/configure.info
133 $(INSTALL_DATA) standards.info $(infodir)/standards.info
134 @$(MAKE) dir.info install-dir.info
135
136 install-dir.info:
137 $(INSTALL_DATA) dir.info $(infodir)/dir.info
138
139 all.normal: all-autoconf all-libiberty all-mmalloc all-texinfo \
140 all-bison all-byacc all-flex all-bfd all-ld all-gas all-gcc \
141 all-binutils all-libg++ all-readline all-gdb \
142 all-make all-rcs all-cvs all-diff all-grep \
143 all-patch all-emacs all-ispell \
144 all-newlib all-gprof all-send_pr
145
146 all.cross: all-libiberty all-mmalloc all-gas all-bison all-ld \
147 all-bfd all-libgcc all-readline all-gdb
148 # $(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS) $(OTHERS)"
149
150 clean: clean-autoconf clean-libiberty clean-mmalloc clean-texinfo \
151 clean-bfd clean-newlib clean-binutils clean-flex \
152 clean-bison clean-byacc clean-ld clean-gas \
153 clean-gcc clean-libgcc clean-readline clean-glob clean-gdb \
154 clean-make clean-diff clean-grep clean-rcs \
155 clean-cvs clean-patch clean-emacs clean-ispell \
156 clean-libg++ clean-gprof clean-send_pr
157 -rm -rf *.a TEMP errs core *.o *~ \#* TAGS *.E
158
159 clean-stamps:
160 -rm -f all-*
161
162 install: $(INSTALL_TARGET) $(srcdir)/configure.man
163 $(INSTALL_DATA) $(srcdir)/configure.man $(man1dir)/configure.1
164
165
166 install.all: install-dirs install-autoconf install-libiberty \
167 install-mmalloc install-texinfo install-bfd install-binutils \
168 install-bison install-byacc install-flex install-ld \
169 install-gas install-gcc install-gprof install-libgcc \
170 install-readline install-glob install-gdb install-make \
171 install-cvs install-patch install-emacs install-ispell \
172 install-libg++ install-newlib \
173 install-send_pr
174
175 install.cross: install-dirs install-libiberty install-mmalloc \
176 install-binutils install-bison install-byacc install-flex \
177 install-ld install-gas install-libgcc install-readline \
178 install-glob install-gdb install-mmalloc install-gprof
179
180 ### autoconf
181 all-autoconf: force
182 @if [ -d ./autoconf ] ; then \
183 rootme=`pwd` ; export rootme ; \
184 (cd ./autoconf; \
185 $(MAKE) $(FLAGS_TO_PASS) all) ; \
186 else \
187 true ; \
188 fi
189
190 clean-autoconf: force
191 @if [ -d ./autoconf ] ; then \
192 rootme=`pwd` ; export rootme ; \
193 (cd ./autoconf; \
194 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
195 else \
196 true ; \
197 fi
198
199 install-autoconf: force
200 @if [ -d ./autoconf ] ; then \
201 rootme=`pwd` ; export rootme ; \
202 (cd ./autoconf; \
203 $(MAKE) $(FLAGS_TO_PASS) install) ; \
204 else \
205 true ; \
206 fi
207
208 ### libiberty
209 all-libiberty: force
210 @if [ -d ./libiberty ] ; then \
211 rootme=`pwd` ; export rootme ; \
212 (cd ./libiberty; \
213 $(MAKE) $(FLAGS_TO_PASS) all) ; \
214 else \
215 true ; \
216 fi
217
218 clean-libiberty: force
219 @if [ -d ./libiberty ] ; then \
220 rootme=`pwd` ; export rootme ; \
221 (cd ./libiberty; \
222 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
223 else \
224 true ; \
225 fi
226
227 install-libiberty: force
228 @if [ -d ./libiberty ] ; then \
229 rootme=`pwd` ; export rootme ; \
230 (cd ./libiberty; \
231 $(MAKE) $(FLAGS_TO_PASS) install) ; \
232 else \
233 true ; \
234 fi
235
236 ### mmalloc
237 all-mmalloc: force
238 @if [ -d ./mmalloc ] ; then \
239 rootme=`pwd` ; export rootme ; \
240 (cd ./mmalloc; \
241 $(MAKE) $(FLAGS_TO_PASS) all) ; \
242 else \
243 true ; \
244 fi
245
246 clean-mmalloc: force
247 @if [ -d ./mmalloc ] ; then \
248 rootme=`pwd` ; export rootme ; \
249 (cd ./mmalloc; \
250 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
251 else \
252 true ; \
253 fi
254
255 install-mmalloc: force
256 @if [ -d ./mmalloc ] ; then \
257 rootme=`pwd` ; export rootme ; \
258 (cd ./mmalloc; \
259 $(MAKE) $(FLAGS_TO_PASS) install) ; \
260 else \
261 true ; \
262 fi
263
264 ### texinfo
265 all-texinfo: all-libiberty
266 @if [ -d ./texinfo ] ; then \
267 rootme=`pwd` ; export rootme ; \
268 rootme=`pwd` ; export rootme ; \
269 (cd ./texinfo; \
270 $(MAKE) $(FLAGS_TO_PASS) all) ; \
271 else \
272 true ; \
273 fi
274
275 clean-texinfo: force
276 @if [ -d ./texinfo ] ; then \
277 rootme=`pwd` ; export rootme ; \
278 (cd ./texinfo; \
279 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
280 else \
281 true ; \
282 fi
283
284 install-texinfo: force
285 @if [ -d ./texinfo ] ; then \
286 rootme=`pwd` ; export rootme ; \
287 (cd ./texinfo; \
288 $(MAKE) $(FLAGS_TO_PASS) install) ; \
289 else \
290 true ; \
291 fi
292
293 ### bfd
294 all-bfd: force
295 @if [ -d ./bfd ] ; then \
296 rootme=`pwd` ; export rootme ; \
297 (cd ./bfd; \
298 $(MAKE) $(FLAGS_TO_PASS) all) ; \
299 else \
300 true ; \
301 fi
302
303 clean-bfd: force
304 @if [ -d ./bfd ] ; then \
305 rootme=`pwd` ; export rootme ; \
306 (cd ./bfd; \
307 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
308 else \
309 true ; \
310 fi
311
312 install-bfd: force
313 @if [ -d ./bfd ] ; then \
314 rootme=`pwd` ; export rootme ; \
315 (cd ./bfd; \
316 $(MAKE) $(FLAGS_TO_PASS) install) ; \
317 else \
318 true ; \
319 fi
320
321 ### binutils
322 all-binutils: all-libiberty all-bfd all-flex
323 @if [ -d ./binutils ] ; then \
324 rootme=`pwd` ; export rootme ; \
325 (cd ./binutils; \
326 $(MAKE) $(FLAGS_TO_PASS) all) ; \
327 else \
328 true ; \
329 fi
330
331 clean-binutils: force
332 @if [ -d ./binutils ] ; then \
333 rootme=`pwd` ; export rootme ; \
334 (cd ./binutils; \
335 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
336 else \
337 true ; \
338 fi
339
340 install-binutils: force
341 @if [ -d ./binutils ] ; then \
342 rootme=`pwd` ; export rootme ; \
343 (cd ./binutils; \
344 $(MAKE) $(FLAGS_TO_PASS) install) ; \
345 else \
346 true ; \
347 fi
348
349 ### newlib
350 all-newlib: force
351 @if [ -d ./newlib ] ; then \
352 rootme=`pwd` ; export rootme ; \
353 (cd ./newlib; \
354 $(MAKE) $(FLAGS_TO_PASS) all) ; \
355 else \
356 true ; \
357 fi
358
359 clean-newlib: force
360 @if [ -d ./newlib ] ; then \
361 rootme=`pwd` ; export rootme ; \
362 (cd ./newlib; \
363 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
364 else \
365 true ; \
366 fi
367
368 install-newlib: force
369 @if [ -d ./newlib ] ; then \
370 rootme=`pwd` ; export rootme ; \
371 (cd ./newlib; \
372 $(MAKE) $(FLAGS_TO_PASS) install) ; \
373 else \
374 true ; \
375 fi
376
377 ### gprof
378 all-gprof: all-libiberty all-bfd
379 @if [ -d ./gprof ] ; then \
380 (cd ./gprof; \
381 $(MAKE) $(FLAGS_TO_PASS) all) ; \
382 else \
383 true ; \
384 fi
385
386 clean-gprof: force
387 @if [ -d $(unsubdir)/gprof ] ; then \
388 (cd $(unsubdir)/gprof$(subdir); \
389 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
390 else \
391 true ; \
392 fi
393
394 install-gprof: force
395 @if [ -d $(unsubdir)/gprof ] ; then \
396 (cd $(unsubdir)/gprof$(subdir); \
397 $(MAKE) $(FLAGS_TO_PASS) install) ; \
398 else \
399 true ; \
400 fi
401
402 ### byacc
403 all-byacc: force
404 @if [ -d ./byacc ] ; then \
405 rootme=`pwd` ; export rootme ; \
406 (cd ./byacc; \
407 $(MAKE) $(FLAGS_TO_PASS) all) ; \
408 else \
409 true ; \
410 fi
411
412 clean-byacc: force
413 @if [ -d ./byacc ] ; then \
414 rootme=`pwd` ; export rootme ; \
415 (cd ./byacc; \
416 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
417 else \
418 true ; \
419 fi
420
421 install-byacc: force
422 @if [ -d ./byacc ] ; then \
423 rootme=`pwd` ; export rootme ; \
424 (cd ./byacc; \
425 $(MAKE) $(FLAGS_TO_PASS) install) ; \
426 else \
427 true ; \
428 fi
429
430 ### bison
431 all-bison: all-libiberty
432 @if [ -d ./bison ] ; then \
433 rootme=`pwd` ; export rootme ; \
434 (cd ./bison; \
435 $(MAKE) $(FLAGS_TO_PASS) all) ; \
436 else \
437 true ; \
438 fi
439
440 clean-bison: force
441 @if [ -d ./bison ] ; then \
442 rootme=`pwd` ; export rootme ; \
443 (cd ./bison; \
444 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
445 else \
446 true ; \
447 fi
448
449 install-bison: force
450 @if [ -d ./bison ] ; then \
451 rootme=`pwd` ; export rootme ; \
452 (cd ./bison; \
453 $(MAKE) $(FLAGS_TO_PASS) install) ; \
454 else \
455 true ; \
456 fi
457
458 ### flex
459 all-flex: all-libiberty
460 @if [ -d ./flex ] ; then \
461 rootme=`pwd` ; export rootme ; \
462 (cd ./flex; \
463 $(MAKE) $(FLAGS_TO_PASS) all) ; \
464 else \
465 true ; \
466 fi
467
468 clean-flex: force
469 @if [ -d ./flex ] ; then \
470 rootme=`pwd` ; export rootme ; \
471 (cd ./flex; \
472 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
473 else \
474 true ; \
475 fi
476
477 install-flex: force
478 @if [ -d ./flex ] ; then \
479 rootme=`pwd` ; export rootme ; \
480 (cd ./flex; \
481 $(MAKE) $(FLAGS_TO_PASS) install) ; \
482 else \
483 true ; \
484 fi
485 ### gcc
486 all-gcc: all-libiberty all-bison
487 @if [ -d ./gcc ] ; then \
488 rootme=`pwd` ; export rootme ; \
489 (cd ./gcc; \
490 $(MAKE) $(FLAGS_TO_PASS) all) ; \
491 else \
492 true ; \
493 fi
494
495 clean-gcc: force
496 @if [ -d ./gcc ] ; then \
497 rootme=`pwd` ; export rootme ; \
498 (cd ./gcc; \
499 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
500 else \
501 true ; \
502 fi
503
504 install-gcc: force
505 @if [ -d ./gcc ] ; then \
506 rootme=`pwd` ; export rootme ; \
507 (cd ./gcc; \
508 $(MAKE) $(FLAGS_TO_PASS) install) ; \
509 else \
510 true ; \
511 fi
512
513 ### readline
514 all-readline: force
515 @if [ -d ./readline ] ; then \
516 rootme=`pwd` ; export rootme ; \
517 (cd ./readline; \
518 $(MAKE) $(FLAGS_TO_PASS) all) ; \
519 else \
520 true ; \
521 fi
522
523 clean-readline: force
524 @if [ -d ./readline ] ; then \
525 rootme=`pwd` ; export rootme ; \
526 (cd ./readline; \
527 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
528 else \
529 true ; \
530 fi
531
532 install-readline: force
533 @if [ -d ./readline ] ; then \
534 rootme=`pwd` ; export rootme ; \
535 (cd ./readline; \
536 $(MAKE) $(FLAGS_TO_PASS) install) ; \
537 else \
538 true ; \
539 fi
540
541 ### glob
542 all-glob: force
543 @if [ -d ./glob ] ; then \
544 rootme=`pwd` ; export rootme ; \
545 (cd ./glob; \
546 $(MAKE) $(FLAGS_TO_PASS) all) ; \
547 else \
548 true ; \
549 fi
550
551 clean-glob: force
552 @if [ -d ./glob ] ; then \
553 rootme=`pwd` ; export rootme ; \
554 (cd ./glob; \
555 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
556 else \
557 true ; \
558 fi
559
560 install-glob: force
561 @if [ -d ./glob ] ; then \
562 rootme=`pwd` ; export rootme ; \
563 (cd ./glob; \
564 $(MAKE) $(FLAGS_TO_PASS) install) ; \
565 else \
566 true ; \
567 fi
568
569 ### gas
570 all-gas: all-libiberty all-bfd
571 @if [ -d ./gas ] ; then \
572 rootme=`pwd` ; export rootme ; \
573 (cd ./gas; \
574 $(MAKE) $(FLAGS_TO_PASS) all) ; \
575 else \
576 true ; \
577 fi
578
579 clean-gas: force
580 @if [ -d ./gas ] ; then \
581 rootme=`pwd` ; export rootme ; \
582 (cd ./gas; \
583 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
584 else \
585 true ; \
586 fi
587
588 install-gas: force
589 @if [ -d ./gas ] ; then \
590 rootme=`pwd` ; export rootme ; \
591 (cd ./gas; \
592 $(MAKE) $(FLAGS_TO_PASS) install) ; \
593 else \
594 true ; \
595 fi
596
597 ### ld
598 all-ld: all-libiberty all-bfd all-bison all-flex
599 @if [ -d ./ld ] ; then \
600 rootme=`pwd` ; export rootme ; \
601 (cd ./ld; \
602 $(MAKE) $(FLAGS_TO_PASS) all) ; \
603 else \
604 true ; \
605 fi
606
607 clean-ld: force
608 @if [ -d ./ld ] ; then \
609 rootme=`pwd` ; export rootme ; \
610 (cd ./ld; \
611 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
612 else \
613 true ; \
614 fi
615
616 install-ld: force
617 @if [ -d ./ld ] ; then \
618 rootme=`pwd` ; export rootme ; \
619 (cd ./ld; \
620 $(MAKE) $(FLAGS_TO_PASS) install) ; \
621 else \
622 true ; \
623 fi
624
625 ### libgcc (and libgcc1)
626 all-libgcc1: all-gas all-binutils
627 @if [ -d ./libgcc ] ; then \
628 rootme=`pwd` ; export rootme ; \
629 (cd ./libgcc; \
630 $(MAKE) $(FLAGS_TO_PASS) libgcc1.a) ; \
631 else \
632 true ; \
633 fi
634
635 clean-libgcc1: force
636 @if [ -d ./libgcc ] ; then \
637 rootme=`pwd` ; export rootme ; \
638 (cd ./libgcc; \
639 $(MAKE) $(FLAGS_TO_PASS) clean-libgcc1) ; \
640 else \
641 true ; \
642 fi
643
644 install-libgcc1: force
645 echo libgcc1 is a component, not an installable target
646
647 all-libgcc: all-gas all-gcc all-binutils
648 true
649 @if [ -d ./libgcc ] ; then \
650 rootme=`pwd` ; export rootme ; \
651 (cd ./libgcc; \
652 $(MAKE) $(FLAGS_TO_PASS) all) ; \
653 else \
654 true ; \
655 fi
656
657 clean-libgcc: force
658 @if [ -d ./libgcc ] ; then \
659 rootme=`pwd` ; export rootme ; \
660 (cd ./libgcc; \
661 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
662 else \
663 true ; \
664 fi
665
666 install-libgcc: force
667 @if [ -d ./libgcc ] ; then \
668 rootme=`pwd` ; export rootme ; \
669 (cd ./libgcc; \
670 $(MAKE) $(FLAGS_TO_PASS) install) ; \
671 else \
672 true ; \
673 fi
674
675 ### gdb
676 all-gdb: all-bfd all-libiberty all-mmalloc all-readline all-glob all-bison
677 @if [ -d ./gdb ] ; then \
678 rootme=`pwd` ; export rootme ; \
679 (cd ./gdb; \
680 $(MAKE) $(FLAGS_TO_PASS) all) ; \
681 else \
682 true ; \
683 fi
684
685 clean-gdb: force
686 @if [ -d ./gdb ] ; then \
687 rootme=`pwd` ; export rootme ; \
688 (cd ./gdb; \
689 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
690 else \
691 true ; \
692 fi
693
694 install-gdb: force
695 @if [ -d ./gdb ] ; then \
696 rootme=`pwd` ; export rootme ; \
697 (cd ./gdb; \
698 $(MAKE) $(FLAGS_TO_PASS) install) ; \
699 else \
700 true ; \
701 fi
702
703 ### make
704 all-make: all-libiberty
705 @if [ -d ./make ] ; then \
706 rootme=`pwd` ; export rootme ; \
707 (cd ./make; \
708 $(MAKE) $(FLAGS_TO_PASS) all) ; \
709 else \
710 true ; \
711 fi
712
713 clean-make: force
714 @if [ -d ./make ] ; then \
715 rootme=`pwd` ; export rootme ; \
716 (cd ./make; \
717 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
718 else \
719 true ; \
720 fi
721
722 install-make: force
723 @if [ -d ./make ] ; then \
724 rootme=`pwd` ; export rootme ; \
725 (cd ./make; \
726 $(MAKE) $(FLAGS_TO_PASS) install) ; \
727 else \
728 true ; \
729 fi
730
731 ### diff
732 all-diff: force
733 @if [ -d ./diff ] ; then \
734 rootme=`pwd` ; export rootme ; \
735 (cd ./diff; \
736 $(MAKE) $(FLAGS_TO_PASS) all) ; \
737 else \
738 true ; \
739 fi
740
741 clean-diff: force
742 @if [ -d ./diff ] ; then \
743 rootme=`pwd` ; export rootme ; \
744 (cd ./diff; \
745 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
746 else \
747 true ; \
748 fi
749
750 install-diff: force
751 @if [ -d ./diff ] ; then \
752 rootme=`pwd` ; export rootme ; \
753 (cd ./diff/; \
754 $(MAKE) $(FLAGS_TO_PASS) install) ; \
755 else \
756 true ; \
757 fi
758
759 ### grep
760 all-grep: force
761 @if [ -d ./grep ] ; then \
762 rootme=`pwd` ; export rootme ; \
763 (cd ./grep; \
764 $(MAKE) $(FLAGS_TO_PASS) all) ; \
765 else \
766 true ; \
767 fi
768
769 clean-grep: force
770 @if [ -d ./grep ] ; then \
771 rootme=`pwd` ; export rootme ; \
772 (cd ./grep; \
773 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
774 else \
775 true ; \
776 fi
777
778 install-grep: force
779 @if [ -d ./grep ] ; then \
780 rootme=`pwd` ; export rootme ; \
781 (cd ./grep; \
782 $(MAKE) $(FLAGS_TO_PASS) install) ; \
783 else \
784 true ; \
785 fi
786
787 ### rcs
788 all-rcs: force
789 @if [ -d ./rcs ] ; then \
790 rootme=`pwd` ; export rootme ; \
791 (cd ./rcs; \
792 $(MAKE) $(FLAGS_TO_PASS) all) ; \
793 else \
794 true ; \
795 fi
796
797 clean-rcs: force
798 @if [ -d ./rcs ] ; then \
799 rootme=`pwd` ; export rootme ; \
800 (cd ./rcs; \
801 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
802 else \
803 true ; \
804 fi
805
806 install-rcs: force
807 @if [ -d ./rcs ] ; then \
808 rootme=`pwd` ; export rootme ; \
809 (cd ./rcs; \
810 $(MAKE) $(FLAGS_TO_PASS) install) ; \
811 else \
812 true ; \
813 fi
814
815 ### cvs
816 all-cvs: force
817 @if [ -d ./cvs ] ; then \
818 rootme=`pwd` ; export rootme ; \
819 (cd ./cvs; \
820 $(MAKE) $(FLAGS_TO_PASS) all) ; \
821 else \
822 true ; \
823 fi
824
825 clean-cvs: force
826 @if [ -d ./cvs ] ; then \
827 rootme=`pwd` ; export rootme ; \
828 (cd ./cvs; \
829 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
830 else \
831 true ; \
832 fi
833
834 install-cvs: force
835 @if [ -d ./cvs ] ; then \
836 rootme=`pwd` ; export rootme ; \
837 (cd ./cvs; \
838 $(MAKE) $(FLAGS_TO_PASS) install) ; \
839 else \
840 true ; \
841 fi
842
843 ### patch
844 all-patch: force
845 @if [ -d ./patch ] ; then \
846 rootme=`pwd` ; export rootme ; \
847 (cd ./patch; \
848 $(MAKE) $(FLAGS_TO_PASS) all) ; \
849 else \
850 true ; \
851 fi
852
853 clean-patch: force
854 @if [ -d ./patch ] ; then \
855 rootme=`pwd` ; export rootme ; \
856 (cd ./patch; \
857 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
858 else \
859 true ; \
860 fi
861
862 install-patch: force
863 @if [ -d ./patch ] ; then \
864 rootme=`pwd` ; export rootme ; \
865 (cd ./patch; \
866 $(MAKE) $(FLAGS_TO_PASS) \
867 bindir=$(bindir) \
868 man1dir=$(man1dir) install) ; \
869 else \
870 true ; \
871 fi
872
873 ### emacs
874 all-emacs: force
875 @if [ -d ./emacs ] ; then \
876 rootme=`pwd` ; export rootme ; \
877 (cd ./emacs; \
878 $(MAKE) $(FLAGS_TO_PASS) all) ; \
879 else \
880 true ; \
881 fi
882
883 clean-emacs: force
884 @if [ -d ./emacs ] ; then \
885 rootme=`pwd` ; export rootme ; \
886 (cd ./emacs; \
887 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
888 else \
889 true ; \
890 fi
891
892 install-emacs: force
893 @if [ -d ./emacs ] ; then \
894 rootme=`pwd` ; export rootme ; \
895 (cd ./emacs; \
896 $(MAKE) $(FLAGS_TO_PASS) install) ; \
897 else \
898 true ; \
899 fi
900
901 ### ispell
902 all-ispell: all-emacs
903 @if [ -d ./ispell ] ; then \
904 rootme=`pwd` ; export rootme ; \
905 (cd ./ispell; \
906 $(MAKE) $(FLAGS_TO_PASS) all) ; \
907 else \
908 true ; \
909 fi
910
911 clean-ispell: force
912 @if [ -d ./ispell ] ; then \
913 rootme=`pwd` ; export rootme ; \
914 (cd ./ispell; \
915 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
916 else \
917 true ; \
918 fi
919
920 install-ispell: force
921 @if [ -d ./ispell ] ; then \
922 rootme=`pwd` ; export rootme ; \
923 (cd ./ispell; \
924 $(MAKE) $(FLAGS_TO_PASS) install) ; \
925 else \
926 true ; \
927 fi
928
929 ### send_pr
930 all-send_pr: force
931 @if [ -d ./send_pr ] ; then \
932 rootme=`pwd` ; export rootme ; \
933 (cd ./send_pr; \
934 $(MAKE) $(FLAGS_TO_PASS) all) ; \
935 else \
936 true ; \
937 fi
938
939 clean-send_pr: force
940 @if [ -d ./send_pr ] ; then \
941 rootme=`pwd` ; export rootme ; \
942 (cd ./send_pr; \
943 $(MAKE) $(FLAGS_TO_PASS) clean) ; \
944 else \
945 true ; \
946 fi
947
948 install-send_pr: force
949 @if [ -d ./send_pr ] ; then \
950 rootme=`pwd` ; export rootme ; \
951 (cd ./send_pr; \
952 $(MAKE) $(FLAGS_TO_PASS) install) ; \
953 else \
954 true ; \
955 fi
956
957 ### libg++
958 GXX = `if [ -d $${rootme}/gcc ] ; \
959 then echo $${rootme}/gcc/gcc -B$${rootme}/gcc/ ; \
960 else echo gcc ; fi`
961
962 XTRAFLAGS = `if [ -d $${rootme}/gcc ] ; \
963 then echo -I$${rootme}/gcc/include ; \
964 else echo ; fi`
965
966 all-libg++: all-gas all-ld all-gcc
967 @if [ -d ./libg++ ] ; then \
968 rootme=`pwd` ; export rootme ; \
969 (cd ./libg++; \
970 $(MAKE) \
971 "AR=$(AR)" \
972 "AR_FLAGS=$(AR_FLAGS)" \
973 "CC=${GXX}" \
974 "CFLAGS=$(CFLAGS)" \
975 "XTRAFLAGS=${XTRAFLAGS}" \
976 "RANLIB=$(RANLIB)" \
977 "LOADLIBES=$(LOADLIBES)" \
978 "LDFLAGS=$(LDFLAGS)" \
979 "BISON=$(BISON)" \
980 "MAKEINFO=$(MAKEINFO)" \
981 all) ; \
982 else \
983 true ; \
984 fi
985
986 clean-libg++: force
987 @if [ -d ./libg++ ] ; then \
988 rootme=`pwd` ; export rootme ; \
989 (cd ./libg++; \
990 $(MAKE) \
991 "AR=$(AR)" \
992 "AR_FLAGS=$(AR_FLAGS)" \
993 "CC=$(CC)" \
994 "CFLAGS=$(CFLAGS)" \
995 "RANLIB=$(RANLIB)" \
996 "LOADLIBES=$(LOADLIBES)" \
997 "LDFLAGS=$(LDFLAGS)" \
998 "BISON=$(BISON)" \
999 "MAKEINFO=$(MAKEINFO)" \
1000 clean) ; \
1001 else \
1002 true ; \
1003 fi
1004
1005 install-libg++: force
1006 @if [ -d ./libg++ ] ; then \
1007 rootme=`pwd` ; export rootme ; \
1008 (cd ./libg++; \
1009 $(MAKE) \
1010 "AR=$(AR)" \
1011 "AR_FLAGS=$(AR_FLAGS)" \
1012 "CC=$(CC)" \
1013 "CFLAGS=$(CFLAGS)" \
1014 "RANLIB=$(RANLIB)" \
1015 "LOADLIBES=$(LOADLIBES)" \
1016 "LDFLAGS=$(LDFLAGS)" \
1017 "BISON=$(BISON)" \
1018 "MAKEINFO=$(MAKEINFO)" \
1019 "INSTALL=$(INSTALL)" \
1020 "INSTALL_DATA=$(INSTALL_DATA)" \
1021 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
1022 install) ; \
1023 else \
1024 true ; \
1025 fi
1026
1027 ### other supporting targets
1028 # this is a bad hack.
1029 all.xclib: all.normal
1030 if [ -d clib ] ; then \
1031 (cd clib ; $(MAKE) $(FLAGS_TO_PASS)) ; \
1032 fi
1033
1034 subdir_do:
1035 @for i in $(DODIRS); do \
1036 if [ -f ./$$i/localenv ] ; then \
1037 if (rootme=`pwd` ; export rootme ; cd ./$$i; \
1038 $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
1039 else exit 1 ; fi ; \
1040 else if [ -d ./$$i ] ; then \
1041 if (rootme=`pwd` ; export rootme ; cd ./$$i; \
1042 $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
1043 else exit 1 ; fi ; \
1044 else true ; fi ; \
1045 fi ; \
1046 done
1047
1048 # The "else true" stuff is for Ultrix; the shell returns the exit code
1049 # of the "if" command, if no commands are run in the "then" or "else" part,
1050 # causing Make to quit.
1051
1052 MAKEDIRS= \
1053 $(prefix) \
1054 $(exec_prefix) \
1055 $(bindir) \
1056 $(libdir) \
1057 $(tooldir) \
1058 $(includedir) \
1059 $(datadir) \
1060 $(docdir) \
1061 $(mandir) \
1062 $(man1dir) \
1063 $(man5dir)
1064
1065 # $(man2dir) \
1066 # $(man3dir) \
1067 # $(man4dir) \
1068 # $(man6dir) \
1069 # $(man7dir) \
1070 # $(man8dir)
1071
1072 install-dirs:
1073 for i in $(MAKEDIRS) ; do \
1074 echo Making $$i... ; \
1075 [ -d $$i ] || mkdir $$i || exit 1 ; \
1076 done
1077
1078 MAKEINFODIRS= \
1079 $(prefix) \
1080 $(infodir)
1081
1082 install-info-dirs:
1083 if [ -d $(prefix) ] ; then true ; else mkdir $(prefix) ; fi
1084 if [ -d $(datadir) ] ; then true ; else mkdir $(datadir) ; fi
1085 if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
1086
1087 dir.info:
1088 $(srcdir)/texinfo/gen-info-dir $(infodir) > dir.info.new
1089 mv -f dir.info.new dir.info
1090
1091 etags tags: TAGS
1092
1093 TAGS:
1094 etags `$(MAKE) ls`
1095
1096 ls:
1097 @echo Makefile
1098 @for i in $(SUBDIRS); \
1099 do \
1100 (cd $$i; \
1101 pwd=`pwd`; \
1102 wd=`basename $$pwd`; \
1103 for j in `$(MAKE) ls`; \
1104 do \
1105 echo $$wd/$$j; \
1106 done) \
1107 done
1108
1109 force:
1110
1111 # with the gnu make, this is done automatically.
1112
1113 Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
1114 $(SHELL) ./config.status
1115
1116 #
1117 # Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
1118
1119 DEVO_SUPPORT= README cfg-paper.texi Makefile.in configure configure.in \
1120 config.sub config configure.man
1121 GDB_SUPPORT_DIRS= bfd include libiberty mmalloc readline glob
1122 GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS) texinfo/fsf/texinfo.tex
1123
1124 setup-dirs: force_update
1125 ./configure sun4
1126 make clean
1127 ./configure -rm sun4
1128 chmod og=u `find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
1129
1130 bfd.ilrt.tar.Z: setup-dirs
1131 rm -f bfd.ilrt.tar.Z
1132 tar cf - $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) \
1133 | compress -v >bfd.ilrt.tar.Z
1134
1135 gdb.tar.Z: setup-dirs
1136 (cd gdb; $(MAKE) -f Makefile.in make-proto-gdb.dir)
1137 $(MAKE) $(MFLAGS) -f Makefile.in make-gdb.tar.Z
1138
1139 make-gdb.tar.Z: $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS) gdb texinfo/fsf/texinfo.tex
1140 rm -rf proto-toplev; mkdir proto-toplev
1141 ln -s ../gdb/proto-gdb.dir proto-toplev/gdb
1142 (cd proto-toplev; for i in $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS); do \
1143 ln -s ../$$i . ; \
1144 done)
1145 # Put only one copy (four hard links) of COPYING in the tar file.
1146 rm proto-toplev/bfd/COPYING
1147 ln proto-toplev/gdb/COPYING proto-toplev/bfd/COPYING
1148 rm proto-toplev/include/COPYING
1149 ln proto-toplev/gdb/COPYING proto-toplev/include/COPYING
1150 rm proto-toplev/readline/COPYING
1151 ln proto-toplev/gdb/COPYING proto-toplev/readline/COPYING
1152 # Take out texinfo from configurable dirs
1153 rm proto-toplev/configure.in
1154 sed '/^configdirs=/s/texinfo //' <configure.in >proto-toplev/configure.in
1155 # Take out glob from buildable dirs
1156 rm proto-toplev/Makefile.in
1157 sed '/^SUBDIRS =/s/glob //' <Makefile.in >proto-toplev/Makefile.in
1158 # Take out texinfo from buildable dirs
1159 cp proto-toplev/Makefile.in temp.$$
1160 sed '/^all\.normal: /s/\all-texinfo //' <temp.$$ >temp1.$$
1161 sed '/^clean: /s/clean-texinfo //' <temp1.$$ >temp.$$
1162 sed '/^install\.all: /s/install-texinfo //' <temp.$$ >proto-toplev/Makefile.in
1163 rm temp.$$ temp1.$$
1164 mkdir proto-toplev/texinfo
1165 mkdir proto-toplev/texinfo/fsf
1166 ln -s ../../../texinfo/fsf/texinfo.tex proto-toplev/texinfo/fsf/
1167 chmod og=u `find proto-toplev -print`
1168 (VER=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
1169 echo "==> Making gdb-$$VER.tar.Z"; \
1170 ln -s proto-toplev gdb-$$VER; \
1171 tar cfh - gdb-$$VER \
1172 | compress -v >gdb-$$VER.tar.Z)
1173
1174 force_update:
1175
1176 nothing:
1177
1178 # end of Makefile.in
This page took 0.072916 seconds and 4 git commands to generate.