ce118d547c1b062744eb0515494350312df1527c
[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 PRMS = all-prms
201
202 #### host and target specific makefile fragments come in here.
203 ###
204
205 # Flags to pass down to all sub-makes.
206 # Please keep these in alphabetical order.
207 BASE_FLAGS_TO_PASS = \
208 "AR_FLAGS=$(AR_FLAGS)" \
209 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
210 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
211 "BISON=$(BISON)" \
212 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
213 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
214 "CFLAGS=$(CFLAGS)" \
215 $(start-sanitize-chill)\
216 "CHILLFLAGS=$(CHILLFLAGS)" \
217 "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \
218 "CHILL_LIB=$(CHILL_LIB)" \
219 $(end-sanitize-chill)\
220 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
221 "CXXFLAGS=$(CXXFLAGS)" \
222 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
223 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
224 "INSTALL=$(INSTALL)" \
225 "INSTALL_DATA=$(INSTALL_DATA)" \
226 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
227 "LDFLAGS=$(LDFLAGS)" \
228 "LEX=$(LEX)" \
229 "LOADLIBES=$(LOADLIBES)" \
230 "MAKEINFO=$(MAKEINFO)" \
231 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
232 "PRMS=$(PRMS)" \
233 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
234 "XTRAFLAGS_FOR_TARGET=$(XTRAFLAGS)" \
235 "exec_prefix=$(exec_prefix)" \
236 "prefix=$(prefix)" \
237 "tooldir=$(tooldir)"
238
239 # Flags to pass down to most sub-makes, in which we're building with
240 # the host environment.
241 # If any variables are added here, they must be added to do-*, below.
242 EXTRA_HOST_FLAGS = \
243 'AR=$(AR)' \
244 'AS=$(AS)' \
245 'CC=$(CC)' \
246 'CXX=$(CXX)' \
247 'NM=$(NM)' \
248 'RANLIB=$(RANLIB)' \
249 'XTRAFLAGS='
250
251 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
252
253 # Flags that are concerned with the location of the X11 include files
254 # and library files
255 X11_FLAGS_TO_PASS = \
256 "X11_INCLUDE_FLAGS=$(X11_INCLUDE_FLAGS)" \
257 "X11_LIB_FLAGS=$(X11_LIB_FLAGS)" \
258 "X11_LIB=$(X11_LIB)"
259
260 # Shell case of subdirectories which are built with the target environment.
261 TARGET_LIBS=libg++ | xiberty | newlib
262 $(start-sanitize-chill)
263 TARGET_LIBS=libg++ | xiberty | newlib | chillrt
264 $(end-sanitize-chill)
265
266 # Flags to pass down to makes which are built with the target environment.
267 # The double $ decreases the length of the command line; the variables
268 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
269 # If any variables are added here, they must be added to do-*, below.
270 EXTRA_TARGET_FLAGS = \
271 'AR=$$(AR_FOR_TARGET)' \
272 'AS=$$(AS_FOR_TARGET)' \
273 'CC=$$(CC_FOR_TARGET)' \
274 'CXX=$$(CXX_FOR_TARGET)' \
275 'NM=$$(NM_FOR_TARGET)' \
276 'RANLIB=$$(RANLIB_FOR_TARGET)' \
277 'XTRAFLAGS=$$(XTRAFLAGS_FOR_TARGET)'
278
279 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
280
281 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
282 # unfortunately needs the native compiler and the target ar and
283 # ranlib.
284 # If any variables are added here, they must be added to do-*, below.
285 EXTRA_GCC_FLAGS = \
286 'AR=$$(AR_FOR_TARGET)' \
287 'AS=$(AS)' \
288 'CC=$(CC)' \
289 'CXX=$(CXX)' \
290 'NM=$(NM)' \
291 'RANLIB=$$(RANLIB_FOR_TARGET)' \
292 'XTRAFLAGS='
293
294 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
295
296 # The first rule in the file had better be this one. Don't put any above it.
297 all: $(ALL)
298
299 .PHONY: all check dvi info install-info install-info-dirs
300 .PHONY: do-info do-check do-dvi do-install-info
301 .PHONY: do-clean do-mostlyclean do-distclean do-realclean
302 .NOEXPORT:
303
304 # Do a target for all the subdirectories. A ``make do-X'' will do a
305 # ``make X'' in all subdirectories (because, in general, X depends on
306 # fdo-X, a ``make X'' will also do this, but it may do additional work
307 # as well).
308 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
309 # because it is so large that it can easily overflow the command line
310 # length limit on some systems.
311 do-info do-check do-dvi do-install-info do-clean do-mostlyclean do-distclean do-realclean:
312 @target=`echo $@ | sed -e 's/^do-//'`; \
313 rootme=`pwd`; export rootme; \
314 srcroot=`cd $(srcdir); pwd`; export srcroot; \
315 for i in $(SUBDIRS); do \
316 if [ -f ./$$i/localenv ] || [ -f ./$$i/Makefile ]; then \
317 case $$i in \
318 $(TARGET_LIBS) ) \
319 for flag in $(EXTRA_TARGET_FLAGS); do \
320 eval `echo "$$flag" | sed -e "s|^\(.*\)=\(.*\)|\1='\2'|"`; \
321 done; \
322 ;; \
323 gcc) \
324 for flag in $(EXTRA_GCC_FLAGS); do \
325 eval `echo "$$flag" | sed -e "s|^\(.*\)=\(.*\)|\1='\2'|"`; \
326 done; \
327 ;; \
328 *) \
329 for flag in $(EXTRA_HOST_FLAGS); do \
330 eval `echo "$$flag" | sed -e "s|^\(.*\)=\(.*\)|\1='\2'|"`; \
331 done; \
332 ;; \
333 esac ; \
334 export AR AS CC CXX NM RANLIB XTRAFLAGS; \
335 if (cd ./$$i; \
336 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
337 "CC=$${CC}" "CXX=$${CXX}" "NM=$${NM}" \
338 "RANLIB=$${RANLIB}" "XTRAFLAGS=$${XTRAFLAGS}" \
339 $${target}); \
340 then true; else exit 1; fi; \
341 else true; fi; \
342 done
343
344 info: do-info
345 check: do-check
346 dvi: do-dvi
347
348 install-info: install-info-dirs do-install-info dir.info
349 if [ -f dir.info ] ; then \
350 $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \
351 fi
352
353 do-install-info: install-info-dirs
354
355 all.normal: all-m4 all-autoconf all-libiberty all-mmalloc all-texinfo \
356 all-byacc all-flex all-opcodes all-bfd all-ld all-gas all-tgas \
357 all-gcc all-binutils all-libg++ all-readline all-sim all-gdb \
358 all-make all-rcs all-cvs all-diff all-grep \
359 all-patch all-emacs all-ispell all-etc \
360 all-tcl all-tk all-expect \
361 all-newlib \
362 $(start-sanitize-chill) \
363 all-chillrt \
364 $(end-sanitize-chill) \
365 all-gprof all-prms all-send-pr all-libm all-deja-gnu \
366 all-fileutils all-find all-gawk all-sed all-shellutils \
367 all-textutils all-time all-wdiff all-uudecode \
368 all-hello all-tar all-gzip all-indent all-recode
369
370
371 all.cross: all-libiberty all-mmalloc all-gas all-byacc all-flex all-ld \
372 all-opcodes all-bfd all-readline all-sim \
373 all-gdb all-binutils all-gcc all-newlib \
374 $(start-sanitize-chill) \
375 all-chillrt \
376 $(end-sanitize-chill) \
377 all-deja-gnu
378
379 .PHONY: clean distclean mostlyclean realclean local-clean local-distclean
380
381 local-clean:
382 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E
383
384 local-distclean:
385 -rm -f Makefile config.status
386
387 clean: do-clean local-clean
388 mostlyclean: do-mostlyclean local-clean
389 distclean: do-distclean local-clean local-distclean
390 realclean: do-realclean local-clean local-distclean
391
392 uninstall:
393 @echo "the uninstall target is not supported in this tree"
394
395 install: $(INSTALL_TARGET)
396 -parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
397 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
398 -if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi
399
400 install.all: install-no-fixedincludes
401 @if [ -f ./gcc/Makefile ] ; then \
402 rootme=`pwd` ; export rootme ; \
403 (cd ./gcc; \
404 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
405 else \
406 true ; \
407 fi
408
409 install-no-fixedincludes: install-dirs gcc-no-fixedincludes \
410 install-autoconf \
411 install-bfd \
412 install-binutils \
413 install-byacc \
414 $(start-sanitize-chill) \
415 install-chillrt \
416 $(end-sanitize-chill) \
417 install-cvs \
418 install-deja-gnu \
419 install-diff \
420 install-emacs \
421 install-etc \
422 install-expect \
423 install-fileutils \
424 install-find \
425 install-flex \
426 install-gas \
427 install-gawk \
428 install-gdb \
429 install-glob \
430 install-gprof \
431 install-grep \
432 install-gzip \
433 install-hello \
434 install-indent \
435 install-ispell \
436 install-ld \
437 install-libg++ \
438 install-libiberty \
439 install-libm \
440 install-m4 \
441 install-make \
442 install-mmalloc \
443 install-newlib \
444 install-opcodes \
445 install-patch \
446 install-prms \
447 install-rcs \
448 install-readline \
449 install-recode \
450 install-sed \
451 install-send-pr \
452 install-shellutils \
453 install-sim \
454 install-tar \
455 install-tcl \
456 install-texinfo \
457 install-textutils \
458 install-time \
459 install-tk \
460 install-uudecode \
461 install-wdiff
462
463 #
464 # Install the gcc headers files, but not the fixed include files,
465 # which we are not allowed to distribute. This rule is very dependent
466 # on the workings of the gcc Makefile.in.
467 #
468 gcc-no-fixedincludes:
469 @if [ -f ./gcc/Makefile ]; then \
470 rm -rf gcc/tmp-include; \
471 mv gcc/include gcc/tmp-include 2>/dev/null; \
472 mkdir gcc/include; \
473 touch gcc/stmp-fixincludes; \
474 rm -f gcc/stmp-headers; \
475 rootme=`pwd`; export rootme; \
476 srcroot=`cd $(srcdir); pwd` ; export srcroot; \
477 (cd ./gcc; \
478 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
479 rm -rf gcc/include; \
480 mv gcc/tmp-include gcc/include 2>/dev/null; \
481 else true; fi
482
483 install.cross: install-dirs install-libiberty install-mmalloc \
484 install-binutils install-opcodes install-byacc install-flex \
485 install-ld install-gas install-readline \
486 install-glob install-gdb install-mmalloc \
487 install-newlib \
488 $(start-sanitize-chill) \
489 install-chillrt \
490 $(end-sanitize-chill) \
491 install-gcc install-etc install-deja-gnu
492
493 ### gzip
494 all-gzip: all-libiberty
495 @if [ -f ./gzip/Makefile ] ; then \
496 rootme=`pwd` ; export rootme ; \
497 (cd ./gzip; $(MAKE) $(FLAGS_TO_PASS) all) ; \
498 else \
499 true ; \
500 fi
501
502 install-gzip: force
503 @if [ -f ./gzip/Makefile ] ; then \
504 rootme=`pwd` ; export rootme ; \
505 (cd ./gzip; $(MAKE) $(FLAGS_TO_PASS) install) ; \
506 else \
507 true ; \
508 fi
509
510 ### hello
511 all-hello: all-libiberty
512 @if [ -f ./hello/Makefile ] ; then \
513 rootme=`pwd` ; export rootme ; \
514 (cd ./hello; $(MAKE) $(FLAGS_TO_PASS) all) ; \
515 else \
516 true ; \
517 fi
518
519 install-hello: force
520 @if [ -f ./hello/Makefile ] ; then \
521 rootme=`pwd` ; export rootme ; \
522 (cd ./hello; $(MAKE) $(FLAGS_TO_PASS) install) ; \
523 else \
524 true ; \
525 fi
526
527 ### recode
528 all-recode: all-libiberty
529 @if [ -f ./recode/Makefile ] ; then \
530 rootme=`pwd` ; export rootme ; \
531 (cd ./recode; $(MAKE) $(FLAGS_TO_PASS) all) ; \
532 else \
533 true ; \
534 fi
535
536 install-recode: force
537 @if [ -f ./recode/Makefile ] ; then \
538 rootme=`pwd` ; export rootme ; \
539 (cd ./recode; $(MAKE) $(FLAGS_TO_PASS) install) ; \
540 else \
541 true ; \
542 fi
543
544 ### indent
545 all-indent: force
546 @if [ -f ./indent/Makefile ] ; then \
547 rootme=`pwd` ; export rootme ; \
548 (cd ./indent; $(MAKE) $(FLAGS_TO_PASS) all) ; \
549 else \
550 true ; \
551 fi
552
553 install-indent: force
554 @if [ -f ./indent/Makefile ] ; then \
555 rootme=`pwd` ; export rootme ; \
556 (cd ./indent; $(MAKE) $(FLAGS_TO_PASS) install) ; \
557 else \
558 true ; \
559 fi
560
561 ### tar
562 all-tar: all-libiberty
563 @if [ -f ./tar/Makefile ] ; then \
564 rootme=`pwd` ; export rootme ; \
565 (cd ./tar; $(MAKE) $(FLAGS_TO_PASS) all) ; \
566 else \
567 true ; \
568 fi
569
570 install-tar: force
571 @if [ -f ./tar/Makefile ] ; then \
572 rootme=`pwd` ; export rootme ; \
573 (cd ./tar; $(MAKE) $(FLAGS_TO_PASS) install) ; \
574 else \
575 true ; \
576 fi
577
578
579 ### deja-gnu
580 all-deja-gnu: force
581 @if [ -f ./deja-gnu/Makefile ] ; then \
582 rootme=`pwd` ; export rootme ; \
583 (cd ./deja-gnu; $(MAKE) $(FLAGS_TO_PASS) all) ; \
584 else \
585 true ; \
586 fi
587
588 install-deja-gnu: force
589 @if [ -f ./deja-gnu/Makefile ] ; then \
590 rootme=`pwd` ; export rootme ; \
591 (cd ./deja-gnu; $(MAKE) $(FLAGS_TO_PASS) install) ; \
592 else \
593 true ; \
594 fi
595
596 ### autoconf
597 all-autoconf: force
598 @if [ -f ./autoconf/Makefile ] ; then \
599 rootme=`pwd` ; export rootme ; \
600 (cd ./autoconf; $(MAKE) $(FLAGS_TO_PASS) all) ; \
601 else \
602 true ; \
603 fi
604
605 install-autoconf: force
606 @if [ -f ./autoconf/Makefile ] ; then \
607 rootme=`pwd` ; export rootme ; \
608 (cd ./autoconf; $(MAKE) $(FLAGS_TO_PASS) install) ; \
609 else \
610 true ; \
611 fi
612
613 ### etc
614 all-etc: force
615 @if [ -f ./etc/Makefile ] ; then \
616 rootme=`pwd` ; export rootme ; \
617 (cd ./etc; $(MAKE) $(FLAGS_TO_PASS) all) ; \
618 else \
619 true ; \
620 fi
621
622 install-etc: force
623 @if [ -f ./etc/Makefile ] ; then \
624 rootme=`pwd` ; export rootme ; \
625 (cd ./etc; $(MAKE) $(FLAGS_TO_PASS) install) ; \
626 else \
627 true ; \
628 fi
629
630 ### libiberty
631 all-libiberty: force
632 @if [ -f ./libiberty/Makefile ] ; then \
633 rootme=`pwd` ; export rootme ; \
634 (cd ./libiberty; \
635 $(MAKE) $(FLAGS_TO_PASS) all) ; \
636 else \
637 true ; \
638 fi
639
640 install-libiberty: force
641 @if [ -f ./libiberty/Makefile ] ; then \
642 rootme=`pwd` ; export rootme ; \
643 (cd ./libiberty; \
644 $(MAKE) $(FLAGS_TO_PASS) install) ; \
645 else \
646 true ; \
647 fi
648
649 ### xiberty
650 all-xiberty: all-gcc all-newlib
651 @if [ -f ./xiberty/Makefile ] ; then \
652 rootme=`pwd` ; export rootme ; \
653 srcroot=`cd $(srcdir); pwd`; export srcroot ; \
654 (cd ./xiberty; \
655 $(MAKE) $(TARGET_FLAGS_TO_PASS) all) ; \
656 else \
657 true ; \
658 fi
659
660 install-xiberty: force
661 @if [ -f ./xiberty/Makefile ] ; then \
662 rootme=`pwd` ; export rootme ; \
663 srcroot=`cd $(srcdir); pwd`; export srcroot ; \
664 (cd ./xiberty; \
665 $(MAKE) $(TARGET_FLAGS_TO_PASS) install) ; \
666 else \
667 true ; \
668 fi
669
670 ### mmalloc
671 all-mmalloc: force
672 @if [ -f ./mmalloc/Makefile ] ; then \
673 rootme=`pwd` ; export rootme ; \
674 (cd ./mmalloc; \
675 $(MAKE) $(FLAGS_TO_PASS) all) ; \
676 else \
677 true ; \
678 fi
679
680 install-mmalloc: force
681 @if [ -f ./mmalloc/Makefile ] ; then \
682 rootme=`pwd` ; export rootme ; \
683 (cd ./mmalloc; \
684 $(MAKE) $(FLAGS_TO_PASS) install) ; \
685 else \
686 true ; \
687 fi
688
689 ### texinfo
690 all-texinfo: all-libiberty
691 @if [ -f ./texinfo/Makefile ] ; then \
692 rootme=`pwd` ; export rootme ; \
693 (cd ./texinfo; \
694 $(MAKE) $(FLAGS_TO_PASS) all) ; \
695 else \
696 true ; \
697 fi
698
699 install-texinfo: force
700 @if [ -f ./texinfo/Makefile ] ; then \
701 rootme=`pwd` ; export rootme ; \
702 (cd ./texinfo; \
703 $(MAKE) $(FLAGS_TO_PASS) install) ; \
704 else \
705 true ; \
706 fi
707
708 ### bfd
709 all-bfd: force
710 @if [ -f ./bfd/Makefile ] ; then \
711 rootme=`pwd` ; export rootme ; \
712 (cd ./bfd; \
713 $(MAKE) $(FLAGS_TO_PASS) all) ; \
714 else \
715 true ; \
716 fi
717
718 install-bfd: force
719 @if [ -f ./bfd/Makefile ] ; then \
720 rootme=`pwd` ; export rootme ; \
721 (cd ./bfd; \
722 $(MAKE) $(FLAGS_TO_PASS) install) ; \
723 else \
724 true ; \
725 fi
726
727
728 ### opcodes
729 all-opcodes: force
730 @if [ -f ./opcodes/Makefile ] ; then \
731 rootme=`pwd` ; export rootme ; \
732 (cd ./opcodes; \
733 $(MAKE) $(FLAGS_TO_PASS) all) ; \
734 else \
735 true ; \
736 fi
737
738 install-opcodes: force
739 @if [ -f ./opcodes/Makefile ] ; then \
740 rootme=`pwd` ; export rootme ; \
741 (cd ./opcodes; \
742 $(MAKE) $(FLAGS_TO_PASS) install) ; \
743 else \
744 true ; \
745 fi
746
747 ### binutils
748 all-binutils: all-opcodes all-libiberty all-bfd all-flex
749 @if [ -f ./binutils/Makefile ] ; then \
750 rootme=`pwd` ; export rootme ; \
751 (cd ./binutils; \
752 $(MAKE) $(FLAGS_TO_PASS) all) ; \
753 else \
754 true ; \
755 fi
756
757 install-binutils: force
758 @if [ -f ./binutils/Makefile ] ; then \
759 rootme=`pwd` ; export rootme ; \
760 (cd ./binutils; \
761 $(MAKE) $(FLAGS_TO_PASS) install) ; \
762 else \
763 true ; \
764 fi
765
766 ### newlib
767 all-newlib: all-binutils all-ld all-gas all-gcc
768 @if [ -f ./newlib/Makefile ] ; then \
769 rootme=`pwd` ; export rootme ; \
770 srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
771 (cd ./newlib; \
772 $(MAKE) $(TARGET_FLAGS_TO_PASS) all) ; \
773 else \
774 true ; \
775 fi
776
777 install-newlib: force
778 @if [ -f ./newlib/Makefile ] ; then \
779 rootme=`pwd` ; export rootme ; \
780 srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
781 (cd ./newlib; \
782 $(MAKE) $(TARGET_FLAGS_TO_PASS) install) ; \
783 else \
784 true ; \
785 fi
786
787 ### start-sanitize-chill
788 ### chillrt
789 all-chillrt: all-binutils all-ld all-gas all-gcc all-newlib
790 @if [ -f ./chillrt/Makefile ] ; then \
791 rootme=`pwd` ; export rootme ; \
792 srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
793 (cd ./chillrt; \
794 $(MAKE) $(TARGET_FLAGS_TO_PASS) all) ; \
795 else \
796 true ; \
797 fi
798
799 install-chillrt: force
800 @if [ -f ./chillrt/Makefile ] ; then \
801 rootme=`pwd` ; export rootme ; \
802 srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
803 (cd ./chillrt; \
804 $(MAKE) $(TARGET_FLAGS_TO_PASS) install) ; \
805 else \
806 true ; \
807 fi
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 ### expect
1269 all-expect: all-tcl
1270 @if [ -f ./expect/Makefile ] ; then \
1271 rootme=`pwd` ; export rootme ; \
1272 srcroot=`cd $(srcdir); pwd`; export srcroot ; \
1273 (cd ./expect; \
1274 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) ; \
1275 else \
1276 true ; \
1277 fi
1278
1279 install-expect: force
1280 @if [ -f ./expect/Makefile ] ; then \
1281 rootme=`pwd` ; export rootme ; \
1282 srcroot=`cd $(srcdir); pwd`; export srcroot ; \
1283 (cd ./expect; \
1284 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) ; \
1285 else \
1286 true ; \
1287 fi
1288
1289 ### sim
1290 all-sim: all-bfd
1291 @if [ -f ./sim/Makefile ] ; then \
1292 rootme=`pwd` ; export rootme ; \
1293 (cd ./sim; \
1294 $(MAKE) $(FLAGS_TO_PASS) all) ; \
1295 else \
1296 true ; \
1297 fi
1298
1299 install-sim: force
1300 @if [ -f ./sim/Makefile ] ; then \
1301 rootme=`pwd` ; export rootme ; \
1302 (cd ./sim; \
1303 $(MAKE) $(FLAGS_TO_PASS) install) ; \
1304 else \
1305 true ; \
1306 fi
1307
1308 ### fileutils
1309 all-fileutils: force
1310 @if [ -f ./fileutils/Makefile ] ; then \
1311 rootme=`pwd` ; export rootme ; \
1312 (cd ./fileutils; $(MAKE) $(FLAGS_TO_PASS) all) ; \
1313 else \
1314 true ; \
1315 fi
1316
1317 install-fileutils: force
1318 @if [ -f ./fileutils/Makefile ] ; then \
1319 rootme=`pwd` ; export rootme ; \
1320 (cd ./fileutils; $(MAKE) $(FLAGS_TO_PASS) install) ; \
1321 else \
1322 true ; \
1323 fi
1324
1325 ### find
1326 all-find: force
1327 @if [ -f ./find/Makefile ] ; then \
1328 rootme=`pwd` ; export rootme ; \
1329 (cd ./find; $(MAKE) $(FLAGS_TO_PASS) all) ; \
1330 else \
1331 true ; \
1332 fi
1333
1334 install-find: force
1335 @if [ -f ./find/Makefile ] ; then \
1336 rootme=`pwd` ; export rootme ; \
1337 (cd ./find; $(MAKE) $(FLAGS_TO_PASS) install) ; \
1338 else \
1339 true ; \
1340 fi
1341
1342 ### gawk
1343 all-gawk: force
1344 @if [ -f ./gawk/Makefile ] ; then \
1345 rootme=`pwd` ; export rootme ; \
1346 (cd ./gawk; $(MAKE) $(FLAGS_TO_PASS) all) ; \
1347 else \
1348 true ; \
1349 fi
1350
1351 install-gawk: force
1352 @if [ -f ./gawk/Makefile ] ; then \
1353 rootme=`pwd` ; export rootme ; \
1354 (cd ./gawk; $(MAKE) $(FLAGS_TO_PASS) install) ; \
1355 else \
1356 true ; \
1357 fi
1358
1359 ### m4
1360 all-m4: all-libiberty
1361 @if [ -f ./m4/Makefile ] ; then \
1362 rootme=`pwd` ; export rootme ; \
1363 (cd ./m4; $(MAKE) $(FLAGS_TO_PASS) all) ; \
1364 else \
1365 true ; \
1366 fi
1367
1368 install-m4: force
1369 @if [ -f ./m4/Makefile ] ; then \
1370 rootme=`pwd` ; export rootme ; \
1371 (cd ./m4; $(MAKE) $(FLAGS_TO_PASS) install) ; \
1372 else \
1373 true ; \
1374 fi
1375
1376 ### sed
1377 all-sed: force
1378 @if [ -f ./sed/Makefile ] ; then \
1379 rootme=`pwd` ; export rootme ; \
1380 (cd ./sed; $(MAKE) $(FLAGS_TO_PASS) all) ; \
1381 else \
1382 true ; \
1383 fi
1384
1385 install-sed: force
1386 @if [ -f ./sed/Makefile ] ; then \
1387 rootme=`pwd` ; export rootme ; \
1388 (cd ./sed; $(MAKE) $(FLAGS_TO_PASS) install) ; \
1389 else \
1390 true ; \
1391 fi
1392
1393 ### time
1394 all-time: force
1395 @if [ -f ./time/Makefile ] ; then \
1396 rootme=`pwd` ; export rootme ; \
1397 (cd ./time; $(MAKE) $(FLAGS_TO_PASS) all) ; \
1398 else \
1399 true ; \
1400 fi
1401
1402 install-time: force
1403 @if [ -f ./time/Makefile ] ; then \
1404 rootme=`pwd` ; export rootme ; \
1405 (cd ./time; $(MAKE) $(FLAGS_TO_PASS) install) ; \
1406 else \
1407 true ; \
1408 fi
1409
1410 ### wdiff
1411 all-wdiff: force
1412 @if [ -f ./wdiff/Makefile ] ; then \
1413 rootme=`pwd` ; export rootme ; \
1414 (cd ./wdiff; $(MAKE) $(FLAGS_TO_PASS) all) ; \
1415 else \
1416 true ; \
1417 fi
1418
1419 install-wdiff: force
1420 @if [ -f ./wdiff/Makefile ] ; then \
1421 rootme=`pwd` ; export rootme ; \
1422 (cd ./wdiff; $(MAKE) $(FLAGS_TO_PASS) install) ; \
1423 else \
1424 true ; \
1425 fi
1426
1427 ### uudecode
1428 all-uudecode: all-libiberty
1429 @if [ -f ./uudecode/Makefile ] ; then \
1430 rootme=`pwd` ; export rootme ; \
1431 (cd ./uudecode; $(MAKE) $(FLAGS_TO_PASS) all) ; \
1432 else \
1433 true ; \
1434 fi
1435
1436 install-uudecode: force
1437 @if [ -f ./uudecode/Makefile ] ; then \
1438 rootme=`pwd` ; export rootme ; \
1439 (cd ./uudecode; $(MAKE) $(FLAGS_TO_PASS) install) ; \
1440 else \
1441 true ; \
1442 fi
1443
1444 ### shellutils
1445 all-shellutils: force
1446 @if [ -f ./shellutils/Makefile ] ; then \
1447 rootme=`pwd` ; export rootme ; \
1448 (cd ./shellutils; $(MAKE) $(FLAGS_TO_PASS) all) ; \
1449 else \
1450 true ; \
1451 fi
1452
1453 install-shellutils: force
1454 @if [ -f ./shellutils/Makefile ] ; then \
1455 rootme=`pwd` ; export rootme ; \
1456 (cd ./shellutils; $(MAKE) $(FLAGS_TO_PASS) install) ; \
1457 else \
1458 true ; \
1459 fi
1460
1461 ### textutils
1462 all-textutils: force
1463 @if [ -f ./textutils/Makefile ] ; then \
1464 rootme=`pwd` ; export rootme ; \
1465 (cd ./textutils; $(MAKE) $(FLAGS_TO_PASS) all) ; \
1466 else \
1467 true ; \
1468 fi
1469
1470 install-textutils: force
1471 @if [ -f ./textutils/Makefile ] ; then \
1472 rootme=`pwd` ; export rootme ; \
1473 (cd ./textutils; $(MAKE) $(FLAGS_TO_PASS) install) ; \
1474 else \
1475 true ; \
1476 fi
1477
1478
1479
1480 ### other supporting targets
1481
1482 MAKEDIRS= \
1483 $(prefix) \
1484 $(exec_prefix) \
1485 $(tooldir)
1486
1487 # $(bindir) \
1488 # $(libdir) \
1489 # $(includedir) \
1490 # $(datadir) \
1491 # $(docdir) \
1492 # $(mandir) \
1493 # $(man1dir) \
1494 # $(man5dir)
1495
1496 # $(man2dir) \
1497 # $(man3dir) \
1498 # $(man4dir) \
1499 # $(man6dir) \
1500 # $(man7dir) \
1501 # $(man8dir)
1502
1503 install-dirs:
1504 for i in $(MAKEDIRS) ; do \
1505 echo Making $$i... ; \
1506 parent=`echo $$i|sed -e 's@/[^/]*$$@@'`; \
1507 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi ; \
1508 if [ ! -d $$i ] ; then \
1509 if mkdir $$i ; then \
1510 true ; \
1511 else \
1512 exit 1 ; \
1513 fi ; \
1514 else \
1515 true ; \
1516 fi ; \
1517 done
1518
1519 install-info-dirs:
1520 if [ -d $(prefix) ] ; then true ; else mkdir $(prefix) ; fi
1521 -parent=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
1522 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
1523 -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
1524
1525 dir.info: do-install-info
1526 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
1527 $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
1528 mv -f dir.info.new dir.info ; \
1529 fi
1530
1531 dist:
1532 @echo "Building a full distribution of this tree isn't done"
1533 @echo "via 'make dist'. Check out the etc/ subdirectory"
1534
1535 etags tags: TAGS
1536
1537 TAGS:
1538 etags `$(MAKE) ls`
1539
1540 ls:
1541 @echo Makefile
1542 @for i in $(SUBDIRS); \
1543 do \
1544 (cd $$i; \
1545 pwd=`pwd`; \
1546 wd=`basename $$pwd`; \
1547 for j in `$(MAKE) ls`; \
1548 do \
1549 echo $$wd/$$j; \
1550 done) \
1551 done
1552
1553 force:
1554
1555 # with the gnu make, this is done automatically.
1556
1557 Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
1558 $(SHELL) ./config.status
1559
1560 #
1561 # Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
1562
1563 DEVO_SUPPORT= README Makefile.in configure configure.in \
1564 config.guess config.sub config move-if-change
1565 ETC_SUPPORT= Makefile.in cfg-paper.texi configure.in configure.man \
1566 configure.texi
1567 GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline glob sim
1568 GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS)
1569
1570 setup-dirs: force
1571 ./configure sun4
1572 make clean
1573 ./configure -rm sun4
1574 chmod og=u `find etc $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
1575
1576 gdb.tar.Z: setup-dirs
1577 (cd gdb; $(MAKE) -f Makefile.in make-proto-gdb.dir BISON="byacc")
1578 $(MAKE) $(MFLAGS) -f Makefile.in make-gdb.tar.Z
1579
1580 make-gdb.tar.Z: $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS) gdb texinfo/texinfo.tex
1581 rm -rf proto-toplev; mkdir proto-toplev
1582 ln -s ../gdb/proto-gdb.dir proto-toplev/gdb
1583 (cd proto-toplev; for i in $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS); do \
1584 ln -s ../$$i . ; \
1585 done)
1586 mkdir proto-toplev/etc
1587 (cd proto-toplev/etc; for i in $(ETC_SUPPORT); do \
1588 ln -s ../../etc/$$i . ; \
1589 done)
1590 # Put only one copy (four hard links) of COPYING in the tar file.
1591 rm proto-toplev/bfd/COPYING
1592 ln proto-toplev/gdb/COPYING proto-toplev/bfd/COPYING
1593 rm proto-toplev/include/COPYING
1594 ln proto-toplev/gdb/COPYING proto-toplev/include/COPYING
1595 rm proto-toplev/readline/COPYING
1596 ln proto-toplev/gdb/COPYING proto-toplev/readline/COPYING
1597
1598 # Take out texinfo and glob from configurable dirs
1599 rm proto-toplev/configure.in
1600 sed -e '/^host_tools=/s/texinfo //' \
1601 -e '/^host_libs=/s/glob //' \
1602 <configure.in >proto-toplev/configure.in
1603
1604 # Take out texinfo from a few places; make simple BISON=bison line.
1605 rm proto-toplev/Makefile.in
1606 sed -e '/^all\.normal: /s/\all-texinfo //' \
1607 -e '/^ install-texinfo /d' \
1608 -e '\/^BISON =/,\/^$$/c\
1609 BISON = bison -y' \
1610 <Makefile.in >proto-toplev/Makefile.in
1611
1612 mkdir proto-toplev/texinfo
1613 ln -s ../../texinfo/texinfo.tex proto-toplev/texinfo/
1614 ln -s ../../texinfo/tex3patch proto-toplev/texinfo/
1615 chmod og=u `find proto-toplev -print`
1616 (VER=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
1617 echo "==> Making gdb-$$VER.tar.Z"; \
1618 ln -s proto-toplev gdb-$$VER; \
1619 tar cfh - gdb-$$VER \
1620 | compress -v >gdb-$$VER.tar.Z)
1621 $(GZIP) -d <gdb-$$VER.tar.Z | $(GZIP) -9 -v >gdb-$$VER.tar.z
1622
1623 # end of Makefile.in
This page took 0.062597 seconds and 4 git commands to generate.