* Makefile.in (all-target-libjava): Depend on all-gcc and
[deliverable/binutils-gdb.git] / Makefile.in
1 #
2 # Makefile for directory with subdirs to build.
3 # Copyright (C) 1990, 91, 92, 93, 94, 95, 96, 97, 1998
4 # Free Software Foundation
5 #
6 # This file is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 #
20
21 srcdir = .
22
23 prefix = /usr/local
24 exec_prefix = $(prefix)
25
26 bindir=${exec_prefix}/bin
27 sbindir=${exec_prefix}/sbin
28 libexecdir=${exec_prefix}/libexec
29 datadir=${prefix}/share
30 sysconfdir=${prefix}/etc
31 sharedstatedir=${prefix}/com
32 localstatedir=${prefix}/var
33 libdir=${exec_prefix}/lib
34 includedir=${prefix}/include
35 oldincludedir=/usr/include
36 infodir=${prefix}/info
37 mandir=${prefix}/man
38
39 tooldir = $(exec_prefix)/$(target)
40
41 program_transform_name =
42
43 man1dir = $(mandir)/man1
44 man2dir = $(mandir)/man2
45 man3dir = $(mandir)/man3
46 man4dir = $(mandir)/man4
47 man5dir = $(mandir)/man5
48 man6dir = $(mandir)/man6
49 man7dir = $(mandir)/man7
50 man8dir = $(mandir)/man8
51 man9dir = $(mandir)/man9
52 GDB_NLM_DEPS =
53
54 SHELL = /bin/sh
55
56 # INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a
57 # cygwin32 host.
58 INSTALL_PROGRAM_ARGS =
59
60 INSTALL = $(SHELL) $$s/install-sh -c
61 INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_ARGS)
62 INSTALL_SCRIPT = $(INSTALL)
63 INSTALL_DATA = $(INSTALL) -m 644
64
65 INSTALL_DOSREL = install-dosrel-fake
66
67 AS = as
68 AR = ar
69 AR_FLAGS = rc
70 CC = cc
71
72 # Special variables passed down in EXTRA_GCC_FLAGS. They are defined
73 # here so that they can be overridden by Makefile fragments.
74 HOST_CC = $(CC_FOR_BUILD)
75 HOST_PREFIX =
76 HOST_PREFIX_1 = loser-
77
78 # These flag values are normally overridden by the configure script.
79 CFLAGS = -g
80 CXXFLAGS = -g -O2
81
82 LIBCFLAGS = $(CFLAGS)
83 CFLAGS_FOR_TARGET = $(CFLAGS)
84 LDFLAGS_FOR_TARGET =
85 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
86 PICFLAG =
87 PICFLAG_FOR_TARGET =
88
89 # start-sanitize-chill
90 CHILLFLAGS = $(CFLAGS)
91 CHILL_LIB = -lchill
92 # end-sanitize-chill
93 CXX = c++
94
95 # Use -O2 to stress test the compiler.
96 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
97 CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
98 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
99
100 RANLIB = ranlib
101
102 DLLTOOL = dlltool
103 WINDRES = windres
104
105 NM = nm
106
107 LD = ld
108
109 # Not plain GZIP, since gzip looks there for extra command-line options.
110 GZIPPROG = gzip
111
112 # These values are substituted by configure.
113 DEFAULT_YACC = yacc
114 DEFAULT_LEX = lex
115
116 BISON = `if [ -f $$r/bison/bison ] ; then \
117 echo $$r/bison/bison -L $$s/bison/ ; \
118 else \
119 echo bison ; \
120 fi`
121
122 YACC = `if [ -f $$r/bison/bison ] ; then \
123 echo $$r/bison/bison -y -L $$s/bison/ ; \
124 elif [ -f $$r/byacc/byacc ] ; then \
125 echo $$r/byacc/byacc ; \
126 else \
127 echo ${DEFAULT_YACC} ; \
128 fi`
129
130 LEX = `if [ -f $$r/flex/flex ] ; \
131 then echo $$r/flex/flex ; \
132 else echo ${DEFAULT_LEX} ; fi`
133
134 M4 = `if [ -f $$r/m4/m4 ] ; \
135 then echo $$r/m4/m4 ; \
136 else echo m4 ; fi`
137
138 MAKEINFO = `if [ -f $$r/texinfo/makeinfo/Makefile ] ; \
139 then echo $$r/texinfo/makeinfo/makeinfo ; \
140 else echo makeinfo ; fi`
141
142 # This just becomes part of the MAKEINFO definition passed down to
143 # sub-makes. It lets flags be given on the command line while still
144 # using the makeinfo from the object tree.
145 MAKEINFOFLAGS =
146
147 EXPECT = `if [ -f $$r/expect/expect ] ; \
148 then echo $$r/expect/expect ; \
149 else echo expect ; fi`
150
151 RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
152 then echo $$s/dejagnu/runtest ; \
153 else echo runtest ; fi`
154
155
156 # compilers to use to create programs which must be run in the build
157 # environment.
158 CC_FOR_BUILD = $(CC)
159 CXX_FOR_BUILD = $(CXX)
160
161 SUBDIRS = "this is set via configure, don't edit this"
162 OTHERS =
163
164 # This is set by the configure script to the list of directories which
165 # should be built using the target tools.
166 TARGET_CONFIGDIRS = libiberty libgloss newlib libio librx libstdc++ libg++ winsup opcodes libstub cygmon
167
168 # Target libraries are put under this directory:
169 # Changed by configure to $(target_alias) if cross.
170 TARGET_SUBDIR = .
171
172 # This is set by the configure script to the arguments passed to configure.
173 CONFIG_ARGUMENTS =
174
175 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
176 # was used.
177 SET_LIB_PATH =
178
179 # This is the name of the environment variable used for the path to
180 # the libraries. This may be changed by configure.in.
181 RPATH_ENVVAR = LD_LIBRARY_PATH
182
183 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
184 REALLY_SET_LIB_PATH = \
185 $(RPATH_ENVVAR)=$$r/bfd:$$r/opcodes:$$$(RPATH_ENVVAR); \
186 export $(RPATH_ENVVAR);
187
188 ALL = all.normal
189 INSTALL_TARGET = installdirs \
190 install-gcc \
191 $(INSTALL_MODULES) \
192 $(INSTALL_TARGET_MODULES) \
193 $(INSTALL_X11_MODULES) \
194 $(INSTALL_DOSREL)
195
196
197 CC_FOR_TARGET = ` \
198 if [ -f $$r/gcc/xgcc ] ; then \
199 if [ -f $$r/$(TARGET_SUBDIR)/newlib/Makefile ] ; then \
200 if [ -f $$r/$(TARGET_SUBDIR)/winsup/Makefile ] ; then \
201 echo $$r/gcc/xgcc -B$$r/gcc/ -B$$r/$(TARGET_SUBDIR)/newlib/ -L$$r/$(TARGET_SUBDIR)/winsup -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \
202 else \
203 echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \
204 fi; \
205 else \
206 echo $$r/gcc/xgcc -B$$r/gcc/; \
207 fi; \
208 else \
209 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
210 echo $(CC); \
211 else \
212 t='$(program_transform_name)'; echo gcc | sed -e 's/x/x/' $$t; \
213 fi; \
214 fi`
215
216 # If CC_FOR_TARGET is not overriden on the command line, then this
217 # variable is passed down to the gcc Makefile, where it is used to
218 # build libgcc2.a. We define it here so that it can itself be
219 # overridden on the command line.
220 GCC_FOR_TARGET = $$r/gcc/xgcc -B$$r/gcc/
221
222 # start-sanitize-chill
223 CHILL_FOR_TARGET = ` \
224 if [ -f $$r/gcc/xgcc ] ; then \
225 echo $$r/gcc/xgcc -B$$r/gcc/ -L$$r/gcc/ch/runtime/; \
226 else \
227 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
228 echo $(CC); \
229 else \
230 t='$(program_transform_name)'; echo gcc | sed -e 's/x/x/' $$t; \
231 fi; \
232 fi`
233
234 # end-sanitize-chill
235
236 CXX_FOR_TARGET = ` \
237 if [ -f $$r/gcc/xgcc ] ; then \
238 if [ -f $$r/$(TARGET_SUBDIR)/newlib/Makefile ] ; then \
239 if [ -f $$r/$(TARGET_SUBDIR)/winsup/Makefile ] ; then \
240 echo $$r/gcc/xgcc -B$$r/gcc/ -B$$r/$(TARGET_SUBDIR)/newlib/ -L$$r/winsup -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \
241 else \
242 echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \
243 fi; \
244 else \
245 echo $$r/gcc/xgcc -B$$r/gcc/; \
246 fi; \
247 else \
248 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
249 echo $(CXX); \
250 else \
251 t='$(program_transform_name)'; echo c++ | sed -e 's/x/x/' $$t; \
252 fi; \
253 fi`
254
255 AS_FOR_TARGET = ` \
256 if [ -f $$r/gas/as-new ] ; then \
257 echo $$r/gas/as-new ; \
258 else \
259 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
260 echo $(AS); \
261 else \
262 t='$(program_transform_name)'; echo as | sed -e 's/x/x/' $$t ; \
263 fi; \
264 fi`
265
266 LD_FOR_TARGET = ` \
267 if [ -f $$r/ld/ld-new ] ; then \
268 echo $$r/ld/ld-new ; \
269 else \
270 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
271 echo $(LD); \
272 else \
273 t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \
274 fi; \
275 fi`
276
277 DLLTOOL_FOR_TARGET = ` \
278 if [ -f $$r/binutils/dlltool ] ; then \
279 echo $$r/binutils/dlltool ; \
280 else \
281 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
282 echo $(DLLTOOL); \
283 else \
284 t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \
285 fi; \
286 fi`
287
288 WINDRES_FOR_TARGET = ` \
289 if [ -f $$r/binutils/windres ] ; then \
290 echo $$r/binutils/windres ; \
291 else \
292 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
293 echo $(WINDRES); \
294 else \
295 t='$(program_transform_name)'; echo windres | sed -e 's/x/x/' $$t ; \
296 fi; \
297 fi`
298
299 AR_FOR_TARGET = ` \
300 if [ -f $$r/binutils/ar ] ; then \
301 echo $$r/binutils/ar ; \
302 else \
303 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
304 echo $(AR); \
305 else \
306 t='$(program_transform_name)'; echo ar | sed -e 's/x/x/' $$t ; \
307 fi; \
308 fi`
309
310 RANLIB_FOR_TARGET = ` \
311 if [ -f $$r/binutils/ranlib ] ; then \
312 echo $$r/binutils/ranlib ; \
313 else \
314 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
315 echo $(RANLIB); \
316 else \
317 t='$(program_transform_name)'; echo ranlib | sed -e 's/x/x/' $$t ; \
318 fi; \
319 fi`
320
321 NM_FOR_TARGET = ` \
322 if [ -f $$r/binutils/nm-new ] ; then \
323 echo $$r/binutils/nm-new ; \
324 else \
325 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
326 echo $(NM); \
327 else \
328 t='$(program_transform_name)'; echo nm | sed -e 's/x/x/' $$t ; \
329 fi; \
330 fi`
331
332 #### host and target specific makefile fragments come in here.
333 ###
334
335 # Flags to pass down to all sub-makes.
336 # Please keep these in alphabetical order.
337 BASE_FLAGS_TO_PASS = \
338 "AR_FLAGS=$(AR_FLAGS)" \
339 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
340 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
341 "BISON=$(BISON)" \
342 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
343 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
344 "CFLAGS=$(CFLAGS)" \
345 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
346 $(start-sanitize-chill)\
347 "CHILLFLAGS=$(CHILLFLAGS)" \
348 "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \
349 "CHILL_LIB=$(CHILL_LIB)" \
350 $(end-sanitize-chill)\
351 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
352 "CXXFLAGS=$(CXXFLAGS)" \
353 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
354 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
355 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
356 "INSTALL=$(INSTALL)" \
357 "INSTALL_DATA=$(INSTALL_DATA)" \
358 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
359 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
360 "LDFLAGS=$(LDFLAGS)" \
361 "LEX=$(LEX)" \
362 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
363 "LIBCFLAGS=$(LIBCFLAGS)" \
364 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
365 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
366 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
367 "M4=$(M4)" \
368 "MAKE=$(MAKE)" \
369 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
370 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
371 "PICFLAG=$(PICFLAG)" \
372 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
373 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
374 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
375 "SHELL=$(SHELL)" \
376 "EXPECT=$(EXPECT)" \
377 "RUNTEST=$(RUNTEST)" \
378 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
379 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
380 "YACC=$(YACC)" \
381 "bindir=$(bindir)" \
382 "datadir=$(datadir)" \
383 "exec_prefix=$(exec_prefix)" \
384 "includedir=$(includedir)" \
385 "infodir=$(infodir)" \
386 "libdir=$(libdir)" \
387 "libexecdir=$(libexecdir)" \
388 "lispdir=$(lispdir)" \
389 "localstatedir=$(localstatedir)" \
390 "mandir=$(mandir)" \
391 "oldincludedir=$(oldincludedir)" \
392 "prefix=$(prefix)" \
393 "sbindir=$(sbindir)" \
394 "sharedstatedir=$(sharedstatedir)" \
395 "sysconfdir=$(sysconfdir)" \
396 "tooldir=$(tooldir)"
397
398 # Flags to pass down to most sub-makes, in which we're building with
399 # the host environment.
400 # If any variables are added here, they must be added to do-*, below.
401 EXTRA_HOST_FLAGS = \
402 'AR=$(AR)' \
403 'AS=$(AS)' \
404 'CC=$(CC)' \
405 'CXX=$(CXX)' \
406 'DLLTOOL=$(DLLTOOL)' \
407 'LD=$(LD)' \
408 'NM=$(NM)' \
409 'RANLIB=$(RANLIB)' \
410 'WINDRES=$(WINDRES)'
411
412 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
413
414 # Flags that are concerned with the location of the X11 include files
415 # and library files
416 #
417 # NOTE: until the top-level is getting the values via autoconf, it only
418 # causes problems to have this top-level Makefile overriding the autoconf-set
419 # values in child directories. Only variables that don't conflict with
420 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
421 #
422 X11_FLAGS_TO_PASS = \
423 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
424 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
425
426 # Flags to pass down to makes which are built with the target environment.
427 # The double $ decreases the length of the command line; the variables
428 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
429 # If any variables are added here, they must be added to do-*, below.
430 EXTRA_TARGET_FLAGS = \
431 'AR=$$(AR_FOR_TARGET)' \
432 'AS=$$(AS_FOR_TARGET)' \
433 'CC=$$(CC_FOR_TARGET)' \
434 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
435 'CXX=$$(CXX_FOR_TARGET)' \
436 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
437 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
438 'LD=$$(LD_FOR_TARGET)' \
439 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
440 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
441 'NM=$$(NM_FOR_TARGET)' \
442 'PICFLAG=$$(PICFLAG_FOR_TARGET)' \
443 'RANLIB=$$(RANLIB_FOR_TARGET)' \
444 'WINDRES=$$(WINDRES_FOR_TARGET)'
445
446 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
447
448 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
449 # unfortunately needs the native compiler and the target ar and
450 # ranlib.
451 # If any variables are added here, they must be added to do-*, below.
452 # The HOST_* variables are a special case, which are used for the gcc
453 # cross-building scheme.
454 EXTRA_GCC_FLAGS = \
455 'AR=$$(AR_FOR_TARGET)' \
456 'AS=$(AS)' \
457 'CC=$(CC)' \
458 'CXX=$(CXX)' \
459 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
460 'HOST_CC=$(CC_FOR_BUILD)' \
461 'HOST_PREFIX=$(HOST_PREFIX)' \
462 'HOST_PREFIX_1=$(HOST_PREFIX_1)' \
463 'NM=$(NM)' \
464 'RANLIB=$$(RANLIB_FOR_TARGET)' \
465 'WINDRES=$$(WINDRES_FOR_TARGET)' \
466 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
467 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s/.*=$$/XFOO=/`" \
468 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \
469 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \
470 "`echo 'LIBGCC1_TEST=$(LIBGCC1_TEST)' | sed -e s/.*=$$/XFOO=/`" \
471 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
472 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
473 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s/.*=$$/XFOO=/`" \
474 "`echo 'ENQUIRE=$(ENQUIRE)' | sed -e s/.*=$$/XFOO=/`" \
475 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`"
476
477 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
478
479 # This is a list of the targets for all of the modules which are compiled
480 # using $(FLAGS_TO_PASS).
481 ALL_MODULES = \
482 all-apache \
483 all-ash \
484 all-autoconf \
485 all-automake \
486 all-bash \
487 all-bfd \
488 all-binutils \
489 all-bison \
490 all-byacc \
491 $(start-sanitize-cygnus) \
492 all-cgen \
493 $(end-sanitize-cygnus) \
494 all-cvssrc \
495 all-db \
496 all-dejagnu \
497 all-diff \
498 all-dosutils \
499 all-etc \
500 all-fileutils \
501 all-findutils \
502 all-find \
503 all-flex \
504 $(start-sanitize-cygnus) \
505 all-flexlm \
506 $(end-sanitize-cygnus) \
507 all-gas \
508 all-gawk \
509 all-gettext \
510 all-gnuserv \
511 all-gprof \
512 all-grep \
513 all-grez \
514 all-gzip \
515 all-hello \
516 $(start-sanitize-ide) \
517 all-ilu \
518 $(end-sanitize-ide) \
519 all-indent \
520 all-inet \
521 all-intl \
522 all-ispell \
523 all-itcl \
524 $(start-sanitize-ide) \
525 all-jstools \
526 $(end-sanitize-ide) \
527 all-ld \
528 all-libgui \
529 all-libiberty \
530 $(start-sanitize-ide) \
531 all-libide \
532 all-libidetcl \
533 $(end-sanitize-ide) \
534 all-libtool \
535 all-m4 \
536 all-make \
537 all-mmalloc \
538 all-opcodes \
539 all-patch \
540 all-perl \
541 all-prms \
542 all-rcs \
543 all-readline \
544 all-release \
545 all-recode \
546 all-sed \
547 all-send-pr \
548 all-shellutils \
549 all-sim \
550 $(start-sanitize-cygnus) \
551 all-snavigator \
552 $(end-sanitize-cygnus) \
553 all-tar \
554 all-tcl \
555 all-texinfo \
556 all-textutils \
557 all-tgas \
558 all-time \
559 all-uudecode \
560 $(start-sanitize-ide) \
561 all-vmake \
562 $(end-sanitize-ide) \
563 all-wdiff
564
565 # This is a list of the check targets for all of the modules which are
566 # compiled using $(FLAGS_TO_PASS).
567 #
568 # The list is in two parts. The first lists those tools which
569 # are tested as part of the host's native tool-chain, and not
570 # tested in a cross configuration.
571 NATIVE_CHECK_MODULES = \
572 check-bison \
573 check-byacc \
574 check-flex
575
576 CROSS_CHECK_MODULES = \
577 check-apache \
578 check-ash \
579 check-autoconf \
580 check-automake \
581 check-bash \
582 check-bfd \
583 check-binutils \
584 check-cvssrc \
585 check-db \
586 check-dejagnu \
587 check-diff \
588 check-etc \
589 check-fileutils \
590 check-findutils \
591 check-find \
592 $(start-sanitize-cygnus) \
593 check-flexlm \
594 $(end-sanitize-cygnus) \
595 check-gas \
596 check-gawk \
597 check-gettext \
598 check-gnuserv \
599 check-gprof \
600 check-grep \
601 check-gzip \
602 check-hello \
603 $(start-sanitize-ide) \
604 check-ilu \
605 $(end-sanitize-ide) \
606 check-indent \
607 check-inet \
608 check-intl \
609 check-ispell \
610 check-itcl \
611 $(start-sanitize-ide) \
612 check-jstools \
613 $(end-sanitize-ide) \
614 check-ld \
615 check-libgui \
616 check-libiberty \
617 $(start-sanitize-ide) \
618 check-libide \
619 check-libidetcl \
620 $(end-sanitize-ide) \
621 check-libtool \
622 check-m4 \
623 check-make \
624 check-mmcheckoc \
625 check-opcodes \
626 check-patch \
627 check-perl \
628 check-prms \
629 check-rcs \
630 check-readline \
631 check-recode \
632 check-sed \
633 check-send-pr \
634 check-shellutils \
635 $(start-sanitize-cygnus) \
636 check-snavigator \
637 $(end-sanitize-cygnus) \
638 check-sim \
639 check-tar \
640 check-tcl \
641 check-texinfo \
642 check-textutils \
643 check-tgas \
644 check-time \
645 check-uudecode \
646 $(start-sanitize-ide) \
647 check-vmake \
648 $(end-sanitize-ide) \
649 check-wdiff
650
651 CHECK_MODULES=$(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
652
653 # This is a list of the install targets for all of the modules which are
654 # compiled using $(FLAGS_TO_PASS).
655 # We put install-opcodes before install-binutils because the installed
656 # binutils might be on PATH, and they might need the shared opcodes
657 # library.
658 # We put install-tcl before install-itcl because itcl wants to run a
659 # program on installation which uses the Tcl libraries.
660 INSTALL_MODULES = \
661 install-apache \
662 install-ash \
663 install-autoconf \
664 install-automake \
665 install-bash \
666 install-bfd \
667 install-opcodes \
668 install-binutils \
669 install-bison \
670 install-byacc \
671 install-cvssrc \
672 install-db \
673 install-dejagnu \
674 install-diff \
675 install-dosutils \
676 install-etc \
677 install-fileutils \
678 install-findutils \
679 install-find \
680 install-flex \
681 $(start-sanitize-cygnus) \
682 install-flexlm \
683 $(end-sanitize-cygnus) \
684 install-gas \
685 install-gawk \
686 install-gettext \
687 install-gnuserv \
688 install-gprof \
689 install-grep \
690 install-grez \
691 install-gzip \
692 install-hello \
693 $(start-sanitize-ide) \
694 install-ilu \
695 $(end-sanitize-ide) \
696 install-indent \
697 install-inet \
698 install-intl \
699 install-ispell \
700 install-tcl \
701 install-itcl \
702 $(start-sanitize-ide) \
703 install-jstools \
704 $(end-sanitize-ide) \
705 install-ld \
706 install-libgui \
707 install-libiberty \
708 $(start-sanitize-ide) \
709 install-libide \
710 install-libidetcl \
711 $(end-sanitize-ide) \
712 install-libtool \
713 install-m4 \
714 install-make \
715 install-mmalloc \
716 install-patch \
717 install-perl \
718 install-prms \
719 install-rcs \
720 install-readline \
721 install-recode \
722 install-sed \
723 install-send-pr \
724 install-shellutils \
725 install-sim \
726 $(start-sanitize-cygnus) \
727 install-snavigator \
728 $(end-sanitize-cygnus) \
729 install-tar \
730 install-texinfo \
731 install-textutils \
732 install-tgas \
733 install-time \
734 install-uudecode \
735 $(start-sanitize-ide) \
736 install-vmake \
737 $(end-sanitize-ide) \
738 install-wdiff
739
740 # This is a list of the targets for all of the modules which are compiled
741 # using $(X11_FLAGS_TO_PASS).
742 ALL_X11_MODULES = \
743 all-emacs \
744 all-emacs19 \
745 all-gdb \
746 all-expect \
747 all-gash \
748 all-guile \
749 all-tclX \
750 all-tk \
751 all-tix
752
753 # This is a list of the check targets for all of the modules which are
754 # compiled using $(X11_FLAGS_TO_PASS).
755 CHECK_X11_MODULES = \
756 check-emacs \
757 check-gdb \
758 check-guile \
759 check-expect \
760 check-gash \
761 check-tclX \
762 check-tk \
763 check-tix
764
765 # This is a list of the install targets for all the modules which are
766 # compiled using $(X11_FLAGS_TO_PASS).
767 INSTALL_X11_MODULES = \
768 install-emacs \
769 install-emacs19 \
770 install-gdb \
771 install-guile \
772 install-expect \
773 install-gash \
774 install-tclX \
775 install-tk \
776 install-tix
777
778 # This is a list of the targets for all of the modules which are compiled
779 # using $(TARGET_FLAGS_TO_PASS).
780 ALL_TARGET_MODULES = \
781 all-target-libio \
782 all-target-libstdc++ \
783 all-target-librx \
784 all-target-libg++ \
785 all-target-newlib \
786 all-target-winsup \
787 all-target-libgloss \
788 all-target-libiberty \
789 all-target-gperf \
790 all-target-examples \
791 all-target-libstub \
792 $(start-sanitize-java) \
793 all-target-libjava \
794 all-target-boehm-gc \
795 $(end-sanitize-java) \
796 all-target-cygmon
797
798 # This is a list of the configure targets for all of the modules which
799 # are compiled using the target tools.
800 CONFIGURE_TARGET_MODULES = \
801 configure-target-libio \
802 configure-target-libstdc++ \
803 configure-target-librx \
804 configure-target-libg++ \
805 configure-target-newlib \
806 configure-target-winsup \
807 configure-target-libgloss \
808 configure-target-libiberty \
809 configure-target-gperf \
810 configure-target-examples \
811 configure-target-libstub \
812 $(start-sanitize-java) \
813 configure-target-libjava \
814 configure-target-boehm-gc \
815 $(end-sanitize-java) \
816 configure-target-cygmon
817
818 # This is a list of the check targets for all of the modules which are
819 # compiled using $(TARGET_FLAGS_TO_PASS).
820 CHECK_TARGET_MODULES = \
821 check-target-libio \
822 check-target-libstdc++ \
823 check-target-libg++ \
824 check-target-newlib \
825 check-target-winsup \
826 check-target-libiberty \
827 $(start-sanitize-java) \
828 check-target-libjava \
829 check-target-boehm-gc \
830 $(end-sanitize-java) \
831 check-target-gperf
832
833 # This is a list of the install targets for all of the modules which are
834 # compiled using $(TARGET_FLAGS_TO_PASS).
835 INSTALL_TARGET_MODULES = \
836 install-target-libio \
837 install-target-libstdc++ \
838 install-target-libg++ \
839 install-target-newlib \
840 install-target-winsup \
841 install-target-libgloss \
842 install-target-libiberty \
843 $(start-sanitize-java) \
844 install-target-libjava \
845 install-target-boehm-gc \
846 $(end-sanitize-java) \
847 install-target-gperf
848
849 # This is a list of the targets for which we can do a clean-{target}.
850 CLEAN_MODULES = \
851 clean-apache \
852 clean-ash \
853 clean-autoconf \
854 clean-automake \
855 clean-bash \
856 clean-bfd \
857 clean-binutils \
858 clean-bison \
859 clean-byacc \
860 $(start-sanitize-cygnus) \
861 clean-cgen \
862 $(end-sanitize-cygnus) \
863 clean-cvssrc \
864 clean-db \
865 clean-dejagnu \
866 clean-diff \
867 clean-dosutils \
868 clean-etc \
869 clean-fileutils \
870 clean-findutils \
871 clean-find \
872 clean-flex \
873 $(start-sanitize-cygnus) \
874 clean-flexlm \
875 $(end-sanitize-cygnus) \
876 clean-gas \
877 clean-gawk \
878 clean-gettext \
879 clean-gnuserv \
880 clean-gprof \
881 clean-grep \
882 clean-grez \
883 clean-gzip \
884 clean-hello \
885 $(start-sanitize-ide) \
886 clean-ilu \
887 $(end-sanitize-ide) \
888 clean-indent \
889 clean-inet \
890 clean-intl \
891 clean-ispell \
892 clean-itcl \
893 $(start-sanitize-ide) \
894 clean-jstools \
895 $(end-sanitize-ide) \
896 clean-ld \
897 clean-libgui \
898 clean-libiberty \
899 $(start-sanitize-ide) \
900 clean-libide \
901 clean-libidetcl \
902 $(end-sanitize-ide) \
903 clean-libtool \
904 clean-m4 \
905 clean-make \
906 clean-mmalloc \
907 clean-opcodes \
908 clean-patch \
909 clean-perl \
910 clean-prms \
911 clean-rcs \
912 clean-readline \
913 clean-release \
914 clean-recode \
915 clean-sed \
916 clean-send-pr \
917 clean-shellutils \
918 clean-sim \
919 $(start-sanitize-cygnus) \
920 clean-snavigator \
921 $(end-sanitize-cygnus) \
922 clean-tar \
923 clean-tcl \
924 clean-texinfo \
925 clean-textutils \
926 clean-tgas \
927 clean-time \
928 clean-uudecode \
929 $(start-sanitize-ide) \
930 clean-vmake \
931 $(end-sanitize-ide) \
932 clean-wdiff
933
934 # All of the target modules that can be cleaned
935 CLEAN_TARGET_MODULES = \
936 clean-target-libio \
937 clean-target-libstdc++ \
938 clean-target-librx \
939 clean-target-libg++ \
940 clean-target-newlib \
941 clean-target-winsup \
942 clean-target-libgloss \
943 clean-target-libiberty \
944 clean-target-gperf \
945 clean-target-examples \
946 clean-target-libstub \
947 $(start-sanitize-java) \
948 clean-target-libjava \
949 clean-target-boehm-gc \
950 $(end-sanitize-java) \
951 clean-target-cygmon
952
953 # All of the x11 modules that can be cleaned
954 CLEAN_X11_MODULES = \
955 clean-emacs \
956 clean-emacs19 \
957 clean-gdb \
958 clean-expect \
959 clean-gash \
960 clean-guile \
961 clean-tclX \
962 clean-tk \
963 clean-tix
964
965 # The first rule in the file had better be this one. Don't put any above it.
966 all: all.normal
967 .PHONY: all
968
969 # The target built for a native build.
970 .PHONY: all.normal
971 all.normal: \
972 $(ALL_MODULES) \
973 $(ALL_X11_MODULES) \
974 $(ALL_TARGET_MODULES) \
975 all-gcc
976
977 # Do a target for all the subdirectories. A ``make do-X'' will do a
978 # ``make X'' in all subdirectories (because, in general, there is a
979 # dependency (below) of X upon do-X, a ``make X'' will also do this,
980 # but it may do additional work as well).
981 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
982 # because it is so large that it can easily overflow the command line
983 # length limit on some systems.
984 DO_X = \
985 do-clean \
986 do-distclean \
987 do-dvi \
988 do-info \
989 do-install-info \
990 do-installcheck \
991 do-mostlyclean \
992 do-maintainer-clean \
993 do-TAGS
994 .PHONY: $(DO_X)
995 $(DO_X):
996 @target=`echo $@ | sed -e 's/^do-//'`; \
997 r=`pwd`; export r; \
998 s=`cd $(srcdir); pwd`; export s; \
999 $(SET_LIB_PATH) \
1000 for i in $(SUBDIRS) -dummy-; do \
1001 if [ -f ./$$i/Makefile ]; then \
1002 case $$i in \
1003 gcc) \
1004 for flag in $(EXTRA_GCC_FLAGS); do \
1005 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
1006 done; \
1007 ;; \
1008 *) \
1009 for flag in $(EXTRA_HOST_FLAGS); do \
1010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
1011 done; \
1012 ;; \
1013 esac ; \
1014 export AR AS CC CXX LD NM RANLIB DLLTOOL WINDRES; \
1015 if (cd ./$$i; \
1016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1018 "RANLIB=$${RANLIB}" \
1019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1020 $${target}); \
1021 then true; else exit 1; fi; \
1022 else true; fi; \
1023 done
1024 @target=`echo $@ | sed -e 's/^do-//'`; \
1025 r=`pwd`; export r; \
1026 s=`cd $(srcdir); pwd`; export s; \
1027 $(SET_LIB_PATH) \
1028 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1029 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1030 for flag in $(EXTRA_TARGET_FLAGS); do \
1031 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
1032 done; \
1033 export AR AS CC CXX LD NM RANLIB DLLTOOL WINDRES; \
1034 if (cd $(TARGET_SUBDIR)/$$i; \
1035 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1036 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1037 "RANLIB=$${RANLIB}" \
1038 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1039 $${target}); \
1040 then true; else exit 1; fi; \
1041 else true; fi; \
1042 done
1043
1044 # Here are the targets which correspond to the do-X targets.
1045
1046 .PHONY: info installcheck dvi install-info
1047 .PHONY: clean distclean mostlyclean maintainer-clean realclean
1048 .PHONY: local-clean local-distclean local-maintainer-clean
1049 info: do-info
1050 installcheck: do-installcheck
1051 dvi: do-dvi
1052
1053 # Make sure makeinfo is built before we do a `make info'.
1054 do-info: all-texinfo
1055
1056 install-info: do-install-info dir.info
1057 s=`cd $(srcdir); pwd`; export s; \
1058 if [ -f dir.info ] ; then \
1059 $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \
1060 else true ; fi
1061
1062 local-clean:
1063 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E
1064
1065 local-distclean:
1066 -rm -f Makefile config.status config.cache
1067 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1068 rm -rf $(TARGET_SUBDIR); \
1069 else true; fi
1070
1071 local-maintainer-clean:
1072 @echo "This command is intended for maintainers to use;"
1073 @echo "it deletes files that may require special tools to rebuild."
1074
1075 clean: do-clean local-clean
1076 mostlyclean: do-mostlyclean local-clean
1077 distclean: do-distclean local-clean local-distclean
1078 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1079 maintainer-clean: local-distclean
1080 realclean: maintainer-clean
1081
1082 # This rule is used to clean specific modules.
1083 .PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc
1084 $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc:
1085 @dir=`echo $@ | sed -e 's/clean-//'`; \
1086 if [ -f ./$${dir}/Makefile ] ; then \
1087 r=`pwd`; export r; \
1088 s=`cd $(srcdir); pwd`; export s; \
1089 $(SET_LIB_PATH) \
1090 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) clean); \
1091 else \
1092 true; \
1093 fi
1094
1095 .PHONY: $(CLEAN_TARGET_MODULES)
1096 $(CLEAN_TARGET_MODULES):
1097 @dir=`echo $@ | sed -e 's/clean-target-//'`; \
1098 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1099 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1100 r=`pwd`; export r; \
1101 s=`cd $(srcdir); pwd`; export s; \
1102 $(SET_LIB_PATH) \
1103 (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \
1104 else \
1105 true; \
1106 fi
1107
1108 clean-target: $(CLEAN_TARGET_MODULES)
1109
1110 # Check target.
1111
1112 .PHONY: check
1113 check: $(CHECK_MODULES) \
1114 $(CHECK_TARGET_MODULES) \
1115 $(CHECK_X11_MODULES) \
1116 check-gcc
1117
1118 # Installation targets.
1119
1120 .PHONY: install uninstall source-vault binary-vault vault-install
1121 install: $(INSTALL_TARGET)
1122
1123 uninstall:
1124 @echo "the uninstall target is not supported in this tree"
1125
1126 source-vault:
1127 $(MAKE) -f ./release/Build-A-Release \
1128 host=$(host_alias) source-vault
1129
1130 binary-vault:
1131 $(MAKE) -f ./release/Build-A-Release \
1132 host=$(host_alias) target=$(target_alias)
1133
1134 vault-install:
1135 @if [ -f ./release/vault-install ] ; then \
1136 ./release/vault-install $(host_alias) $(target_alias) ; \
1137 else \
1138 true ; \
1139 fi
1140
1141 .PHONY: install.all
1142 install.all: install-no-fixedincludes
1143 @if [ -f ./gcc/Makefile ] ; then \
1144 r=`pwd` ; export r ; \
1145 $(SET_LIB_PATH) \
1146 (cd ./gcc; \
1147 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
1148 else \
1149 true ; \
1150 fi
1151
1152 # inet-install is used because the I*Net wants DejaGNU installed but
1153 # not built. Similarly, gzip is built but not installed.
1154 inet-install:
1155 $(MAKE) INSTALL_MODULES="`echo $(INSTALL_MODULES) | sed -e 's/install-dejagnu//' -e 's/install-gzip//'`" install
1156
1157 # install-no-fixedincludes is used because Cygnus can not distribute
1158 # the fixed header files.
1159 .PHONY: install-no-fixedincludes
1160 install-no-fixedincludes: \
1161 installdirs \
1162 $(INSTALL_MODULES) \
1163 $(INSTALL_TARGET_MODULES) \
1164 $(INSTALL_X11_MODULES) \
1165 gcc-no-fixedincludes
1166
1167 # Install the gcc headers files, but not the fixed include files,
1168 # which Cygnus is not allowed to distribute. This rule is very
1169 # dependent on the workings of the gcc Makefile.in.
1170 .PHONY: gcc-no-fixedincludes
1171 gcc-no-fixedincludes:
1172 @if [ -f ./gcc/Makefile ]; then \
1173 rm -rf gcc/tmp-include; \
1174 mv gcc/include gcc/tmp-include 2>/dev/null; \
1175 mkdir gcc/include; \
1176 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
1177 touch gcc/stmp-fixinc gcc/include/fixed; \
1178 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
1179 r=`pwd`; export r; \
1180 s=`cd $(srcdir); pwd` ; export s; \
1181 $(SET_LIB_PATH) \
1182 (cd ./gcc; \
1183 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1184 rm -rf gcc/include; \
1185 mv gcc/tmp-include gcc/include 2>/dev/null; \
1186 else true; fi
1187
1188 # start-sanitize-ide
1189 # Install Foundry. Avoid installing a bunch of stuff we don't need.
1190 install-foundry:
1191 mods="$(INSTALL_MODULES)"; \
1192 x11_mods="$(INSTALL_X11_MODULES)"; \
1193 for d in install-tcl install-tk install-itcl install-tix install-ilu; do \
1194 mods="`echo $${mods} | sed -e "s/$$d//"`"; \
1195 x11_mods="`echo $${x11_mods} | sed -e "s/$$d//"`"; \
1196 done; \
1197 $(MAKE) INSTALL_MODULES="$${mods}" INSTALL_X11_MODULES="$${x11_mods}" install
1198 for d in tcl tk itcl tix ilu; do \
1199 if [ -f $$d/Makefile ]; then \
1200 r=`pwd`; export r; \
1201 s=`cd $(srcdir); pwd`; export s; \
1202 $(SET_LIB_PATH) \
1203 (cd $$d; $(MAKE) $(FLAGS_TO_PASS) install-minimal); \
1204 else \
1205 true; \
1206 fi; \
1207 done
1208 # end-sanitize-ide
1209
1210 # This rule is used to build the modules which use FLAGS_TO_PASS. To
1211 # build a target all-X means to cd to X and make all.
1212 #
1213 # all-gui, and all-libproc are handled specially because
1214 # they are still experimental, and if they fail to build, that
1215 # shouldn't stop "make all".
1216 .PHONY: $(ALL_MODULES) all-gui all-libproc
1217 $(ALL_MODULES) all-gui all-libproc:
1218 @dir=`echo $@ | sed -e 's/all-//'`; \
1219 if [ -f ./$${dir}/Makefile ] ; then \
1220 r=`pwd`; export r; \
1221 s=`cd $(srcdir); pwd`; export s; \
1222 $(SET_LIB_PATH) \
1223 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \
1224 else \
1225 true; \
1226 fi
1227
1228 # These rules are used to check the modules which use FLAGS_TO_PASS.
1229 # To build a target check-X means to cd to X and make check. Some
1230 # modules are only tested in a native toolchain.
1231
1232 .PHONY: $(CHECK_MODULES) $(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
1233 $(NATIVE_CHECK_MODULES):
1234 @if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
1235 dir=`echo $@ | sed -e 's/check-//'`; \
1236 if [ -f ./$${dir}/Makefile ] ; then \
1237 r=`pwd`; export r; \
1238 s=`cd $(srcdir); pwd`; export s; \
1239 $(SET_LIB_PATH) \
1240 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1241 else \
1242 true; \
1243 fi; \
1244 fi
1245
1246 $(CROSS_CHECK_MODULES):
1247 @dir=`echo $@ | sed -e 's/check-//'`; \
1248 if [ -f ./$${dir}/Makefile ] ; then \
1249 r=`pwd`; export r; \
1250 s=`cd $(srcdir); pwd`; export s; \
1251 $(SET_LIB_PATH) \
1252 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1253 else \
1254 true; \
1255 fi
1256
1257 # This rule is used to install the modules which use FLAGS_TO_PASS.
1258 # To build a target install-X means to cd to X and make install.
1259 .PHONY: $(INSTALL_MODULES)
1260 $(INSTALL_MODULES): installdirs
1261 @dir=`echo $@ | sed -e 's/install-//'`; \
1262 if [ -f ./$${dir}/Makefile ] ; then \
1263 r=`pwd`; export r; \
1264 s=`cd $(srcdir); pwd`; export s; \
1265 $(SET_LIB_PATH) \
1266 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1267 else \
1268 true; \
1269 fi
1270
1271 # This rule is used to configure the modules which are built with the
1272 # target tools.
1273 .PHONY: $(CONFIGURE_TARGET_MODULES)
1274 $(CONFIGURE_TARGET_MODULES):
1275 @dir=`echo $@ | sed -e 's/configure-target-//'`; \
1276 if [ -d $(TARGET_SUBDIR)/$${dir} ]; then \
1277 r=`pwd`; export r; \
1278 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/$${dir}/tmpmulti.out 2> /dev/null; \
1279 if [ -s $(TARGET_SUBDIR)/$${dir}/tmpmulti.out ]; then \
1280 if [ -f $(TARGET_SUBDIR)/$${dir}/multilib.out ]; then \
1281 if cmp $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out > /dev/null; then \
1282 rm -f $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1283 else \
1284 echo "Multilibs changed for $${dir}, reconfiguring"; \
1285 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/Makefile; \
1286 mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
1287 fi; \
1288 else \
1289 if echo '.;' | cmp - $(TARGET_SUBDIR)/$${dir}/tmpmulti.out >/dev/null 2>&1; then \
1290 true; \
1291 else \
1292 rm -f $(TARGET_SUBDIR)/$${dir}/Makefile; \
1293 fi; \
1294 mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
1295 fi; \
1296 fi; \
1297 fi; exit 0 # break command into two pieces
1298 @dir=`echo $@ | sed -e 's/configure-target-//'`; \
1299 if [ ! -d $(TARGET_SUBDIR) ]; then \
1300 true; \
1301 elif [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1302 true; \
1303 elif echo " $(TARGET_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \
1304 if [ -d $(srcdir)/$${dir} ]; then \
1305 [ -d $(TARGET_SUBDIR)/$${dir} ] || mkdir $(TARGET_SUBDIR)/$${dir};\
1306 r=`pwd`; export r; \
1307 s=`cd $(srcdir); pwd`; export s; \
1308 $(SET_LIB_PATH) \
1309 AR="$(AR_FOR_TARGET)"; export AR; \
1310 AS="$(AS_FOR_TARGET)"; export AS; \
1311 CC="$(CC_FOR_TARGET)"; export CC; \
1312 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
1313 CXX="$(CXX_FOR_TARGET)"; export CXX; \
1314 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1315 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
1316 LD="$(LD_FOR_TARGET)"; export LD; \
1317 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
1318 NM="$(NM_FOR_TARGET)"; export NM; \
1319 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
1320 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
1321 echo Configuring in $(TARGET_SUBDIR)/$${dir}; \
1322 cd $(TARGET_SUBDIR)/$${dir}; \
1323 case $(srcdir) in \
1324 /*) \
1325 topdir=$(srcdir) ;; \
1326 *) \
1327 case "$(TARGET_SUBDIR)" in \
1328 .) topdir="../$(srcdir)" ;; \
1329 *) topdir="../../$(srcdir)" ;; \
1330 esac ;; \
1331 esac; \
1332 if [ "$(srcdir)" = "." ] ; then \
1333 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
1334 if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \
1335 if [ -f Makefile ]; then \
1336 if $(MAKE) distclean; then \
1337 true; \
1338 else \
1339 exit 1; \
1340 fi; \
1341 else \
1342 true; \
1343 fi; \
1344 else \
1345 exit 1; \
1346 fi; \
1347 else \
1348 true; \
1349 fi; \
1350 srcdiroption="--srcdir=."; \
1351 libsrcdir="."; \
1352 else \
1353 srcdiroption="--srcdir=$${topdir}/$${dir}"; \
1354 libsrcdir="$$s/$${dir}"; \
1355 fi; \
1356 if [ -f $${libsrcdir}/configure ] ; then \
1357 $(SHELL) $${libsrcdir}/configure \
1358 $(CONFIG_ARGUMENTS) $${srcdiroption} \
1359 --with-target-subdir="$(TARGET_SUBDIR)"; \
1360 else \
1361 $(SHELL) $$s/configure \
1362 $(CONFIG_ARGUMENTS) $${srcdiroption} \
1363 --with-target-subdir="$(TARGET_SUBDIR)"; \
1364 fi; \
1365 else \
1366 true; \
1367 fi; \
1368 else \
1369 true; \
1370 fi
1371
1372 # This rule is used to build the modules which use TARGET_FLAGS_TO_PASS.
1373 # To build a target all-X means to cd to X and make all.
1374 .PHONY: $(ALL_TARGET_MODULES)
1375 $(ALL_TARGET_MODULES):
1376 @dir=`echo $@ | sed -e 's/all-target-//'`; \
1377 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1378 r=`pwd`; export r; \
1379 s=`cd $(srcdir); pwd`; export s; \
1380 $(SET_LIB_PATH) \
1381 (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
1382 else \
1383 true; \
1384 fi
1385
1386 # This rule is used to check the modules which use TARGET_FLAGS_TO_PASS.
1387 # To build a target install-X means to cd to X and make install.
1388 .PHONY: $(CHECK_TARGET_MODULES)
1389 $(CHECK_TARGET_MODULES):
1390 @dir=`echo $@ | sed -e 's/check-target-//'`; \
1391 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1392 r=`pwd`; export r; \
1393 s=`cd $(srcdir); pwd`; export s; \
1394 $(SET_LIB_PATH) \
1395 (cd $(TARGET_SUBDIR)/$${dir};$(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
1396 else \
1397 true; \
1398 fi
1399
1400 # This rule is used to install the modules which use
1401 # TARGET_FLAGS_TO_PASS. To build a target install-X means to cd to X
1402 # and make install.
1403 .PHONY: $(INSTALL_TARGET_MODULES)
1404 $(INSTALL_TARGET_MODULES): installdirs
1405 @dir=`echo $@ | sed -e 's/install-target-//'`; \
1406 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1407 r=`pwd`; export r; \
1408 s=`cd $(srcdir); pwd`; export s; \
1409 $(SET_LIB_PATH) \
1410 (cd $(TARGET_SUBDIR)/$${dir}; \
1411 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
1412 else \
1413 true; \
1414 fi
1415
1416 # This rule is used to build the modules which use X11_FLAGS_TO_PASS.
1417 # To build a target all-X means to cd to X and make all.
1418 .PHONY: $(ALL_X11_MODULES)
1419 $(ALL_X11_MODULES):
1420 @dir=`echo $@ | sed -e 's/all-//'`; \
1421 if [ -f ./$${dir}/Makefile ] ; then \
1422 r=`pwd`; export r; \
1423 s=`cd $(srcdir); pwd`; export s; \
1424 $(SET_LIB_PATH) \
1425 (cd $${dir}; \
1426 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
1427 else \
1428 true; \
1429 fi
1430
1431 # This rule is used to check the modules which use X11_FLAGS_TO_PASS.
1432 # To build a target check-X means to cd to X and make all.
1433 .PHONY: $(CHECK_X11_MODULES)
1434 $(CHECK_X11_MODULES):
1435 @dir=`echo $@ | sed -e 's/check-//'`; \
1436 if [ -f ./$${dir}/Makefile ] ; then \
1437 r=`pwd`; export r; \
1438 s=`cd $(srcdir); pwd`; export s; \
1439 $(SET_LIB_PATH) \
1440 (cd $${dir}; \
1441 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
1442 else \
1443 true; \
1444 fi
1445
1446 # This rule is used to install the modules which use X11_FLAGS_TO_PASS.
1447 # To build a target install-X means to cd to X and make install.
1448 .PHONY: $(INSTALL_X11_MODULES)
1449 $(INSTALL_X11_MODULES): installdirs
1450 @dir=`echo $@ | sed -e 's/install-//'`; \
1451 if [ -f ./$${dir}/Makefile ] ; then \
1452 r=`pwd`; export r; \
1453 s=`cd $(srcdir); pwd`; export s; \
1454 $(SET_LIB_PATH) \
1455 (cd $${dir}; \
1456 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
1457 else \
1458 true; \
1459 fi
1460
1461 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
1462 .PHONY: all-gcc
1463 all-gcc:
1464 @if [ -f ./gcc/Makefile ] ; then \
1465 r=`pwd`; export r; \
1466 s=`cd $(srcdir); pwd`; export s; \
1467 $(SET_LIB_PATH) \
1468 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
1469 else \
1470 true; \
1471 fi
1472
1473 .PHONY: all-bootstrap
1474 all-bootstrap:
1475 @if [ -f ./gcc/Makefile ] ; then \
1476 r=`pwd`; export r; \
1477 s=`cd $(srcdir); pwd`; export s; \
1478 $(SET_LIB_PATH) \
1479 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) bootstrap); \
1480 else \
1481 true; \
1482 fi
1483
1484 .PHONY: check-gcc
1485 check-gcc:
1486 @if [ -f ./gcc/Makefile ] ; then \
1487 r=`pwd`; export r; \
1488 s=`cd $(srcdir); pwd`; export s; \
1489 $(SET_LIB_PATH) \
1490 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
1491 else \
1492 true; \
1493 fi
1494
1495 .PHONY: install-gcc
1496 install-gcc:
1497 @if [ -f ./gcc/Makefile ] ; then \
1498 r=`pwd`; export r; \
1499 s=`cd $(srcdir); pwd`; export s; \
1500 $(SET_LIB_PATH) \
1501 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1502 else \
1503 true; \
1504 fi
1505
1506
1507 # EXPERIMENTAL STUFF
1508 # This rule is used to install the modules which use FLAGS_TO_PASS.
1509 # To build a target install-X means to cd to X and make install.
1510 .PHONY: install-dosrel
1511 install-dosrel: installdirs info
1512 @dir=`echo $@ | sed -e 's/install-//'`; \
1513 if [ -f ./$${dir}/Makefile ] ; then \
1514 r=`pwd`; export r; \
1515 s=`cd $(srcdir); pwd`; export s; \
1516 $(SET_LIB_PATH) \
1517 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1518 else \
1519 true; \
1520 fi
1521
1522 install-dosrel-fake:
1523
1524
1525 # This is a list of inter-dependencies among modules.
1526 all-apache:
1527 all-ash:
1528 all-autoconf: all-m4 all-texinfo
1529 all-automake:
1530 all-bash:
1531 all-bfd: all-libiberty all-intl
1532 all-binutils: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc all-intl
1533 all-bison: all-texinfo
1534 # start-sanitize-java
1535 all-target-boehm-gc: configure-target-boehm-gc
1536 # end-sanitize-java
1537 all-byacc:
1538 # start-sanitize-cygnus
1539 all-cgen:
1540 # These two have dependencies on cgen, and while this section is alphabetically
1541 # sorted, I wish to keep these together until things settle.
1542 all-opcodes: all-cgen
1543 all-sim: all-cgen
1544 # end-sanitize-cygnus
1545 all-cvssrc:
1546 configure-target-cygmon: $(ALL_GCC)
1547 all-target-cygmon: configure-target-cygmon all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio all-target-libstub
1548 all-db:
1549 all-dejagnu: all-tcl all-expect all-tk
1550 all-diff: all-libiberty
1551 all-emacs:
1552 all-emacs19: all-bison all-byacc
1553 all-etc:
1554 configure-target-examples: $(ALL_GCC)
1555 all-target-examples: configure-target-examples
1556 all-expect: all-tcl all-tk
1557 all-fileutils: all-libiberty
1558 all-findutils:
1559 all-find:
1560 all-flex: all-libiberty all-bison all-byacc
1561 # start-sanitize-cygnus
1562 all-flexlm:
1563 # end-sanitize-cygnus
1564 all-gas: all-libiberty all-opcodes all-bfd all-intl
1565 all-gash: all-tcl
1566 all-gawk:
1567 ALL_GCC = all-gcc
1568 all-gcc: all-bison all-byacc all-binutils all-gas all-ld
1569 all-bootstrap: all-libiberty all-bison all-byacc all-binutils all-gas all-ld
1570 GDB_TK = all-tk all-tcl all-itcl all-tix all-libgui
1571 # start-sanitize-ide
1572 GDB_TK = all-tk all-tcl all-itcl all-tix all-libgui all-libide all-libidetcl
1573 # end-sanitize-ide
1574 all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim $(gdbnlmrequirements) $(GDB_TK)
1575 all-gettext:
1576 all-gnuserv:
1577 configure-target-gperf: $(ALL_GCC)
1578 all-target-gperf: configure-target-gperf all-target-libiberty all-target-libstdc++
1579 all-gprof: all-libiberty all-bfd all-opcodes all-intl
1580 all-grez: all-libiberty all-bfd all-opcodes
1581 all-gui: all-gdb all-libproc all-target-librx
1582 all-guile:
1583 all-gzip: all-libiberty
1584 all-hello: all-libiberty
1585 # start-sanitize-ide
1586 all-ilu:
1587 # end-sanitize-ide
1588 all-indent:
1589 all-inet: all-tcl all-send-pr all-perl
1590 all-intl:
1591 all-ispell: all-emacs19
1592 all-itcl: all-tcl all-tk
1593 # start-sanitize-ide
1594 all-jstools: all-tcl all-tk all-tix all-libgui all-libide all-libidetcl
1595 # end-sanitize-ide
1596 all-ld: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex all-intl
1597 configure-target-libg++: $(ALL_GCC) configure-target-librx
1598 all-target-libg++: configure-target-libg++ all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio all-target-librx all-target-libstdc++
1599 configure-target-libgloss: $(ALL_GCC)
1600 all-target-libgloss: configure-target-libgloss configure-target-newlib
1601 configure-target-libio: $(ALL_GCC)
1602 all-target-libio: configure-target-libio all-gas all-ld all-gcc all-target-libiberty all-target-newlib
1603 check-target-libio: all-target-libstdc++
1604 all-libgui: all-tcl all-tk all-itcl
1605 all-libiberty:
1606 # start-sanitize-ide
1607 all-libide: all-ilu
1608 all-libidetcl: all-tcl all-tk all-itcl all-ilu all-libgui all-libide
1609 # end-sanitize-ide
1610 # start-sanitize-java
1611 configure-target-libjava: $(ALL_GCC) configure-target-boehm-gc
1612 all-target-libjava: configure-target-libjava all-gcc all-target-newlib all-target-boehm-gc
1613 # end-sanitize-java
1614 configure-target-librx: $(ALL_GCC) configure-target-newlib
1615 all-target-librx: configure-target-librx
1616 configure-target-libstdc++: $(ALL_GCC)
1617 all-target-libstdc++: configure-target-libstdc++ all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio
1618 configure-target-libstub: $(ALL_GCC)
1619 all-target-libstub: configure-target-libstub
1620 all-libtool:
1621 all-m4: all-libiberty
1622 all-make: all-libiberty
1623 all-mmalloc:
1624 configure-target-newlib: $(ALL_GCC)
1625 all-target-newlib: configure-target-newlib all-binutils all-gas all-gcc
1626 all-opcodes: all-bfd all-libiberty
1627 all-patch: all-libiberty
1628 all-perl:
1629 all-prms: all-libiberty
1630 all-rcs:
1631 all-readline:
1632 all-recode: all-libiberty
1633 all-sed: all-libiberty
1634 all-send-pr: all-prms
1635 all-shellutils:
1636 all-sim: all-libiberty all-bfd all-opcodes all-readline
1637 # start-sanitize-cygnus
1638 all-snavigator: all-tcl all-tk all-tix all-itcl all-db all-grep all-flexlm all-libgui
1639 # end-sanitize-cygnus
1640 all-tar: all-libiberty
1641 all-tcl:
1642 all-tclX: all-tcl all-tk
1643 all-tk: all-tcl
1644 all-texinfo: all-libiberty
1645 all-textutils:
1646 all-tgas: all-libiberty all-bfd all-opcodes
1647 all-time:
1648 all-tix: all-tcl all-tk
1649 # start-sanitize-ide
1650 all-vmake: all-tcl all-tk all-itcl all-tix all-libgui all-libide all-libidetcl
1651 # end-sanitize-ide
1652 all-wdiff:
1653 all-target-winsup: all-target-newlib all-target-libiberty all-target-libio configure-target-winsup
1654 configure-target-winsup: configure-target-newlib
1655 all-uudecode: all-libiberty
1656 configure-target-libiberty: $(ALL_GCC)
1657 all-target-libiberty: configure-target-libiberty all-gcc all-ld all-target-newlib
1658 all-target: $(ALL_TARGET_MODULES)
1659 install-target: $(INSTALL_TARGET_MODULES)
1660 # start-sanitize-gdbtk
1661 install-gdb: install-tcl install-tk install-itcl install-tix install-libgui
1662 #end-sanitize-gdbtk
1663 ### other supporting targets
1664
1665 MAKEDIRS= \
1666 $(prefix) \
1667 $(exec_prefix)
1668 .PHONY: installdirs
1669 installdirs: mkinstalldirs
1670 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1671
1672 dir.info: do-install-info
1673 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
1674 $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
1675 mv -f dir.info.new dir.info ; \
1676 else true ; \
1677 fi
1678
1679 dist:
1680 @echo "Building a full distribution of this tree isn't done"
1681 @echo "via 'make dist'. Check out the etc/ subdirectory"
1682
1683 etags tags: TAGS
1684
1685 # Right now this just builds TAGS in each subdirectory. emacs19 has the
1686 # ability to use several tags files at once, so there is probably no need
1687 # to combine them into one big TAGS file (like CVS 1.3 does). We could
1688 # (if we felt like it) have this Makefile write a piece of elisp which
1689 # the user could load to tell emacs19 where all the TAGS files we just
1690 # built are.
1691 TAGS: do-TAGS
1692
1693 # with the gnu make, this is done automatically.
1694
1695 Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag)
1696 $(SHELL) ./config.status
1697
1698 #
1699 # Support for building net releases
1700
1701 # Files in devo used in any net release.
1702 # ChangeLog omitted because it may refer to files which are not in this
1703 # distribution (perhaps it would be better to include it anyway).
1704 DEVO_SUPPORT= README Makefile.in configure configure.in \
1705 config.guess config.sub config move-if-change \
1706 mpw-README mpw-build.in mpw-config.in mpw-configure mpw-install \
1707 COPYING COPYING.LIB install-sh config-ml.in symlink-tree \
1708 mkinstalldirs ltconfig ltmain.sh missing ylwrap
1709
1710 # Files in devo/etc used in any net release.
1711 # ChangeLog omitted because it may refer to files which are not in this
1712 # distribution (perhaps it would be better to include it anyway).
1713 ETC_SUPPORT= Makefile.in configure configure.in standards.texi \
1714 make-stds.texi standards.info*
1715
1716 # When you use `make setup-dirs' or `make taz' you should always redefine
1717 # this macro.
1718 SUPPORT_FILES = list-of-support-files-for-tool-in-question
1719
1720 .PHONY: taz
1721
1722 taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) \
1723 texinfo/texinfo.tex texinfo/gpl.texinfo texinfo/lgpl.texinfo
1724 # Take out texinfo from a few places.
1725 sed -e '/^all\.normal: /s/\all-texinfo //' \
1726 -e '/^ install-texinfo /d' \
1727 <Makefile.in >tmp
1728 mv -f tmp Makefile.in
1729 #
1730 $(start-sanitize-Sanitize)
1731 @if [ -f .Sanitize ] ; then echo "RUN Sanitize FIRST!" ; false ; fi ;
1732 $(end-sanitize-Sanitize)
1733 ./configure sun4
1734 [ -z "$(CONFIGURE_TARGET_MODULES)" ] \
1735 || $(MAKE) $(CONFIGURE_TARGET_MODULES) ALL_GCC="" \
1736 CC_FOR_TARGET="$(CC)" CXX_FOR_TARGET="$(CXX)"
1737 # Make links, and run "make diststuff" or "make info" when needed.
1738 rm -rf proto-toplev ; mkdir proto-toplev
1739 set -e ; dirs="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \
1740 for d in $$dirs ; do \
1741 if [ -d $$d ]; then \
1742 if [ ! -f $$d/Makefile ] ; then true ; \
1743 elif grep '^diststuff:' $$d/Makefile >/dev/null ; then \
1744 (cd $$d ; $(MAKE) diststuff ) || exit 1 ; \
1745 elif grep '^info:' $$d/Makefile >/dev/null ; then \
1746 (cd $$d ; $(MAKE) info ) || exit 1 ; \
1747 fi ; \
1748 if [ -d $$d/proto-$$d.dir ]; then \
1749 ln -s ../$$d/proto-$$d.dir proto-toplev/$$d ; \
1750 else \
1751 ln -s ../$$d proto-toplev/$$d ; \
1752 fi ; \
1753 else ln -s ../$$d proto-toplev/$$d ; fi ; \
1754 done
1755 cd etc ; $(MAKE) info
1756 $(MAKE) distclean
1757 #
1758 mkdir proto-toplev/etc
1759 (cd proto-toplev/etc; \
1760 for i in $(ETC_SUPPORT); do \
1761 ln -s ../../etc/$$i . ; \
1762 done)
1763 #
1764 # Take out texinfo from configurable dirs
1765 rm proto-toplev/configure.in
1766 sed -e '/^host_tools=/s/texinfo //' \
1767 <configure.in >proto-toplev/configure.in
1768 #
1769 mkdir proto-toplev/texinfo
1770 ln -s ../../texinfo/texinfo.tex proto-toplev/texinfo/
1771 ln -s ../../texinfo/gpl.texinfo proto-toplev/texinfo/
1772 ln -s ../../texinfo/lgpl.texinfo proto-toplev/texinfo/
1773 if test -r texinfo/util/tex3patch ; then \
1774 mkdir proto-toplev/texinfo/util && \
1775 ln -s ../../../texinfo/util/tex3patch proto-toplev/texinfo/util ; \
1776 else true; fi
1777 chmod og=u `find . -print`
1778 if grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \
1779 ver=`sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'`; \
1780 else \
1781 ver=`sed <$(TOOL)/Makefile.in -n 's/^VERSION *= *//p'`; \
1782 fi; \
1783 $(MAKE) -f Makefile.in do-tar-gz TOOL=$(TOOL) VER=$$ver
1784
1785 do-tar-gz:
1786 echo "==> Making $(TOOL)-$(VER).tar.gz"
1787 -rm -f $(TOOL)-$(VER)
1788 ln -s proto-toplev $(TOOL)-$(VER)
1789 tar cfh $(TOOL)-$(VER).tar $(TOOL)-$(VER)
1790 $(GZIPPROG) -v -9 $(TOOL)-$(VER).tar
1791
1792 TEXINFO_SUPPORT= texinfo/texinfo.tex texinfo/gpl.texinfo texinfo/lgpl.texinfo
1793 DIST_SUPPORT= $(DEVO_SUPPORT) $(TEXINFO_SUPPORT)
1794
1795 .PHONY: gas.tar.gz
1796 GAS_SUPPORT_DIRS= bfd include libiberty opcodes intl setup.com makefile.vms
1797 gas.tar.gz: $(DIST_SUPPORT) $(GAS_SUPPORT_DIRS) gas
1798 $(MAKE) -f Makefile.in taz TOOL=gas \
1799 SUPPORT_FILES="$(GAS_SUPPORT_DIRS)"
1800
1801 # The FSF "binutils" release includes gprof and ld.
1802 .PHONY: binutils.tar.gz
1803 BINUTILS_SUPPORT_DIRS= bfd gas include libiberty opcodes ld gprof intl setup.com makefile.vms
1804 binutils.tar.gz: $(DIST_SUPPORT) $(BINUTILS_SUPPORT_DIRS) binutils
1805 $(MAKE) -f Makefile.in taz TOOL=binutils \
1806 SUPPORT_FILES="$(BINUTILS_SUPPORT_DIRS) makeall.bat configure.bat"
1807
1808 .PHONY: gas+binutils.tar.gz
1809 GASB_SUPPORT_DIRS= $(GAS_SUPPORT_DIRS) binutils ld gprof
1810 gas+binutils.tar.gz: $(DIST_SUPPORT) $(GASB_SUPPORT_DIRS) gas
1811 $(MAKE) -f Makefile.in taz TOOL=gas \
1812 SUPPORT_FILES="$(GASB_SUPPORT_DIRS) makeall.bat configure.bat"
1813
1814 .PHONY: libg++.tar.gz
1815 LIBGXX_SUPPORT_DIRS=include libstdc++ libio librx libiberty
1816 libg++.tar.gz: $(DIST_SUPPORT) libg++
1817 $(MAKE) -f Makefile.in taz TOOL=libg++ \
1818 SUPPORT_FILES="$(LIBGXX_SUPPORT_DIRS)"
1819
1820 GNATS_SUPPORT_DIRS=include libiberty send-pr
1821 gnats.tar.gz: $(DIST_SUPPORT) $(GNATS_SUPPORT_DIRS) gnats
1822 $(MAKE) -f Makefile.in taz TOOL=gnats \
1823 SUPPORT_FILES="$(GNATS_SUPPORT_DIRS)"
1824
1825 .PHONY: gdb.tar.gz
1826 GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline sim utils intl
1827 GDBTK_SUPPORT_DIRS= `if [ -d tcl -a -d tk ] ; then echo tcl tk ; fi`
1828 gdb.tar.gz: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
1829 $(MAKE) -f Makefile.in taz TOOL=gdb \
1830 SUPPORT_FILES="$(GDB_SUPPORT_DIRS) $(GDBTK_SUPPORT_DIRS)"
1831
1832 .PHONY: newlib.tar.gz
1833 NEWLIB_SUPPORT_DIRS=libgloss
1834 # taz configures for the sun4 target which won't configure newlib.
1835 # We need newlib configured so that the .info files are made.
1836 # Unfortunately, it is not enough to just configure newlib separately:
1837 # taz will build the .info files but since SUBDIRS won't contain newlib,
1838 # distclean won't be run (leaving Makefile, config.status, and the tmp files
1839 # used in building the .info files, eg: *.def, *.ref).
1840 # The problem isn't solvable however without a lot of extra work because
1841 # target libraries are built in subdir $(target_alias) which gets nuked during
1842 # the make distclean. For now punt on the issue of shipping newlib info files
1843 # with newlib net releases and wait for a day when some native target (sun4?)
1844 # supports newlib (if only minimally).
1845 newlib.tar.gz: $(DIST_SUPPORT) $(NEWLIB_SUPPORT_DIRS) newlib
1846 $(MAKE) -f Makefile.in taz TOOL=newlib \
1847 SUPPORT_FILES="$(NEWLIB_SUPPORT_DIRS)" \
1848 DEVO_SUPPORT="$(DEVO_SUPPORT) COPYING.NEWLIB" newlib
1849
1850 .NOEXPORT:
1851 MAKEOVERRIDES=
1852
1853 # start-sanitize-chill
1854 ## This is ugly, but I don't want GNU make to put these variables in
1855 ## the environment. Older makes will see this as a set of targets
1856 ## with no dependencies and no actions.
1857 unexport CHILLFLAGS CHILL_LIB CHILL_FOR_TARGET :
1858 # end-sanitize-chill
1859
1860 # end of Makefile.in
This page took 0.120247 seconds and 5 git commands to generate.