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