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