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