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