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