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