* test-build.mk: set $PATH for all builds
[deliverable/binutils-gdb.git] / Makefile.in
1 #
2 # Makefile for directory with subdirs to build.
3 # Copyright (C) 1990, 1991, 1992 Free Software Foundation
4 #
5 # This file is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
18 #
19
20 srcdir = .
21
22 prefix = /usr/local
23
24 exec_prefix = $(prefix)
25 bindir = $(exec_prefix)/bin
26 libdir = $(exec_prefix)/lib
27 tooldir = $(libdir)
28
29 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 = ./gcc -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 = libiberty mmalloc glob readline opcodes bfd h8300sim z8ksim gdb binutils ld gas tgas gcc libg++ newlib chillrt deja-gnu
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/gcc -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/gcc -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, chillrt). -- 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 all-chillrt all-gprof all-send_pr all-libm all-deja-gnu \
259 all-fileutils all-find all-gawk all-sed all-shellutils \
260 all-textutils all-time all-wdiff
261
262
263 all.cross: all-libiberty all-mmalloc all-gas all-byacc all-flex all-ld \
264 all-opcodes all-z8ksim all-h8300sim all-bfd all-readline all-gdb all-binutils all-gcc \
265 all-newlib all-chillrt all-deja-gnu
266
267 .PHONY: clean distclean mostlyclean realclean do_clean
268
269 do_clean:
270 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E
271
272 clean mostlyclean: do_clean
273 @rootme=`pwd` ; export rootme ; \
274 $(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
275
276 distclean realclean: do_clean
277 @rootme=`pwd` ; export rootme ; \
278 $(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
279 -rm -f Makefile config.status
280
281 uninstall:
282 @echo "the uninstall target is not supported in this tree"
283
284 install: $(INSTALL_TARGET)
285 -parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
286 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
287 -if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi
288
289 install.all: install-no-fixedincludes
290 @if [ -f ./gcc/Makefile ] ; then \
291 rootme=`pwd` ; export rootme ; \
292 (cd ./gcc; \
293 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
294 else \
295 true ; \
296 fi
297
298 install-no-fixedincludes: install-dirs gcc-no-fixedincludes \
299 install-autoconf \
300 install-bfd \
301 install-binutils \
302 install-opcodes \
303 install-byacc \
304 install-cvs \
305 install-diff \
306 install-deja-gnu \
307 install-emacs \
308 install-etc \
309 install-expect \
310 install-flex \
311 install-gas \
312 install-gdb \
313 install-glob \
314 install-gprof \
315 install-grep \
316 install-ispell \
317 install-ld \
318 install-libg++ \
319 install-libiberty \
320 install-libm \
321 install-make \
322 install-mmalloc \
323 install-newlib \
324 install-chillrt \
325 install-patch \
326 install-rcs \
327 install-readline \
328 install-send_pr \
329 install-tcl \
330 install-texinfo \
331 install-tk \
332 install-z8ksim \
333 install-h8300sim \
334 install-fileutils install-find install-gawk install-m4 install-sed install-shellutils \
335 install-textutils install-time install-wdiff
336
337 gcc-no-fixedincludes:
338 @if [ -f ./gcc/Makefile ] ; then \
339 rootme=`pwd` ; export rootme ; \
340 (cd ./gcc; \
341 $(MAKE) $(FLAGS_TO_PASS) install install-man \
342 "INSTALL_HEADERS=install-common-headers install-float-h install-limits-h") ; \
343 else \
344 true ; \
345 fi
346
347 install.cross: install-dirs install-libiberty install-mmalloc \
348 install-binutils install-opcodes install-byacc install-flex \
349 install-ld install-gas install-readline \
350 install-glob install-gdb install-mmalloc \
351 install-newlib install-chillrt install-gcc install-etc install-deja-gnu
352
353 ### deja-gnu
354 all-deja-gnu: force
355 @if [ -f ./deja-gnu/Makefile ] ; then \
356 rootme=`pwd` ; export rootme ; \
357 (cd ./deja-gnu; $(MAKE) $(FLAGS_TO_PASS) all) ; \
358 else \
359 true ; \
360 fi
361
362 install-deja-gnu: force
363 @if [ -f ./deja-gnu/Makefile ] ; then \
364 rootme=`pwd` ; export rootme ; \
365 (cd ./deja-gnu; $(MAKE) $(FLAGS_TO_PASS) install) ; \
366 else \
367 true ; \
368 fi
369
370 ### autoconf
371 all-autoconf: force
372 @if [ -f ./autoconf/Makefile ] ; then \
373 rootme=`pwd` ; export rootme ; \
374 (cd ./autoconf; $(MAKE) $(FLAGS_TO_PASS) all) ; \
375 else \
376 true ; \
377 fi
378
379 install-autoconf: force
380 @if [ -f ./autoconf/Makefile ] ; then \
381 rootme=`pwd` ; export rootme ; \
382 (cd ./autoconf; $(MAKE) $(FLAGS_TO_PASS) install) ; \
383 else \
384 true ; \
385 fi
386
387 ### etc
388 all-etc: force
389 @if [ -f ./etc/Makefile ] ; then \
390 rootme=`pwd` ; export rootme ; \
391 (cd ./etc; $(MAKE) $(FLAGS_TO_PASS) all) ; \
392 else \
393 true ; \
394 fi
395
396 install-etc: force
397 @if [ -f ./etc/Makefile ] ; then \
398 rootme=`pwd` ; export rootme ; \
399 (cd ./etc; $(MAKE) $(FLAGS_TO_PASS) install) ; \
400 else \
401 true ; \
402 fi
403
404 ### libiberty
405 all-libiberty: force
406 @if [ -f ./libiberty/Makefile ] ; then \
407 rootme=`pwd` ; export rootme ; \
408 (cd ./libiberty; \
409 $(MAKE) $(FLAGS_TO_PASS) all) ; \
410 else \
411 true ; \
412 fi
413
414 install-libiberty: force
415 @if [ -f ./libiberty/Makefile ] ; then \
416 rootme=`pwd` ; export rootme ; \
417 (cd ./libiberty; \
418 $(MAKE) $(FLAGS_TO_PASS) install) ; \
419 else \
420 true ; \
421 fi
422
423 ### xiberty
424 all-xiberty: all-gcc all-newlib
425 @if [ -f ./xiberty/Makefile ] ; then \
426 rootme=`pwd` ; export rootme ; \
427 srcroot=`cd $(srcdir); pwd`; export srcroot ; \
428 (cd ./xiberty; \
429 $(MAKE) $(TARGET_FLAGS_TO_PASS) all) ; \
430 else \
431 true ; \
432 fi
433
434 install-xiberty: force
435 @if [ -f ./xiberty/Makefile ] ; then \
436 rootme=`pwd` ; export rootme ; \
437 srcroot=`cd $(srcdir); pwd`; export srcroot ; \
438 (cd ./xiberty; \
439 $(MAKE) $(TARGET_FLAGS_TO_PASS) install) ; \
440 else \
441 true ; \
442 fi
443
444 ### mmalloc
445 all-mmalloc: force
446 @if [ -f ./mmalloc/Makefile ] ; then \
447 rootme=`pwd` ; export rootme ; \
448 (cd ./mmalloc; \
449 $(MAKE) $(FLAGS_TO_PASS) all) ; \
450 else \
451 true ; \
452 fi
453
454 install-mmalloc: force
455 @if [ -f ./mmalloc/Makefile ] ; then \
456 rootme=`pwd` ; export rootme ; \
457 (cd ./mmalloc; \
458 $(MAKE) $(FLAGS_TO_PASS) install) ; \
459 else \
460 true ; \
461 fi
462
463 ### texinfo
464 all-texinfo: all-libiberty
465 @if [ -f ./texinfo/Makefile ] ; then \
466 rootme=`pwd` ; export rootme ; \
467 (cd ./texinfo; \
468 $(MAKE) $(FLAGS_TO_PASS) all) ; \
469 else \
470 true ; \
471 fi
472
473 install-texinfo: force
474 @if [ -f ./texinfo/Makefile ] ; then \
475 rootme=`pwd` ; export rootme ; \
476 (cd ./texinfo; \
477 $(MAKE) $(FLAGS_TO_PASS) install) ; \
478 else \
479 true ; \
480 fi
481
482 ### bfd
483 all-bfd: force
484 @if [ -f ./bfd/Makefile ] ; then \
485 rootme=`pwd` ; export rootme ; \
486 (cd ./bfd; \
487 $(MAKE) $(FLAGS_TO_PASS) all) ; \
488 else \
489 true ; \
490 fi
491
492 install-bfd: force
493 @if [ -f ./bfd/Makefile ] ; then \
494 rootme=`pwd` ; export rootme ; \
495 (cd ./bfd; \
496 $(MAKE) $(FLAGS_TO_PASS) install) ; \
497 else \
498 true ; \
499 fi
500
501
502 ### opcodes
503 all-opcodes: force
504 @if [ -f ./opcodes/Makefile ] ; then \
505 rootme=`pwd` ; export rootme ; \
506 (cd ./opcodes; \
507 $(MAKE) $(FLAGS_TO_PASS) all) ; \
508 else \
509 true ; \
510 fi
511
512 install-opcodes: force
513 @if [ -f ./opcodes/Makefile ] ; then \
514 rootme=`pwd` ; export rootme ; \
515 (cd ./opcodes; \
516 $(MAKE) $(FLAGS_TO_PASS) install) ; \
517 else \
518 true ; \
519 fi
520
521 ### binutils
522 all-binutils: all-opcodes all-libiberty all-bfd all-flex
523 @if [ -f ./binutils/Makefile ] ; then \
524 rootme=`pwd` ; export rootme ; \
525 (cd ./binutils; \
526 $(MAKE) $(FLAGS_TO_PASS) all) ; \
527 else \
528 true ; \
529 fi
530
531 install-binutils: force
532 @if [ -f ./binutils/Makefile ] ; then \
533 rootme=`pwd` ; export rootme ; \
534 (cd ./binutils; \
535 $(MAKE) $(FLAGS_TO_PASS) install) ; \
536 else \
537 true ; \
538 fi
539
540 ### newlib
541 all-newlib: all-binutils all-ld all-gas all-gcc
542 @if [ -f ./newlib/Makefile ] ; then \
543 rootme=`pwd` ; export rootme ; \
544 srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
545 (cd ./newlib; \
546 $(MAKE) $(TARGET_FLAGS_TO_PASS) all) ; \
547 else \
548 true ; \
549 fi
550
551 install-newlib: force
552 @if [ -f ./newlib/Makefile ] ; then \
553 rootme=`pwd` ; export rootme ; \
554 srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
555 (cd ./newlib; \
556 $(MAKE) $(TARGET_FLAGS_TO_PASS) install) ; \
557 else \
558 true ; \
559 fi
560
561 ### start-sanitize-chill
562 ### chillrt
563 all-chillrt: all-binutils all-ld all-gas all-gcc
564 @if [ -f ./chillrt/Makefile ] ; then \
565 rootme=`pwd` ; export rootme ; \
566 srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
567 (cd ./chillrt; \
568 $(MAKE) $(TARGET_FLAGS_TO_PASS) all) ; \
569 else \
570 true ; \
571 fi
572
573 install-chillrt: force
574 @if [ -f ./chillrt/Makefile ] ; then \
575 rootme=`pwd` ; export rootme ; \
576 srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
577 (cd ./chillrt; \
578 $(MAKE) $(TARGET_FLAGS_TO_PASS) install) ; \
579 else \
580 true ; \
581 fi
582 ### end-sanitize-chill
583
584 ### gprof
585 all-gprof: all-libiberty all-bfd
586 @if [ -f ./gprof/Makefile ] ; then \
587 rootme=`pwd` ; export rootme ; \
588 (cd ./gprof; \
589 $(MAKE) $(FLAGS_TO_PASS) all) ; \
590 else \
591 true ; \
592 fi
593
594 install-gprof: force
595 @if [ -f ./gprof/Makefile ] ; then \
596 rootme=`pwd` ; export rootme ; \
597 (cd ./gprof; \
598 $(MAKE) $(FLAGS_TO_PASS) install) ; \
599 else \
600 true ; \
601 fi
602
603 ### byacc
604 all-byacc: force
605 @if [ -f ./byacc/Makefile ] ; then \
606 rootme=`pwd` ; export rootme ; \
607 (cd ./byacc; \
608 $(MAKE) $(FLAGS_TO_PASS) all) ; \
609 else \
610 true ; \
611 fi
612
613 install-byacc: force
614 @if [ -f ./byacc/Makefile ] ; then \
615 rootme=`pwd` ; export rootme ; \
616 (cd ./byacc; \
617 $(MAKE) $(FLAGS_TO_PASS) install) ; \
618 else \
619 true ; \
620 fi
621
622 ### flex
623 all-flex: all-libiberty
624 @if [ -f ./flex/Makefile ] ; then \
625 rootme=`pwd` ; export rootme ; \
626 (cd ./flex; \
627 $(MAKE) $(FLAGS_TO_PASS) all) ; \
628 else \
629 true ; \
630 fi
631
632 install-flex: force
633 @if [ -f ./flex/Makefile ] ; then \
634 rootme=`pwd` ; export rootme ; \
635 (cd ./flex; \
636 $(MAKE) $(FLAGS_TO_PASS) install) ; \
637 else \
638 true ; \
639 fi
640 ### gcc
641 all-gcc: all-libiberty all-byacc all-binutils
642 @if [ -f ./gcc/Makefile ] ; then \
643 rootme=`pwd` ; export rootme ; \
644 (cd ./gcc; \
645 $(MAKE) $(FLAGS_TO_PASS) all) ; \
646 else \
647 true ; \
648 fi
649
650 install-gcc: force
651 @if [ -f ./gcc/Makefile ] ; then \
652 rootme=`pwd` ; export rootme ; \
653 (cd ./gcc; \
654 $(MAKE) $(FLAGS_TO_PASS) install) ; \
655 else \
656 true ; \
657 fi
658
659 ### readline
660 all-readline: force
661 @if [ -f ./readline/Makefile ] ; then \
662 rootme=`pwd` ; export rootme ; \
663 (cd ./readline; \
664 $(MAKE) $(FLAGS_TO_PASS) all) ; \
665 else \
666 true ; \
667 fi
668
669 install-readline: force
670 @if [ -f ./readline/Makefile ] ; then \
671 rootme=`pwd` ; export rootme ; \
672 (cd ./readline; \
673 $(MAKE) $(FLAGS_TO_PASS) install) ; \
674 else \
675 true ; \
676 fi
677
678 ### glob
679 all-glob: force
680 @if [ -f ./glob/Makefile ] ; then \
681 rootme=`pwd` ; export rootme ; \
682 (cd ./glob; \
683 $(MAKE) $(FLAGS_TO_PASS) all) ; \
684 else \
685 true ; \
686 fi
687
688 install-glob: force
689 @if [ -f ./glob/Makefile ] ; then \
690 rootme=`pwd` ; export rootme ; \
691 (cd ./glob; \
692 $(MAKE) $(FLAGS_TO_PASS) install) ; \
693 else \
694 true ; \
695 fi
696
697 ### gas
698 all-gas: all-libiberty all-opcodes all-bfd
699 @if [ -f ./gas/Makefile ] ; then \
700 rootme=`pwd` ; export rootme ; \
701 (cd ./gas; \
702 $(MAKE) $(FLAGS_TO_PASS) all) ; \
703 else \
704 true ; \
705 fi
706
707 install-gas: force
708 @if [ -f ./gas/Makefile ] ; then \
709 rootme=`pwd` ; export rootme ; \
710 (cd ./gas; \
711 $(MAKE) $(FLAGS_TO_PASS) install) ; \
712 else \
713 true ; \
714 fi
715
716 ### gas
717 all-tgas: all-libiberty all-bfd
718 @if [ -f ./tgas/Makefile ] ; then \
719 rootme=`pwd` ; export rootme ; \
720 (cd ./tgas; \
721 $(MAKE) $(FLAGS_TO_PASS) all) ; \
722 else \
723 true ; \
724 fi
725
726
727 ### ld
728 all-ld: all-libiberty all-bfd all-byacc all-flex
729 @if [ -f ./ld/Makefile ] ; then \
730 rootme=`pwd` ; export rootme ; \
731 (cd ./ld; \
732 $(MAKE) $(FLAGS_TO_PASS) all) ; \
733 else \
734 true ; \
735 fi
736
737 install-ld: force
738 @if [ -f ./ld/Makefile ] ; then \
739 rootme=`pwd` ; export rootme ; \
740 (cd ./ld; \
741 $(MAKE) $(FLAGS_TO_PASS) install) ; \
742 else \
743 true ; \
744 fi
745
746 ### gdb
747 all-gdb: all-bfd all-opcodes all-libiberty all-mmalloc all-readline all-glob all-byacc
748 @if [ -f ./gdb/Makefile ] ; then \
749 rootme=`pwd` ; export rootme ; \
750 (cd ./gdb; \
751 $(MAKE) $(FLAGS_TO_PASS) all) ; \
752 else \
753 true ; \
754 fi
755
756 install-gdb: force
757 @if [ -f ./gdb/Makefile ] ; then \
758 rootme=`pwd` ; export rootme ; \
759 (cd ./gdb; \
760 $(MAKE) $(FLAGS_TO_PASS) install) ; \
761 else \
762 true ; \
763 fi
764
765 ### make
766 all-make: all-libiberty
767 @if [ -f ./make/Makefile ] ; then \
768 rootme=`pwd` ; export rootme ; \
769 (cd ./make; \
770 $(MAKE) $(FLAGS_TO_PASS) all) ; \
771 else \
772 true ; \
773 fi
774
775 install-make: force
776 @if [ -f ./make/Makefile ] ; then \
777 rootme=`pwd` ; export rootme ; \
778 (cd ./make; \
779 $(MAKE) $(FLAGS_TO_PASS) install) ; \
780 else \
781 true ; \
782 fi
783
784 ### diff
785 all-diff: force
786 @if [ -f ./diff/Makefile ] ; then \
787 rootme=`pwd` ; export rootme ; \
788 (cd ./diff; \
789 $(MAKE) $(FLAGS_TO_PASS) all) ; \
790 else \
791 true ; \
792 fi
793
794 install-diff: force
795 @if [ -f ./diff/Makefile ] ; then \
796 rootme=`pwd` ; export rootme ; \
797 (cd ./diff/; \
798 $(MAKE) $(FLAGS_TO_PASS) install) ; \
799 else \
800 true ; \
801 fi
802
803 ### grep
804 all-grep: force
805 @if [ -f ./grep/Makefile ] ; then \
806 rootme=`pwd` ; export rootme ; \
807 (cd ./grep; \
808 $(MAKE) $(FLAGS_TO_PASS) all) ; \
809 else \
810 true ; \
811 fi
812
813 install-grep: force
814 @if [ -f ./grep/Makefile ] ; then \
815 rootme=`pwd` ; export rootme ; \
816 (cd ./grep; \
817 $(MAKE) $(FLAGS_TO_PASS) install) ; \
818 else \
819 true ; \
820 fi
821
822 ### rcs
823 all-rcs: force
824 @if [ -f ./rcs/Makefile ] ; then \
825 rootme=`pwd` ; export rootme ; \
826 (cd ./rcs; \
827 $(MAKE) $(FLAGS_TO_PASS) all) ; \
828 else \
829 true ; \
830 fi
831
832 install-rcs: force
833 @if [ -f ./rcs/Makefile ] ; then \
834 rootme=`pwd` ; export rootme ; \
835 (cd ./rcs; \
836 $(MAKE) $(FLAGS_TO_PASS) install) ; \
837 else \
838 true ; \
839 fi
840
841 ### cvs
842 all-cvs: force
843 @if [ -f ./cvs/Makefile ] ; then \
844 rootme=`pwd` ; export rootme ; \
845 (cd ./cvs; \
846 $(MAKE) $(FLAGS_TO_PASS) all) ; \
847 else \
848 true ; \
849 fi
850
851 install-cvs: force
852 @if [ -f ./cvs/Makefile ] ; then \
853 rootme=`pwd` ; export rootme ; \
854 (cd ./cvs; \
855 $(MAKE) $(FLAGS_TO_PASS) install) ; \
856 else \
857 true ; \
858 fi
859
860 ### patch
861 all-patch: force
862 @if [ -f ./patch/Makefile ] ; then \
863 rootme=`pwd` ; export rootme ; \
864 (cd ./patch; \
865 $(MAKE) $(FLAGS_TO_PASS) all) ; \
866 else \
867 true ; \
868 fi
869
870 install-patch: force
871 @if [ -f ./patch/Makefile ] ; then \
872 rootme=`pwd` ; export rootme ; \
873 (cd ./patch; \
874 $(MAKE) $(FLAGS_TO_PASS) \
875 bindir=$(bindir) \
876 man1dir=$(man1dir) install) ; \
877 else \
878 true ; \
879 fi
880
881 ### emacs
882 all-emacs: force
883 @if [ -f ./emacs/Makefile ] ; then \
884 rootme=`pwd` ; export rootme ; \
885 (cd ./emacs; \
886 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) ; \
887 else \
888 true ; \
889 fi
890
891 install-emacs: force
892 @if [ -f ./emacs/Makefile ] ; then \
893 rootme=`pwd` ; export rootme ; \
894 (cd ./emacs; \
895 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) ; \
896 else \
897 true ; \
898 fi
899
900 ### ispell
901 all-ispell: all-emacs
902 @if [ -f ./ispell/Makefile ] ; then \
903 rootme=`pwd` ; export rootme ; \
904 (cd ./ispell; \
905 $(MAKE) $(FLAGS_TO_PASS) all) ; \
906 else \
907 true ; \
908 fi
909
910 install-ispell: force
911 @if [ -f ./ispell/Makefile ] ; then \
912 rootme=`pwd` ; export rootme ; \
913 (cd ./ispell; \
914 $(MAKE) $(FLAGS_TO_PASS) install) ; \
915 else \
916 true ; \
917 fi
918
919 ### send_pr
920 all-send_pr: force
921 @if [ -f ./send_pr/Makefile ] ; then \
922 rootme=`pwd` ; export rootme ; \
923 (cd ./send_pr; \
924 $(MAKE) $(FLAGS_TO_PASS) all) ; \
925 else \
926 true ; \
927 fi
928
929 install-send_pr: force
930 @if [ -f ./send_pr/Makefile ] ; then \
931 rootme=`pwd` ; export rootme ; \
932 (cd ./send_pr; \
933 $(MAKE) $(FLAGS_TO_PASS) install) ; \
934 else \
935 true ; \
936 fi
937
938 ### libm
939 all-libm: force
940 @if [ -f ./libm/Makefile ] ; then \
941 rootme=`pwd` ; export rootme ; \
942 (cd ./libm; \
943 $(MAKE) $(TARGET_FLAGS_TO_PASS) all) ; \
944 else \
945 true ; \
946 fi
947
948 install-libm: force
949 @if [ -f ./libm/Makefile ] ; then \
950 rootme=`pwd` ; export rootme ; \
951 (cd ./libm; \
952 $(MAKE) $(TARGET_FLAGS_TO_PASS) install) ; \
953 else \
954 true ; \
955 fi
956
957 ### libg++
958
959 all-libg++: all-gas all-ld all-gcc all-xiberty all-newlib
960 @if [ -f ./libg++/Makefile ] ; then \
961 rootme=`pwd` ; export rootme ; \
962 srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
963 (cd ./libg++; \
964 $(MAKE) $(TARGET_FLAGS_TO_PASS) all) ; \
965 else \
966 true ; \
967 fi
968
969 install-libg++: force
970 @if [ -f ./libg++/Makefile ] ; then \
971 rootme=`pwd` ; export rootme ; \
972 srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
973 (cd ./libg++; \
974 $(MAKE) $(TARGET_FLAGS_TO_PASS) install) ; \
975 else \
976 true ; \
977 fi
978 ### tcl
979 all-tcl:
980 @if [ -f ./tcl/Makefile ] ; then \
981 rootme=`pwd` ; export rootme ; \
982 srcroot=`cd $(srcdir); pwd`; export srcroot ; \
983 (cd ./tcl; \
984 $(MAKE) $(FLAGS_TO_PASS) all) ; \
985 else \
986 true ; \
987 fi
988
989 install-tcl: force
990 @if [ -f ./tcl/Makefile ] ; then \
991 rootme=`pwd` ; export rootme ; \
992 srcroot=`cd $(srcdir); pwd`; export srcroot ; \
993 (cd ./tcl; \
994 $(MAKE) $(FLAGS_TO_PASS) install) ; \
995 else \
996 true ; \
997 fi
998
999
1000 ### tk
1001 all-tk: all-tcl
1002 @if [ -f ./tk/Makefile ] ; then \
1003 rootme=`pwd` ; export rootme ; \
1004 srcroot=`cd $(srcdir); pwd`; export srcroot ; \
1005 (cd ./tk; \
1006 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) ; \
1007 else \
1008 true ; \
1009 fi
1010
1011 install-tk: force
1012 @if [ -f ./tk/Makefile ] ; then \
1013 rootme=`pwd` ; export rootme ; \
1014 srcroot=`cd $(srcdir); pwd`; export srcroot ; \
1015 (cd ./tk; \
1016 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) ; \
1017 else \
1018 true ; \
1019 fi
1020
1021 ### expect
1022 all-expect: all-tcl
1023 @if [ -f ./expect/Makefile ] ; then \
1024 rootme=`pwd` ; export rootme ; \
1025 srcroot=`cd $(srcdir); pwd`; export srcroot ; \
1026 (cd ./expect; \
1027 $(MAKE) $(FLAGS_TO_PASS) all) ; \
1028 else \
1029 true ; \
1030 fi
1031
1032 install-expect: force
1033 @if [ -f ./expect/Makefile ] ; then \
1034 rootme=`pwd` ; export rootme ; \
1035 srcroot=`cd $(srcdir); pwd`; export srcroot ; \
1036 (cd ./expect; \
1037 $(MAKE) $(FLAGS_TO_PASS) install) ; \
1038 else \
1039 true ; \
1040 fi
1041
1042 ### z8ksim
1043 all-z8ksim: all-bfd
1044 @if [ -f ./z8ksim/Makefile ] ; then \
1045 rootme=`pwd` ; export rootme ; \
1046 (cd ./z8ksim; \
1047 $(MAKE) $(FLAGS_TO_PASS) all) ; \
1048 else \
1049 true ; \
1050 fi
1051
1052 install-z8ksim: force
1053 @if [ -f ./z8ksim/Makefile ] ; then \
1054 rootme=`pwd` ; export rootme ; \
1055 (cd ./z8ksim; \
1056 $(MAKE) $(FLAGS_TO_PASS) install) ; \
1057 else \
1058 true ; \
1059 fi
1060
1061 ### h8300sim:
1062 all-h8300sim: all-bfd
1063 @if [ -f ./h8300sim/Makefile ] ; then \
1064 rootme=`pwd` ; export rootme ; \
1065 (cd ./h8300sim; \
1066 $(MAKE) $(FLAGS_TO_PASS) all) ; \
1067 else \
1068 true ; \
1069 fi
1070
1071 install-h8300sim: force
1072 @if [ -f ./h8300sim/Makefile ] ; then \
1073 rootme=`pwd` ; export rootme ; \
1074 (cd ./h8300sim; \
1075 $(MAKE) $(FLAGS_TO_PASS) install) ; \
1076 else \
1077 true ; \
1078 fi
1079
1080
1081 ### fileutils
1082 all-fileutils: force
1083 @if [ -f ./fileutils/Makefile ] ; then \
1084 rootme=`pwd` ; export rootme ; \
1085 (cd ./fileutils; $(MAKE) $(FLAGS_TO_PASS) all) ; \
1086 else \
1087 true ; \
1088 fi
1089
1090 install-fileutils: force
1091 @if [ -f ./fileutils/Makefile ] ; then \
1092 rootme=`pwd` ; export rootme ; \
1093 (cd ./fileutils; $(MAKE) $(FLAGS_TO_PASS) install) ; \
1094 else \
1095 true ; \
1096 fi
1097
1098 ### find
1099 all-find: force
1100 @if [ -f ./find/Makefile ] ; then \
1101 rootme=`pwd` ; export rootme ; \
1102 (cd ./find; $(MAKE) $(FLAGS_TO_PASS) all) ; \
1103 else \
1104 true ; \
1105 fi
1106
1107 install-find: force
1108 @if [ -f ./find/Makefile ] ; then \
1109 rootme=`pwd` ; export rootme ; \
1110 (cd ./find; $(MAKE) $(FLAGS_TO_PASS) install) ; \
1111 else \
1112 true ; \
1113 fi
1114
1115 ### gawk
1116 all-gawk: force
1117 @if [ -f ./gawk/Makefile ] ; then \
1118 rootme=`pwd` ; export rootme ; \
1119 (cd ./gawk; $(MAKE) $(FLAGS_TO_PASS) all) ; \
1120 else \
1121 true ; \
1122 fi
1123
1124 install-gawk: force
1125 @if [ -f ./gawk/Makefile ] ; then \
1126 rootme=`pwd` ; export rootme ; \
1127 (cd ./gawk; $(MAKE) $(FLAGS_TO_PASS) install) ; \
1128 else \
1129 true ; \
1130 fi
1131
1132 ### m4
1133 all-m4: all-libiberty
1134 @if [ -f ./m4/Makefile ] ; then \
1135 rootme=`pwd` ; export rootme ; \
1136 (cd ./m4; $(MAKE) $(FLAGS_TO_PASS) all) ; \
1137 else \
1138 true ; \
1139 fi
1140
1141 install-m4: force
1142 @if [ -f ./m4/Makefile ] ; then \
1143 rootme=`pwd` ; export rootme ; \
1144 (cd ./m4; $(MAKE) $(FLAGS_TO_PASS) install) ; \
1145 else \
1146 true ; \
1147 fi
1148
1149 ### sed
1150 all-sed: force
1151 @if [ -f ./sed/Makefile ] ; then \
1152 rootme=`pwd` ; export rootme ; \
1153 (cd ./sed; $(MAKE) $(FLAGS_TO_PASS) all) ; \
1154 else \
1155 true ; \
1156 fi
1157
1158 install-sed: force
1159 @if [ -f ./sed/Makefile ] ; then \
1160 rootme=`pwd` ; export rootme ; \
1161 (cd ./sed; $(MAKE) $(FLAGS_TO_PASS) install) ; \
1162 else \
1163 true ; \
1164 fi
1165
1166 ### time
1167 all-time: force
1168 @if [ -f ./time/Makefile ] ; then \
1169 rootme=`pwd` ; export rootme ; \
1170 (cd ./time; $(MAKE) $(FLAGS_TO_PASS) all) ; \
1171 else \
1172 true ; \
1173 fi
1174
1175 install-time: force
1176 @if [ -f ./time/Makefile ] ; then \
1177 rootme=`pwd` ; export rootme ; \
1178 (cd ./time; $(MAKE) $(FLAGS_TO_PASS) install) ; \
1179 else \
1180 true ; \
1181 fi
1182
1183 ### wdiff
1184 all-wdiff: force
1185 @if [ -f ./wdiff/Makefile ] ; then \
1186 rootme=`pwd` ; export rootme ; \
1187 (cd ./wdiff; $(MAKE) $(FLAGS_TO_PASS) all) ; \
1188 else \
1189 true ; \
1190 fi
1191
1192 install-wdiff: force
1193 @if [ -f ./wdiff/Makefile ] ; then \
1194 rootme=`pwd` ; export rootme ; \
1195 (cd ./wdiff; $(MAKE) $(FLAGS_TO_PASS) install) ; \
1196 else \
1197 true ; \
1198 fi
1199
1200 ### shellutils
1201 all-shellutils: force
1202 @if [ -f ./shellutils/Makefile ] ; then \
1203 rootme=`pwd` ; export rootme ; \
1204 (cd ./shellutils; $(MAKE) $(FLAGS_TO_PASS) all) ; \
1205 else \
1206 true ; \
1207 fi
1208
1209 install-shellutils: force
1210 @if [ -f ./shellutils/Makefile ] ; then \
1211 rootme=`pwd` ; export rootme ; \
1212 (cd ./shellutils; $(MAKE) $(FLAGS_TO_PASS) install) ; \
1213 else \
1214 true ; \
1215 fi
1216
1217 ### textutils
1218 all-textutils: force
1219 @if [ -f ./textutils/Makefile ] ; then \
1220 rootme=`pwd` ; export rootme ; \
1221 (cd ./textutils; $(MAKE) $(FLAGS_TO_PASS) all) ; \
1222 else \
1223 true ; \
1224 fi
1225
1226 install-textutils: force
1227 @if [ -f ./textutils/Makefile ] ; then \
1228 rootme=`pwd` ; export rootme ; \
1229 (cd ./textutils; $(MAKE) $(FLAGS_TO_PASS) install) ; \
1230 else \
1231 true ; \
1232 fi
1233
1234
1235
1236 ### other supporting targets
1237
1238 subdir_do:
1239 @for i in $(DODIRS); do \
1240 if [ -f ./$$i/localenv ] || [ -f ./$$i/Makefile ] ; then \
1241 case $$i in \
1242 libg++ | xiberty | newlib | chillrt) \
1243 if (rootme=`pwd` ; export rootme ; \
1244 srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
1245 cd ./$$i ; \
1246 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(DO)) ; then true ; \
1247 else exit 1 ; fi \
1248 ;; \
1249 *) \
1250 if (rootme=`pwd` ; export rootme ; \
1251 cd ./$$i ; \
1252 $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
1253 else exit 1 ; fi \
1254 ;; \
1255 esac ; \
1256 else true ; fi ; \
1257 done
1258
1259 # The "else true" stuff is for Ultrix; the shell returns the exit code
1260 # of the "if" command, if no commands are run in the "then" or "else" part,
1261 # causing Make to quit.
1262
1263 MAKEDIRS= \
1264 $(prefix) \
1265 $(exec_prefix) \
1266 $(tooldir)
1267
1268 # $(bindir) \
1269 # $(libdir) \
1270 # $(includedir) \
1271 # $(datadir) \
1272 # $(docdir) \
1273 # $(mandir) \
1274 # $(man1dir) \
1275 # $(man5dir)
1276
1277 # $(man2dir) \
1278 # $(man3dir) \
1279 # $(man4dir) \
1280 # $(man6dir) \
1281 # $(man7dir) \
1282 # $(man8dir)
1283
1284 install-dirs:
1285 for i in $(MAKEDIRS) ; do \
1286 echo Making $$i... ; \
1287 parent=`echo $$i|sed -e 's@/[^/]*$$@@'`; \
1288 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi ; \
1289 if [ ! -d $$i ] ; then \
1290 if mkdir $$i ; then \
1291 true ; \
1292 else \
1293 exit 1 ; \
1294 fi ; \
1295 else \
1296 true ; \
1297 fi ; \
1298 done
1299
1300 install-info-dirs:
1301 if [ -d $(prefix) ] ; then true ; else mkdir $(prefix) ; fi
1302
1303 dir.info:
1304 $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new
1305 mv -f dir.info.new dir.info
1306
1307 dist:
1308 @echo "Building a full distribution of this tree isn't done"
1309 @echo "via 'make dist'. Check out the etc/ subdirectory"
1310
1311 etags tags: TAGS
1312
1313 TAGS:
1314 etags `$(MAKE) ls`
1315
1316 ls:
1317 @echo Makefile
1318 @for i in $(SUBDIRS); \
1319 do \
1320 (cd $$i; \
1321 pwd=`pwd`; \
1322 wd=`basename $$pwd`; \
1323 for j in `$(MAKE) ls`; \
1324 do \
1325 echo $$wd/$$j; \
1326 done) \
1327 done
1328
1329 force:
1330
1331 # with the gnu make, this is done automatically.
1332
1333 Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
1334 $(SHELL) ./config.status
1335
1336 #
1337 # Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
1338
1339 DEVO_SUPPORT= README cfg-paper.texi Makefile.in configure configure.in \
1340 config.sub config configure.man configure.texi move-if-change \
1341 COPYING.LIB
1342 GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline glob
1343 GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS) texinfo/fsf/texinfo.tex
1344
1345 setup-dirs: force
1346 ./configure sun4
1347 make clean
1348 ./configure -rm sun4
1349 chmod og=u `find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
1350
1351 gdb.tar.Z: setup-dirs
1352 (cd gdb; $(MAKE) -f Makefile.in make-proto-gdb.dir)
1353 $(MAKE) $(MFLAGS) -f Makefile.in make-gdb.tar.Z
1354
1355 make-gdb.tar.Z: $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS) gdb texinfo/fsf/texinfo.tex
1356 rm -rf proto-toplev; mkdir proto-toplev
1357 ln -s ../gdb/proto-gdb.dir proto-toplev/gdb
1358 (cd proto-toplev; for i in $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS); do \
1359 ln -s ../$$i . ; \
1360 done)
1361 # Put only one copy (four hard links) of COPYING in the tar file.
1362 rm proto-toplev/bfd/COPYING
1363 ln proto-toplev/gdb/COPYING proto-toplev/bfd/COPYING
1364 rm proto-toplev/include/COPYING
1365 ln proto-toplev/gdb/COPYING proto-toplev/include/COPYING
1366 rm proto-toplev/readline/COPYING
1367 ln proto-toplev/gdb/COPYING proto-toplev/readline/COPYING
1368 # Take out texinfo from configurable dirs
1369 rm proto-toplev/configure.in
1370 sed '/^configdirs=/s/texinfo //' <configure.in >proto-toplev/configure.in
1371 # Take out glob from buildable dirs
1372 rm proto-toplev/Makefile.in
1373
1374 sed -e '/^SUBDIRS =/s/glob //' \
1375 -e '/^all\.normal: /s/\all-texinfo //' \
1376 -e '/^clean: /s/clean-texinfo //' \
1377 -e '/^install\.all: /s/install-texinfo //' \
1378 <Makefile.in >proto-toplev/Makefile.in
1379
1380 mkdir proto-toplev/texinfo
1381 mkdir proto-toplev/texinfo/fsf
1382 ln -s ../../../texinfo/fsf/texinfo.tex proto-toplev/texinfo/fsf/
1383 chmod og=u `find proto-toplev -print`
1384 (VER=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
1385 echo "==> Making gdb-$$VER.tar.Z"; \
1386 ln -s proto-toplev gdb-$$VER; \
1387 tar cfh - gdb-$$VER \
1388 | compress -v >gdb-$$VER.tar.Z)
1389
1390
1391 # end of Makefile.in
This page took 0.17335 seconds and 5 git commands to generate.