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