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