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