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