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