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