* nm-hp300bsd.h (PTRACE_ARG3_TYPE): FSF's hp300's have int* not caddr_t.
[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 all-hello all-tar all-gzip all-indent all-recode
364
365
366 all.cross: all-libiberty all-mmalloc all-gas all-byacc all-flex all-ld \
367 all-opcodes all-bfd all-readline all-sim \
368 all-gdb all-binutils all-gcc all-newlib \
369 $(start-sanitize-chill) \
370 all-chillrt \
371 $(end-sanitize-chill) \
372 all-deja-gnu
373
374 .PHONY: clean distclean mostlyclean realclean local-clean local-distclean
375
376 local-clean:
377 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E
378
379 local-distclean:
380 -rm -f Makefile config.status
381
382 clean: do-clean local-clean
383 mostlyclean: do-mostlyclean local-clean
384 distclean: do-distclean local-clean local-distclean
385 realclean: do-realclean local-clean local-distclean
386
387 uninstall:
388 @echo "the uninstall target is not supported in this tree"
389
390 install: $(INSTALL_TARGET)
391 -parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
392 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
393 -if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi
394
395 install.all: install-no-fixedincludes
396 @if [ -f ./gcc/Makefile ] ; then \
397 rootme=`pwd` ; export rootme ; \
398 (cd ./gcc; \
399 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
400 else \
401 true ; \
402 fi
403
404 install-no-fixedincludes: install-dirs gcc-no-fixedincludes \
405 install-autoconf \
406 install-bfd \
407 install-binutils \
408 install-byacc \
409 $(start-sanitize-chill) \
410 install-chillrt \
411 $(end-sanitize-chill) \
412 install-cvs \
413 install-deja-gnu \
414 install-diff \
415 install-emacs \
416 install-etc \
417 install-expect \
418 install-fileutils \
419 install-find \
420 install-flex \
421 install-gas \
422 install-gawk \
423 install-gdb \
424 install-glob \
425 install-gprof \
426 install-grep \
427 install-gzip \
428 install-hello \
429 install-indent \
430 install-ispell \
431 install-ld \
432 install-libg++ \
433 install-libiberty \
434 install-libm \
435 install-m4 \
436 install-make \
437 install-mmalloc \
438 install-newlib \
439 install-opcodes \
440 install-patch \
441 install-rcs \
442 install-readline \
443 install-recode \
444 install-sed \
445 install-send_pr \
446 install-shellutils \
447 install-sim \
448 install-tar \
449 install-tcl \
450 install-texinfo \
451 install-textutils \
452 install-time \
453 install-tk \
454 install-uudecode \
455 install-wdiff
456
457 #
458 # Install the gcc headers files, but not the fixed include files,
459 # which we are not allowed to distribute. This rule is very dependent
460 # on the workings of the gcc Makefile.in.
461 #
462 gcc-no-fixedincludes:
463 @if [ -f ./gcc/Makefile ]; then \
464 rm -rf gcc/tmp-include; \
465 mv gcc/include gcc/tmp-include 2>/dev/null; \
466 mkdir gcc/include; \
467 touch gcc/stmp-fixincludes; \
468 rm -f gcc/stmp-headers; \
469 rootme=`pwd`; export rootme; \
470 srcroot=`cd $(srcdir); pwd` ; export srcroot; \
471 (cd ./gcc; \
472 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
473 rm -rf gcc/include; \
474 mv gcc/tmp-include gcc/include 2>/dev/null; \
475 else true; fi
476
477 install.cross: install-dirs install-libiberty install-mmalloc \
478 install-binutils install-opcodes install-byacc install-flex \
479 install-ld install-gas install-readline \
480 install-glob install-gdb install-mmalloc \
481 install-newlib \
482 $(start-sanitize-chill) \
483 install-chillrt \
484 $(end-sanitize-chill) \
485 install-gcc install-etc install-deja-gnu
486
487 ### gzip
488 all-gzip: all-libiberty
489 @if [ -f ./gzip/Makefile ] ; then \
490 rootme=`pwd` ; export rootme ; \
491 (cd ./gzip; $(MAKE) $(FLAGS_TO_PASS) all) ; \
492 else \
493 true ; \
494 fi
495
496 install-gzip: force
497 @if [ -f ./gzip/Makefile ] ; then \
498 rootme=`pwd` ; export rootme ; \
499 (cd ./gzip; $(MAKE) $(FLAGS_TO_PASS) install) ; \
500 else \
501 true ; \
502 fi
503
504 ### hello
505 all-hello: all-libiberty
506 @if [ -f ./hello/Makefile ] ; then \
507 rootme=`pwd` ; export rootme ; \
508 (cd ./hello; $(MAKE) $(FLAGS_TO_PASS) all) ; \
509 else \
510 true ; \
511 fi
512
513 install-hello: force
514 @if [ -f ./hello/Makefile ] ; then \
515 rootme=`pwd` ; export rootme ; \
516 (cd ./hello; $(MAKE) $(FLAGS_TO_PASS) install) ; \
517 else \
518 true ; \
519 fi
520
521 ### recode
522 all-recode: all-libiberty
523 @if [ -f ./recode/Makefile ] ; then \
524 rootme=`pwd` ; export rootme ; \
525 (cd ./recode; $(MAKE) $(FLAGS_TO_PASS) all) ; \
526 else \
527 true ; \
528 fi
529
530 install-recode: force
531 @if [ -f ./recode/Makefile ] ; then \
532 rootme=`pwd` ; export rootme ; \
533 (cd ./recode; $(MAKE) $(FLAGS_TO_PASS) install) ; \
534 else \
535 true ; \
536 fi
537
538 ### indent
539 all-indent: force
540 @if [ -f ./indent/Makefile ] ; then \
541 rootme=`pwd` ; export rootme ; \
542 (cd ./indent; $(MAKE) $(FLAGS_TO_PASS) all) ; \
543 else \
544 true ; \
545 fi
546
547 install-indent: force
548 @if [ -f ./indent/Makefile ] ; then \
549 rootme=`pwd` ; export rootme ; \
550 (cd ./indent; $(MAKE) $(FLAGS_TO_PASS) install) ; \
551 else \
552 true ; \
553 fi
554
555 ### tar
556 all-tar: all-libiberty
557 @if [ -f ./tar/Makefile ] ; then \
558 rootme=`pwd` ; export rootme ; \
559 (cd ./tar; $(MAKE) $(FLAGS_TO_PASS) all) ; \
560 else \
561 true ; \
562 fi
563
564 install-tar: force
565 @if [ -f ./tar/Makefile ] ; then \
566 rootme=`pwd` ; export rootme ; \
567 (cd ./tar; $(MAKE) $(FLAGS_TO_PASS) install) ; \
568 else \
569 true ; \
570 fi
571
572
573 ### deja-gnu
574 all-deja-gnu: force
575 @if [ -f ./deja-gnu/Makefile ] ; then \
576 rootme=`pwd` ; export rootme ; \
577 (cd ./deja-gnu; $(MAKE) $(FLAGS_TO_PASS) all) ; \
578 else \
579 true ; \
580 fi
581
582 install-deja-gnu: force
583 @if [ -f ./deja-gnu/Makefile ] ; then \
584 rootme=`pwd` ; export rootme ; \
585 (cd ./deja-gnu; $(MAKE) $(FLAGS_TO_PASS) install) ; \
586 else \
587 true ; \
588 fi
589
590 ### autoconf
591 all-autoconf: force
592 @if [ -f ./autoconf/Makefile ] ; then \
593 rootme=`pwd` ; export rootme ; \
594 (cd ./autoconf; $(MAKE) $(FLAGS_TO_PASS) all) ; \
595 else \
596 true ; \
597 fi
598
599 install-autoconf: force
600 @if [ -f ./autoconf/Makefile ] ; then \
601 rootme=`pwd` ; export rootme ; \
602 (cd ./autoconf; $(MAKE) $(FLAGS_TO_PASS) install) ; \
603 else \
604 true ; \
605 fi
606
607 ### etc
608 all-etc: force
609 @if [ -f ./etc/Makefile ] ; then \
610 rootme=`pwd` ; export rootme ; \
611 (cd ./etc; $(MAKE) $(FLAGS_TO_PASS) all) ; \
612 else \
613 true ; \
614 fi
615
616 install-etc: force
617 @if [ -f ./etc/Makefile ] ; then \
618 rootme=`pwd` ; export rootme ; \
619 (cd ./etc; $(MAKE) $(FLAGS_TO_PASS) install) ; \
620 else \
621 true ; \
622 fi
623
624 ### libiberty
625 all-libiberty: force
626 @if [ -f ./libiberty/Makefile ] ; then \
627 rootme=`pwd` ; export rootme ; \
628 (cd ./libiberty; \
629 $(MAKE) $(FLAGS_TO_PASS) all) ; \
630 else \
631 true ; \
632 fi
633
634 install-libiberty: force
635 @if [ -f ./libiberty/Makefile ] ; then \
636 rootme=`pwd` ; export rootme ; \
637 (cd ./libiberty; \
638 $(MAKE) $(FLAGS_TO_PASS) install) ; \
639 else \
640 true ; \
641 fi
642
643 ### xiberty
644 all-xiberty: all-gcc all-newlib
645 @if [ -f ./xiberty/Makefile ] ; then \
646 rootme=`pwd` ; export rootme ; \
647 srcroot=`cd $(srcdir); pwd`; export srcroot ; \
648 (cd ./xiberty; \
649 $(MAKE) $(TARGET_FLAGS_TO_PASS) all) ; \
650 else \
651 true ; \
652 fi
653
654 install-xiberty: force
655 @if [ -f ./xiberty/Makefile ] ; then \
656 rootme=`pwd` ; export rootme ; \
657 srcroot=`cd $(srcdir); pwd`; export srcroot ; \
658 (cd ./xiberty; \
659 $(MAKE) $(TARGET_FLAGS_TO_PASS) install) ; \
660 else \
661 true ; \
662 fi
663
664 ### mmalloc
665 all-mmalloc: force
666 @if [ -f ./mmalloc/Makefile ] ; then \
667 rootme=`pwd` ; export rootme ; \
668 (cd ./mmalloc; \
669 $(MAKE) $(FLAGS_TO_PASS) all) ; \
670 else \
671 true ; \
672 fi
673
674 install-mmalloc: force
675 @if [ -f ./mmalloc/Makefile ] ; then \
676 rootme=`pwd` ; export rootme ; \
677 (cd ./mmalloc; \
678 $(MAKE) $(FLAGS_TO_PASS) install) ; \
679 else \
680 true ; \
681 fi
682
683 ### texinfo
684 all-texinfo: all-libiberty
685 @if [ -f ./texinfo/Makefile ] ; then \
686 rootme=`pwd` ; export rootme ; \
687 (cd ./texinfo; \
688 $(MAKE) $(FLAGS_TO_PASS) all) ; \
689 else \
690 true ; \
691 fi
692
693 install-texinfo: force
694 @if [ -f ./texinfo/Makefile ] ; then \
695 rootme=`pwd` ; export rootme ; \
696 (cd ./texinfo; \
697 $(MAKE) $(FLAGS_TO_PASS) install) ; \
698 else \
699 true ; \
700 fi
701
702 ### bfd
703 all-bfd: force
704 @if [ -f ./bfd/Makefile ] ; then \
705 rootme=`pwd` ; export rootme ; \
706 (cd ./bfd; \
707 $(MAKE) $(FLAGS_TO_PASS) all) ; \
708 else \
709 true ; \
710 fi
711
712 install-bfd: force
713 @if [ -f ./bfd/Makefile ] ; then \
714 rootme=`pwd` ; export rootme ; \
715 (cd ./bfd; \
716 $(MAKE) $(FLAGS_TO_PASS) install) ; \
717 else \
718 true ; \
719 fi
720
721
722 ### opcodes
723 all-opcodes: force
724 @if [ -f ./opcodes/Makefile ] ; then \
725 rootme=`pwd` ; export rootme ; \
726 (cd ./opcodes; \
727 $(MAKE) $(FLAGS_TO_PASS) all) ; \
728 else \
729 true ; \
730 fi
731
732 install-opcodes: force
733 @if [ -f ./opcodes/Makefile ] ; then \
734 rootme=`pwd` ; export rootme ; \
735 (cd ./opcodes; \
736 $(MAKE) $(FLAGS_TO_PASS) install) ; \
737 else \
738 true ; \
739 fi
740
741 ### binutils
742 all-binutils: all-opcodes all-libiberty all-bfd all-flex
743 @if [ -f ./binutils/Makefile ] ; then \
744 rootme=`pwd` ; export rootme ; \
745 (cd ./binutils; \
746 $(MAKE) $(FLAGS_TO_PASS) all) ; \
747 else \
748 true ; \
749 fi
750
751 install-binutils: force
752 @if [ -f ./binutils/Makefile ] ; then \
753 rootme=`pwd` ; export rootme ; \
754 (cd ./binutils; \
755 $(MAKE) $(FLAGS_TO_PASS) install) ; \
756 else \
757 true ; \
758 fi
759
760 ### newlib
761 all-newlib: all-binutils all-ld all-gas all-gcc
762 @if [ -f ./newlib/Makefile ] ; then \
763 rootme=`pwd` ; export rootme ; \
764 srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
765 (cd ./newlib; \
766 $(MAKE) $(TARGET_FLAGS_TO_PASS) all) ; \
767 else \
768 true ; \
769 fi
770
771 install-newlib: force
772 @if [ -f ./newlib/Makefile ] ; then \
773 rootme=`pwd` ; export rootme ; \
774 srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
775 (cd ./newlib; \
776 $(MAKE) $(TARGET_FLAGS_TO_PASS) install) ; \
777 else \
778 true ; \
779 fi
780
781 ### start-sanitize-chill
782 ### chillrt
783 all-chillrt: all-binutils all-ld all-gas all-gcc all-newlib
784 @if [ -f ./chillrt/Makefile ] ; then \
785 rootme=`pwd` ; export rootme ; \
786 srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
787 (cd ./chillrt; \
788 $(MAKE) $(TARGET_FLAGS_TO_PASS) all) ; \
789 else \
790 true ; \
791 fi
792
793 install-chillrt: force
794 @if [ -f ./chillrt/Makefile ] ; then \
795 rootme=`pwd` ; export rootme ; \
796 srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
797 (cd ./chillrt; \
798 $(MAKE) $(TARGET_FLAGS_TO_PASS) install) ; \
799 else \
800 true ; \
801 fi
802 ### end-sanitize-chill
803
804 ### gprof
805 all-gprof: all-libiberty all-bfd
806 @if [ -f ./gprof/Makefile ] ; then \
807 rootme=`pwd` ; export rootme ; \
808 (cd ./gprof; \
809 $(MAKE) $(FLAGS_TO_PASS) all) ; \
810 else \
811 true ; \
812 fi
813
814 install-gprof: force
815 @if [ -f ./gprof/Makefile ] ; then \
816 rootme=`pwd` ; export rootme ; \
817 (cd ./gprof; \
818 $(MAKE) $(FLAGS_TO_PASS) install) ; \
819 else \
820 true ; \
821 fi
822
823 ### byacc
824 all-byacc: force
825 @if [ -f ./byacc/Makefile ] ; then \
826 rootme=`pwd` ; export rootme ; \
827 (cd ./byacc; \
828 $(MAKE) $(FLAGS_TO_PASS) all) ; \
829 else \
830 true ; \
831 fi
832
833 install-byacc: force
834 @if [ -f ./byacc/Makefile ] ; then \
835 rootme=`pwd` ; export rootme ; \
836 (cd ./byacc; \
837 $(MAKE) $(FLAGS_TO_PASS) install) ; \
838 else \
839 true ; \
840 fi
841
842 ### flex
843 all-flex: all-libiberty
844 @if [ -f ./flex/Makefile ] ; then \
845 rootme=`pwd` ; export rootme ; \
846 (cd ./flex; \
847 $(MAKE) $(FLAGS_TO_PASS) all) ; \
848 else \
849 true ; \
850 fi
851
852 install-flex: force
853 @if [ -f ./flex/Makefile ] ; then \
854 rootme=`pwd` ; export rootme ; \
855 (cd ./flex; \
856 $(MAKE) $(FLAGS_TO_PASS) install) ; \
857 else \
858 true ; \
859 fi
860 ### gcc
861 all-gcc: all-libiberty all-byacc all-binutils all-gas
862 @if [ -f ./gcc/Makefile ] ; then \
863 rootme=`pwd` ; export rootme ; \
864 srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
865 (cd ./gcc; \
866 $(MAKE) $(GCC_FLAGS_TO_PASS) all) ; \
867 else \
868 true ; \
869 fi
870
871 install-gcc: force
872 @if [ -f ./gcc/Makefile ] ; then \
873 rootme=`pwd` ; export rootme ; \
874 srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
875 (cd ./gcc; \
876 $(MAKE) $(GCC_FLAGS_TO_PASS) install) ; \
877 else \
878 true ; \
879 fi
880
881 ### readline
882 all-readline: force
883 @if [ -f ./readline/Makefile ] ; then \
884 rootme=`pwd` ; export rootme ; \
885 (cd ./readline; \
886 $(MAKE) $(FLAGS_TO_PASS) all) ; \
887 else \
888 true ; \
889 fi
890
891 install-readline: force
892 @if [ -f ./readline/Makefile ] ; then \
893 rootme=`pwd` ; export rootme ; \
894 (cd ./readline; \
895 $(MAKE) $(FLAGS_TO_PASS) install) ; \
896 else \
897 true ; \
898 fi
899
900 ### glob
901 all-glob: force
902 @if [ -f ./glob/Makefile ] ; then \
903 rootme=`pwd` ; export rootme ; \
904 (cd ./glob; \
905 $(MAKE) $(FLAGS_TO_PASS) all) ; \
906 else \
907 true ; \
908 fi
909
910 install-glob: force
911 @if [ -f ./glob/Makefile ] ; then \
912 rootme=`pwd` ; export rootme ; \
913 (cd ./glob; \
914 $(MAKE) $(FLAGS_TO_PASS) install) ; \
915 else \
916 true ; \
917 fi
918
919 ### gas
920 all-gas: all-libiberty all-opcodes all-bfd
921 @if [ -f ./gas/Makefile ] ; then \
922 rootme=`pwd` ; export rootme ; \
923 (cd ./gas; \
924 $(MAKE) $(FLAGS_TO_PASS) all) ; \
925 else \
926 true ; \
927 fi
928
929 install-gas: force
930 @if [ -f ./gas/Makefile ] ; then \
931 rootme=`pwd` ; export rootme ; \
932 (cd ./gas; \
933 $(MAKE) $(FLAGS_TO_PASS) install) ; \
934 else \
935 true ; \
936 fi
937
938 ### gas
939 all-tgas: all-libiberty all-bfd
940 @if [ -f ./tgas/Makefile ] ; then \
941 rootme=`pwd` ; export rootme ; \
942 (cd ./tgas; \
943 $(MAKE) $(FLAGS_TO_PASS) all) ; \
944 else \
945 true ; \
946 fi
947
948
949 ### ld
950 all-ld: all-libiberty all-bfd all-byacc all-flex
951 @if [ -f ./ld/Makefile ] ; then \
952 rootme=`pwd` ; export rootme ; \
953 (cd ./ld; \
954 $(MAKE) $(FLAGS_TO_PASS) all) ; \
955 else \
956 true ; \
957 fi
958
959 install-ld: force
960 @if [ -f ./ld/Makefile ] ; then \
961 rootme=`pwd` ; export rootme ; \
962 (cd ./ld; \
963 $(MAKE) $(FLAGS_TO_PASS) install) ; \
964 else \
965 true ; \
966 fi
967
968 ### gdb
969 all-gdb: all-bfd all-opcodes all-libiberty all-mmalloc all-readline all-glob all-byacc
970 @if [ -f ./gdb/Makefile ] ; then \
971 rootme=`pwd` ; export rootme ; \
972 (cd ./gdb; \
973 $(MAKE) $(FLAGS_TO_PASS) all) ; \
974 else \
975 true ; \
976 fi
977
978 install-gdb: force
979 @if [ -f ./gdb/Makefile ] ; then \
980 rootme=`pwd` ; export rootme ; \
981 (cd ./gdb; \
982 $(MAKE) $(FLAGS_TO_PASS) install) ; \
983 else \
984 true ; \
985 fi
986
987 ### make
988 all-make: all-libiberty
989 @if [ -f ./make/Makefile ] ; then \
990 rootme=`pwd` ; export rootme ; \
991 (cd ./make; \
992 $(MAKE) $(FLAGS_TO_PASS) all) ; \
993 else \
994 true ; \
995 fi
996
997 install-make: force
998 @if [ -f ./make/Makefile ] ; then \
999 rootme=`pwd` ; export rootme ; \
1000 (cd ./make; \
1001 $(MAKE) $(FLAGS_TO_PASS) install) ; \
1002 else \
1003 true ; \
1004 fi
1005
1006 ### diff
1007 all-diff: all-libiberty
1008 @if [ -f ./diff/Makefile ] ; then \
1009 rootme=`pwd` ; export rootme ; \
1010 (cd ./diff; \
1011 $(MAKE) $(FLAGS_TO_PASS) all) ; \
1012 else \
1013 true ; \
1014 fi
1015
1016 install-diff: force
1017 @if [ -f ./diff/Makefile ] ; then \
1018 rootme=`pwd` ; export rootme ; \
1019 (cd ./diff/; \
1020 $(MAKE) $(FLAGS_TO_PASS) install) ; \
1021 else \
1022 true ; \
1023 fi
1024
1025 ### grep
1026 all-grep: force
1027 @if [ -f ./grep/Makefile ] ; then \
1028 rootme=`pwd` ; export rootme ; \
1029 (cd ./grep; \
1030 $(MAKE) $(FLAGS_TO_PASS) all) ; \
1031 else \
1032 true ; \
1033 fi
1034
1035 install-grep: force
1036 @if [ -f ./grep/Makefile ] ; then \
1037 rootme=`pwd` ; export rootme ; \
1038 (cd ./grep; \
1039 $(MAKE) $(FLAGS_TO_PASS) install) ; \
1040 else \
1041 true ; \
1042 fi
1043
1044 ### rcs
1045 all-rcs: force
1046 @if [ -f ./rcs/Makefile ] ; then \
1047 rootme=`pwd` ; export rootme ; \
1048 (cd ./rcs; \
1049 $(MAKE) $(FLAGS_TO_PASS) all) ; \
1050 else \
1051 true ; \
1052 fi
1053
1054 install-rcs: force
1055 @if [ -f ./rcs/Makefile ] ; then \
1056 rootme=`pwd` ; export rootme ; \
1057 (cd ./rcs; \
1058 $(MAKE) $(FLAGS_TO_PASS) install) ; \
1059 else \
1060 true ; \
1061 fi
1062
1063 ### cvs
1064 all-cvs: force
1065 @if [ -f ./cvs/Makefile ] ; then \
1066 rootme=`pwd` ; export rootme ; \
1067 (cd ./cvs; \
1068 $(MAKE) $(FLAGS_TO_PASS) all) ; \
1069 else \
1070 true ; \
1071 fi
1072
1073 install-cvs: force
1074 @if [ -f ./cvs/Makefile ] ; then \
1075 rootme=`pwd` ; export rootme ; \
1076 (cd ./cvs; \
1077 $(MAKE) $(FLAGS_TO_PASS) install) ; \
1078 else \
1079 true ; \
1080 fi
1081
1082 ### patch
1083 all-patch: force
1084 @if [ -f ./patch/Makefile ] ; then \
1085 rootme=`pwd` ; export rootme ; \
1086 (cd ./patch; \
1087 $(MAKE) $(FLAGS_TO_PASS) all) ; \
1088 else \
1089 true ; \
1090 fi
1091
1092 install-patch: force
1093 @if [ -f ./patch/Makefile ] ; then \
1094 rootme=`pwd` ; export rootme ; \
1095 (cd ./patch; \
1096 $(MAKE) $(FLAGS_TO_PASS) \
1097 bindir=$(bindir) \
1098 man1dir=$(man1dir) install) ; \
1099 else \
1100 true ; \
1101 fi
1102
1103 ### emacs
1104 all-emacs: force
1105 @if [ -f ./emacs/Makefile ] ; then \
1106 rootme=`pwd` ; export rootme ; \
1107 (cd ./emacs; \
1108 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) ; \
1109 else \
1110 true ; \
1111 fi
1112
1113 install-emacs: force
1114 @if [ -f ./emacs/Makefile ] ; then \
1115 rootme=`pwd` ; export rootme ; \
1116 (cd ./emacs; \
1117 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) ; \
1118 else \
1119 true ; \
1120 fi
1121
1122 ### ispell
1123 all-ispell: all-emacs
1124 @if [ -f ./ispell/Makefile ] ; then \
1125 rootme=`pwd` ; export rootme ; \
1126 (cd ./ispell; \
1127 $(MAKE) $(FLAGS_TO_PASS) all) ; \
1128 else \
1129 true ; \
1130 fi
1131
1132 install-ispell: force
1133 @if [ -f ./ispell/Makefile ] ; then \
1134 rootme=`pwd` ; export rootme ; \
1135 (cd ./ispell; \
1136 $(MAKE) $(FLAGS_TO_PASS) install) ; \
1137 else \
1138 true ; \
1139 fi
1140
1141 ### send_pr
1142 all-send_pr: force
1143 @if [ -f ./send_pr/Makefile ] ; then \
1144 rootme=`pwd` ; export rootme ; \
1145 (cd ./send_pr; \
1146 $(MAKE) $(FLAGS_TO_PASS) all) ; \
1147 else \
1148 true ; \
1149 fi
1150
1151 install-send_pr: force
1152 @if [ -f ./send_pr/Makefile ] ; then \
1153 rootme=`pwd` ; export rootme ; \
1154 (cd ./send_pr; \
1155 $(MAKE) $(FLAGS_TO_PASS) install) ; \
1156 else \
1157 true ; \
1158 fi
1159
1160 ### libm
1161 all-libm: force
1162 @if [ -f ./libm/Makefile ] ; then \
1163 rootme=`pwd` ; export rootme ; \
1164 (cd ./libm; \
1165 $(MAKE) $(TARGET_FLAGS_TO_PASS) all) ; \
1166 else \
1167 true ; \
1168 fi
1169
1170 install-libm: force
1171 @if [ -f ./libm/Makefile ] ; then \
1172 rootme=`pwd` ; export rootme ; \
1173 (cd ./libm; \
1174 $(MAKE) $(TARGET_FLAGS_TO_PASS) install) ; \
1175 else \
1176 true ; \
1177 fi
1178
1179 ### libg++
1180
1181 all-libg++: all-gas all-ld all-gcc all-xiberty all-newlib
1182 @if [ -f ./libg++/Makefile ] ; then \
1183 rootme=`pwd` ; export rootme ; \
1184 srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
1185 (cd ./libg++; \
1186 $(MAKE) $(TARGET_FLAGS_TO_PASS) all) ; \
1187 else \
1188 true ; \
1189 fi
1190
1191 install-libg++: force
1192 @if [ -f ./libg++/Makefile ] ; then \
1193 rootme=`pwd` ; export rootme ; \
1194 srcroot=`cd $(srcdir); pwd` ; export srcroot ; \
1195 (cd ./libg++; \
1196 $(MAKE) $(TARGET_FLAGS_TO_PASS) install) ; \
1197 else \
1198 true ; \
1199 fi
1200 ### tcl
1201 all-tcl:
1202 @if [ -f ./tcl/Makefile ] ; then \
1203 rootme=`pwd` ; export rootme ; \
1204 srcroot=`cd $(srcdir); pwd`; export srcroot ; \
1205 (cd ./tcl; \
1206 $(MAKE) $(FLAGS_TO_PASS) all) ; \
1207 else \
1208 true ; \
1209 fi
1210
1211 install-tcl: force
1212 @if [ -f ./tcl/Makefile ] ; then \
1213 rootme=`pwd` ; export rootme ; \
1214 srcroot=`cd $(srcdir); pwd`; export srcroot ; \
1215 (cd ./tcl; \
1216 $(MAKE) $(FLAGS_TO_PASS) install) ; \
1217 else \
1218 true ; \
1219 fi
1220
1221
1222 ### tk
1223 all-tk: all-tcl
1224 @if [ -f ./tk/Makefile ] ; then \
1225 rootme=`pwd` ; export rootme ; \
1226 srcroot=`cd $(srcdir); pwd`; export srcroot ; \
1227 (cd ./tk; \
1228 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) ; \
1229 else \
1230 true ; \
1231 fi
1232
1233 install-tk: force
1234 @if [ -f ./tk/Makefile ] ; then \
1235 rootme=`pwd` ; export rootme ; \
1236 srcroot=`cd $(srcdir); pwd`; export srcroot ; \
1237 (cd ./tk; \
1238 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) ; \
1239 else \
1240 true ; \
1241 fi
1242
1243 ### expect
1244 all-expect: all-tcl
1245 @if [ -f ./expect/Makefile ] ; then \
1246 rootme=`pwd` ; export rootme ; \
1247 srcroot=`cd $(srcdir); pwd`; export srcroot ; \
1248 (cd ./expect; \
1249 $(MAKE) $(FLAGS_TO_PASS) all) ; \
1250 else \
1251 true ; \
1252 fi
1253
1254 install-expect: force
1255 @if [ -f ./expect/Makefile ] ; then \
1256 rootme=`pwd` ; export rootme ; \
1257 srcroot=`cd $(srcdir); pwd`; export srcroot ; \
1258 (cd ./expect; \
1259 $(MAKE) $(FLAGS_TO_PASS) install) ; \
1260 else \
1261 true ; \
1262 fi
1263
1264 ### sim
1265 all-sim: all-bfd
1266 @if [ -f ./sim/Makefile ] ; then \
1267 rootme=`pwd` ; export rootme ; \
1268 (cd ./sim; \
1269 $(MAKE) $(FLAGS_TO_PASS) all) ; \
1270 else \
1271 true ; \
1272 fi
1273
1274 install-sim: force
1275 @if [ -f ./sim/Makefile ] ; then \
1276 rootme=`pwd` ; export rootme ; \
1277 (cd ./sim; \
1278 $(MAKE) $(FLAGS_TO_PASS) install) ; \
1279 else \
1280 true ; \
1281 fi
1282
1283 ### fileutils
1284 all-fileutils: force
1285 @if [ -f ./fileutils/Makefile ] ; then \
1286 rootme=`pwd` ; export rootme ; \
1287 (cd ./fileutils; $(MAKE) $(FLAGS_TO_PASS) all) ; \
1288 else \
1289 true ; \
1290 fi
1291
1292 install-fileutils: force
1293 @if [ -f ./fileutils/Makefile ] ; then \
1294 rootme=`pwd` ; export rootme ; \
1295 (cd ./fileutils; $(MAKE) $(FLAGS_TO_PASS) install) ; \
1296 else \
1297 true ; \
1298 fi
1299
1300 ### find
1301 all-find: force
1302 @if [ -f ./find/Makefile ] ; then \
1303 rootme=`pwd` ; export rootme ; \
1304 (cd ./find; $(MAKE) $(FLAGS_TO_PASS) all) ; \
1305 else \
1306 true ; \
1307 fi
1308
1309 install-find: force
1310 @if [ -f ./find/Makefile ] ; then \
1311 rootme=`pwd` ; export rootme ; \
1312 (cd ./find; $(MAKE) $(FLAGS_TO_PASS) install) ; \
1313 else \
1314 true ; \
1315 fi
1316
1317 ### gawk
1318 all-gawk: force
1319 @if [ -f ./gawk/Makefile ] ; then \
1320 rootme=`pwd` ; export rootme ; \
1321 (cd ./gawk; $(MAKE) $(FLAGS_TO_PASS) all) ; \
1322 else \
1323 true ; \
1324 fi
1325
1326 install-gawk: force
1327 @if [ -f ./gawk/Makefile ] ; then \
1328 rootme=`pwd` ; export rootme ; \
1329 (cd ./gawk; $(MAKE) $(FLAGS_TO_PASS) install) ; \
1330 else \
1331 true ; \
1332 fi
1333
1334 ### m4
1335 all-m4: all-libiberty
1336 @if [ -f ./m4/Makefile ] ; then \
1337 rootme=`pwd` ; export rootme ; \
1338 (cd ./m4; $(MAKE) $(FLAGS_TO_PASS) all) ; \
1339 else \
1340 true ; \
1341 fi
1342
1343 install-m4: force
1344 @if [ -f ./m4/Makefile ] ; then \
1345 rootme=`pwd` ; export rootme ; \
1346 (cd ./m4; $(MAKE) $(FLAGS_TO_PASS) install) ; \
1347 else \
1348 true ; \
1349 fi
1350
1351 ### sed
1352 all-sed: force
1353 @if [ -f ./sed/Makefile ] ; then \
1354 rootme=`pwd` ; export rootme ; \
1355 (cd ./sed; $(MAKE) $(FLAGS_TO_PASS) all) ; \
1356 else \
1357 true ; \
1358 fi
1359
1360 install-sed: force
1361 @if [ -f ./sed/Makefile ] ; then \
1362 rootme=`pwd` ; export rootme ; \
1363 (cd ./sed; $(MAKE) $(FLAGS_TO_PASS) install) ; \
1364 else \
1365 true ; \
1366 fi
1367
1368 ### time
1369 all-time: force
1370 @if [ -f ./time/Makefile ] ; then \
1371 rootme=`pwd` ; export rootme ; \
1372 (cd ./time; $(MAKE) $(FLAGS_TO_PASS) all) ; \
1373 else \
1374 true ; \
1375 fi
1376
1377 install-time: force
1378 @if [ -f ./time/Makefile ] ; then \
1379 rootme=`pwd` ; export rootme ; \
1380 (cd ./time; $(MAKE) $(FLAGS_TO_PASS) install) ; \
1381 else \
1382 true ; \
1383 fi
1384
1385 ### wdiff
1386 all-wdiff: force
1387 @if [ -f ./wdiff/Makefile ] ; then \
1388 rootme=`pwd` ; export rootme ; \
1389 (cd ./wdiff; $(MAKE) $(FLAGS_TO_PASS) all) ; \
1390 else \
1391 true ; \
1392 fi
1393
1394 install-wdiff: force
1395 @if [ -f ./wdiff/Makefile ] ; then \
1396 rootme=`pwd` ; export rootme ; \
1397 (cd ./wdiff; $(MAKE) $(FLAGS_TO_PASS) install) ; \
1398 else \
1399 true ; \
1400 fi
1401
1402 ### uudecode
1403 all-uudecode: all-libiberty
1404 @if [ -f ./uudecode/Makefile ] ; then \
1405 rootme=`pwd` ; export rootme ; \
1406 (cd ./uudecode; $(MAKE) $(FLAGS_TO_PASS) all) ; \
1407 else \
1408 true ; \
1409 fi
1410
1411 install-uudecode: force
1412 @if [ -f ./uudecode/Makefile ] ; then \
1413 rootme=`pwd` ; export rootme ; \
1414 (cd ./uudecode; $(MAKE) $(FLAGS_TO_PASS) install) ; \
1415 else \
1416 true ; \
1417 fi
1418
1419 ### shellutils
1420 all-shellutils: force
1421 @if [ -f ./shellutils/Makefile ] ; then \
1422 rootme=`pwd` ; export rootme ; \
1423 (cd ./shellutils; $(MAKE) $(FLAGS_TO_PASS) all) ; \
1424 else \
1425 true ; \
1426 fi
1427
1428 install-shellutils: force
1429 @if [ -f ./shellutils/Makefile ] ; then \
1430 rootme=`pwd` ; export rootme ; \
1431 (cd ./shellutils; $(MAKE) $(FLAGS_TO_PASS) install) ; \
1432 else \
1433 true ; \
1434 fi
1435
1436 ### textutils
1437 all-textutils: force
1438 @if [ -f ./textutils/Makefile ] ; then \
1439 rootme=`pwd` ; export rootme ; \
1440 (cd ./textutils; $(MAKE) $(FLAGS_TO_PASS) all) ; \
1441 else \
1442 true ; \
1443 fi
1444
1445 install-textutils: force
1446 @if [ -f ./textutils/Makefile ] ; then \
1447 rootme=`pwd` ; export rootme ; \
1448 (cd ./textutils; $(MAKE) $(FLAGS_TO_PASS) install) ; \
1449 else \
1450 true ; \
1451 fi
1452
1453
1454
1455 ### other supporting targets
1456
1457 MAKEDIRS= \
1458 $(prefix) \
1459 $(exec_prefix) \
1460 $(tooldir)
1461
1462 # $(bindir) \
1463 # $(libdir) \
1464 # $(includedir) \
1465 # $(datadir) \
1466 # $(docdir) \
1467 # $(mandir) \
1468 # $(man1dir) \
1469 # $(man5dir)
1470
1471 # $(man2dir) \
1472 # $(man3dir) \
1473 # $(man4dir) \
1474 # $(man6dir) \
1475 # $(man7dir) \
1476 # $(man8dir)
1477
1478 install-dirs:
1479 for i in $(MAKEDIRS) ; do \
1480 echo Making $$i... ; \
1481 parent=`echo $$i|sed -e 's@/[^/]*$$@@'`; \
1482 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi ; \
1483 if [ ! -d $$i ] ; then \
1484 if mkdir $$i ; then \
1485 true ; \
1486 else \
1487 exit 1 ; \
1488 fi ; \
1489 else \
1490 true ; \
1491 fi ; \
1492 done
1493
1494 install-info-dirs:
1495 if [ -d $(prefix) ] ; then true ; else mkdir $(prefix) ; fi
1496 -parent=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
1497 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
1498 -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
1499
1500 dir.info: do-install-info
1501 $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new
1502 mv -f dir.info.new dir.info
1503
1504 dist:
1505 @echo "Building a full distribution of this tree isn't done"
1506 @echo "via 'make dist'. Check out the etc/ subdirectory"
1507
1508 etags tags: TAGS
1509
1510 TAGS:
1511 etags `$(MAKE) ls`
1512
1513 ls:
1514 @echo Makefile
1515 @for i in $(SUBDIRS); \
1516 do \
1517 (cd $$i; \
1518 pwd=`pwd`; \
1519 wd=`basename $$pwd`; \
1520 for j in `$(MAKE) ls`; \
1521 do \
1522 echo $$wd/$$j; \
1523 done) \
1524 done
1525
1526 force:
1527
1528 # with the gnu make, this is done automatically.
1529
1530 Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
1531 $(SHELL) ./config.status
1532
1533 #
1534 # Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
1535
1536 DEVO_SUPPORT= README Makefile.in configure configure.in \
1537 config.guess config.sub config move-if-change
1538 ETC_SUPPORT= Makefile.in cfg-paper.texi configure.in configure.man \
1539 configure.texi
1540 GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline glob
1541 GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS)
1542
1543 setup-dirs: force
1544 ./configure sun4
1545 make clean
1546 ./configure -rm sun4
1547 chmod og=u `find etc $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
1548
1549 gdb.tar.Z: setup-dirs
1550 (cd gdb; $(MAKE) -f Makefile.in make-proto-gdb.dir BISON="byacc")
1551 $(MAKE) $(MFLAGS) -f Makefile.in make-gdb.tar.Z
1552
1553 make-gdb.tar.Z: $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS) gdb texinfo/texinfo.tex
1554 rm -rf proto-toplev; mkdir proto-toplev
1555 ln -s ../gdb/proto-gdb.dir proto-toplev/gdb
1556 (cd proto-toplev; for i in $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS); do \
1557 ln -s ../$$i . ; \
1558 done)
1559 mkdir proto-toplev/etc
1560 (cd proto-toplev/etc; for i in $(ETC_SUPPORT); do \
1561 ln -s ../../etc/$$i . ; \
1562 done)
1563 # Put only one copy (four hard links) of COPYING in the tar file.
1564 rm proto-toplev/bfd/COPYING
1565 ln proto-toplev/gdb/COPYING proto-toplev/bfd/COPYING
1566 rm proto-toplev/include/COPYING
1567 ln proto-toplev/gdb/COPYING proto-toplev/include/COPYING
1568 rm proto-toplev/readline/COPYING
1569 ln proto-toplev/gdb/COPYING proto-toplev/readline/COPYING
1570
1571 # Take out texinfo and glob from configurable dirs
1572 rm proto-toplev/configure.in
1573 sed -e '/^host_tools=/s/texinfo //' \
1574 -e '/^host_libs=/s/glob //' \
1575 <configure.in >proto-toplev/configure.in
1576
1577 # Take out texinfo from a few places; make simple BISON=bison line.
1578 rm proto-toplev/Makefile.in
1579 sed -e '/^all\.normal: /s/\all-texinfo //' \
1580 -e '/^ install-texinfo /d' \
1581 -e '\/^BISON =/,\/^$$/c\
1582 BISON = bison -y' \
1583 <Makefile.in >proto-toplev/Makefile.in
1584
1585 mkdir proto-toplev/texinfo
1586 ln -s ../../texinfo/texinfo.tex proto-toplev/texinfo/
1587 chmod og=u `find proto-toplev -print`
1588 (VER=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
1589 echo "==> Making gdb-$$VER.tar.Z"; \
1590 ln -s proto-toplev gdb-$$VER; \
1591 tar cfh - gdb-$$VER \
1592 | compress -v >gdb-$$VER.tar.Z)
1593
1594
1595 # end of Makefile.in
This page took 0.065198 seconds and 4 git commands to generate.