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