fix libtool 1.2b bug
[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 all-cvssrc \
492 all-db \
493 all-dejagnu \
494 all-diff \
495 all-dosutils \
496 all-etc \
497 all-fileutils \
498 all-findutils \
499 all-find \
500 all-flex \
501 $(start-sanitize-cygnus) \
502 all-flexlm \
503 $(end-sanitize-cygnus) \
504 all-gas \
505 all-gawk \
506 all-gettext \
507 all-gnuserv \
508 all-gprof \
509 all-grep \
510 all-grez \
511 all-gzip \
512 all-hello \
513 $(start-sanitize-ide) \
514 all-ilu \
515 $(end-sanitize-ide) \
516 all-indent \
517 all-inet \
518 all-intl \
519 all-ispell \
520 all-itcl \
521 $(start-sanitize-ide) \
522 all-jstools \
523 $(end-sanitize-ide) \
524 all-ld \
525 all-libgui \
526 all-libiberty \
527 $(start-sanitize-ide) \
528 all-libide \
529 all-libidetcl \
530 $(end-sanitize-ide) \
531 all-libtool \
532 all-m4 \
533 all-make \
534 all-mmalloc \
535 all-opcodes \
536 all-patch \
537 all-perl \
538 all-prms \
539 all-rcs \
540 all-readline \
541 all-release \
542 all-recode \
543 all-sed \
544 all-send-pr \
545 all-shellutils \
546 all-sim \
547 $(start-sanitize-cygnus) \
548 all-snavigator \
549 $(end-sanitize-cygnus) \
550 all-tar \
551 all-tcl \
552 all-texinfo \
553 all-textutils \
554 all-tgas \
555 all-time \
556 all-uudecode \
557 $(start-sanitize-ide) \
558 all-vmake \
559 $(end-sanitize-ide) \
560 all-wdiff
561
562 # This is a list of the check targets for all of the modules which are
563 # compiled using $(FLAGS_TO_PASS).
564 #
565 # The list is in two parts. The first lists those tools which
566 # are tested as part of the host's native tool-chain, and not
567 # tested in a cross configuration.
568 NATIVE_CHECK_MODULES = \
569 check-bison \
570 check-byacc \
571 check-flex
572
573 CROSS_CHECK_MODULES = \
574 check-apache \
575 check-ash \
576 check-autoconf \
577 check-automake \
578 check-bash \
579 check-bfd \
580 check-binutils \
581 check-cvssrc \
582 check-db \
583 check-dejagnu \
584 check-diff \
585 check-etc \
586 check-fileutils \
587 check-findutils \
588 check-find \
589 $(start-sanitize-cygnus) \
590 check-flexlm \
591 $(end-sanitize-cygnus) \
592 check-gas \
593 check-gawk \
594 check-gettext \
595 check-gnuserv \
596 check-gprof \
597 check-grep \
598 check-gzip \
599 check-hello \
600 $(start-sanitize-ide) \
601 check-ilu \
602 $(end-sanitize-ide) \
603 check-indent \
604 check-inet \
605 check-intl \
606 check-ispell \
607 check-itcl \
608 $(start-sanitize-ide) \
609 check-jstools \
610 $(end-sanitize-ide) \
611 check-ld \
612 check-libgui \
613 check-libiberty \
614 $(start-sanitize-ide) \
615 check-libide \
616 check-libidetcl \
617 $(end-sanitize-ide) \
618 check-libtool \
619 check-m4 \
620 check-make \
621 check-mmcheckoc \
622 check-opcodes \
623 check-patch \
624 check-perl \
625 check-prms \
626 check-rcs \
627 check-readline \
628 check-recode \
629 check-sed \
630 check-send-pr \
631 check-shellutils \
632 $(start-sanitize-cygnus) \
633 check-snavigator \
634 $(end-sanitize-cygnus) \
635 check-sim \
636 check-tar \
637 check-tcl \
638 check-texinfo \
639 check-textutils \
640 check-tgas \
641 check-time \
642 check-uudecode \
643 $(start-sanitize-ide) \
644 check-vmake \
645 $(end-sanitize-ide) \
646 check-wdiff
647
648 CHECK_MODULES=$(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
649
650 # This is a list of the install targets for all of the modules which are
651 # compiled using $(FLAGS_TO_PASS).
652 # We put install-opcodes before install-binutils because the installed
653 # binutils might be on PATH, and they might need the shared opcodes
654 # library.
655 # We put install-tcl before install-itcl because itcl wants to run a
656 # program on installation which uses the Tcl libraries.
657 INSTALL_MODULES = \
658 install-apache \
659 install-ash \
660 install-autoconf \
661 install-automake \
662 install-bash \
663 install-bfd \
664 install-opcodes \
665 install-binutils \
666 install-bison \
667 install-byacc \
668 install-cvssrc \
669 install-db \
670 install-dejagnu \
671 install-diff \
672 install-dosutils \
673 install-etc \
674 install-fileutils \
675 install-findutils \
676 install-find \
677 install-flex \
678 $(start-sanitize-cygnus) \
679 install-flexlm \
680 $(end-sanitize-cygnus) \
681 install-gas \
682 install-gawk \
683 install-gettext \
684 install-gnuserv \
685 install-gprof \
686 install-grep \
687 install-grez \
688 install-gzip \
689 install-hello \
690 $(start-sanitize-ide) \
691 install-ilu \
692 $(end-sanitize-ide) \
693 install-indent \
694 install-inet \
695 install-intl \
696 install-ispell \
697 install-tcl \
698 install-itcl \
699 $(start-sanitize-ide) \
700 install-jstools \
701 $(end-sanitize-ide) \
702 install-ld \
703 install-libgui \
704 install-libiberty \
705 $(start-sanitize-ide) \
706 install-libide \
707 install-libidetcl \
708 $(end-sanitize-ide) \
709 install-libtool \
710 install-m4 \
711 install-make \
712 install-mmalloc \
713 install-patch \
714 install-perl \
715 install-prms \
716 install-rcs \
717 install-readline \
718 install-recode \
719 install-sed \
720 install-send-pr \
721 install-shellutils \
722 install-sim \
723 $(start-sanitize-cygnus) \
724 install-snavigator \
725 $(end-sanitize-cygnus) \
726 install-tar \
727 install-texinfo \
728 install-textutils \
729 install-tgas \
730 install-time \
731 install-uudecode \
732 $(start-sanitize-ide) \
733 install-vmake \
734 $(end-sanitize-ide) \
735 install-wdiff
736
737 # This is a list of the targets for all of the modules which are compiled
738 # using $(X11_FLAGS_TO_PASS).
739 ALL_X11_MODULES = \
740 all-emacs \
741 all-emacs19 \
742 all-gdb \
743 all-expect \
744 all-gash \
745 all-guile \
746 all-tclX \
747 all-tk \
748 all-tix
749
750 # This is a list of the check targets for all of the modules which are
751 # compiled using $(X11_FLAGS_TO_PASS).
752 CHECK_X11_MODULES = \
753 check-emacs \
754 check-gdb \
755 check-guile \
756 check-expect \
757 check-gash \
758 check-tclX \
759 check-tk \
760 check-tix
761
762 # This is a list of the install targets for all the modules which are
763 # compiled using $(X11_FLAGS_TO_PASS).
764 INSTALL_X11_MODULES = \
765 install-emacs \
766 install-emacs19 \
767 install-gdb \
768 install-guile \
769 install-expect \
770 install-gash \
771 install-tclX \
772 install-tk \
773 install-tix
774
775 # This is a list of the targets for all of the modules which are compiled
776 # using $(TARGET_FLAGS_TO_PASS).
777 ALL_TARGET_MODULES = \
778 all-target-libio \
779 all-target-libstdc++ \
780 all-target-librx \
781 all-target-libg++ \
782 all-target-newlib \
783 all-target-winsup \
784 all-target-libgloss \
785 all-target-libiberty \
786 all-target-gperf \
787 all-target-examples \
788 all-target-libstub \
789 $(start-sanitize-java) \
790 all-target-libjava \
791 all-target-boehm-gc \
792 $(end-sanitize-java) \
793 all-target-cygmon
794
795 # This is a list of the configure targets for all of the modules which
796 # are compiled using the target tools.
797 CONFIGURE_TARGET_MODULES = \
798 configure-target-libio \
799 configure-target-libstdc++ \
800 configure-target-librx \
801 configure-target-libg++ \
802 configure-target-newlib \
803 configure-target-winsup \
804 configure-target-libgloss \
805 configure-target-libiberty \
806 configure-target-gperf \
807 configure-target-examples \
808 configure-target-libstub \
809 $(start-sanitize-java) \
810 configure-target-libjava \
811 configure-target-boehm-gc \
812 $(end-sanitize-java) \
813 configure-target-cygmon
814
815 # This is a list of the check targets for all of the modules which are
816 # compiled using $(TARGET_FLAGS_TO_PASS).
817 CHECK_TARGET_MODULES = \
818 check-target-libio \
819 check-target-libstdc++ \
820 check-target-libg++ \
821 check-target-newlib \
822 check-target-winsup \
823 check-target-libiberty \
824 $(start-sanitize-java) \
825 check-target-libjava \
826 check-target-boehm-gc \
827 $(end-sanitize-java) \
828 check-target-gperf
829
830 # This is a list of the install targets for all of the modules which are
831 # compiled using $(TARGET_FLAGS_TO_PASS).
832 INSTALL_TARGET_MODULES = \
833 install-target-libio \
834 install-target-libstdc++ \
835 install-target-libg++ \
836 install-target-newlib \
837 install-target-winsup \
838 install-target-libgloss \
839 install-target-libiberty \
840 $(start-sanitize-java) \
841 install-target-libjava \
842 install-target-boehm-gc \
843 $(end-sanitize-java) \
844 install-target-gperf
845
846 # This is a list of the targets for which we can do a clean-{target}.
847 CLEAN_MODULES = \
848 clean-apache \
849 clean-ash \
850 clean-autoconf \
851 clean-automake \
852 clean-bash \
853 clean-bfd \
854 clean-binutils \
855 clean-bison \
856 clean-byacc \
857 clean-cvssrc \
858 clean-db \
859 clean-dejagnu \
860 clean-diff \
861 clean-dosutils \
862 clean-etc \
863 clean-fileutils \
864 clean-findutils \
865 clean-find \
866 clean-flex \
867 $(start-sanitize-cygnus) \
868 clean-flexlm \
869 $(end-sanitize-cygnus) \
870 clean-gas \
871 clean-gawk \
872 clean-gettext \
873 clean-gnuserv \
874 clean-gprof \
875 clean-grep \
876 clean-grez \
877 clean-gzip \
878 clean-hello \
879 $(start-sanitize-ide) \
880 clean-ilu \
881 $(end-sanitize-ide) \
882 clean-indent \
883 clean-inet \
884 clean-intl \
885 clean-ispell \
886 clean-itcl \
887 $(start-sanitize-ide) \
888 clean-jstools \
889 $(end-sanitize-ide) \
890 clean-ld \
891 clean-libgui \
892 clean-libiberty \
893 $(start-sanitize-ide) \
894 clean-libide \
895 clean-libidetcl \
896 $(end-sanitize-ide) \
897 clean-libtool \
898 clean-m4 \
899 clean-make \
900 clean-mmalloc \
901 clean-opcodes \
902 clean-patch \
903 clean-perl \
904 clean-prms \
905 clean-rcs \
906 clean-readline \
907 clean-release \
908 clean-recode \
909 clean-sed \
910 clean-send-pr \
911 clean-shellutils \
912 clean-sim \
913 $(start-sanitize-cygnus) \
914 clean-snavigator \
915 $(end-sanitize-cygnus) \
916 clean-tar \
917 clean-tcl \
918 clean-texinfo \
919 clean-textutils \
920 clean-tgas \
921 clean-time \
922 clean-uudecode \
923 $(start-sanitize-ide) \
924 clean-vmake \
925 $(end-sanitize-ide) \
926 clean-wdiff
927
928 # All of the target modules that can be cleaned
929 CLEAN_TARGET_MODULES = \
930 clean-target-libio \
931 clean-target-libstdc++ \
932 clean-target-librx \
933 clean-target-libg++ \
934 clean-target-newlib \
935 clean-target-winsup \
936 clean-target-libgloss \
937 clean-target-libiberty \
938 clean-target-gperf \
939 clean-target-examples \
940 clean-target-libstub \
941 $(start-sanitize-java) \
942 clean-target-libjava \
943 clean-target-boehm-gc \
944 $(end-sanitize-java) \
945 clean-target-cygmon
946
947 # All of the x11 modules that can be cleaned
948 CLEAN_X11_MODULES = \
949 clean-emacs \
950 clean-emacs19 \
951 clean-gdb \
952 clean-expect \
953 clean-gash \
954 clean-guile \
955 clean-tclX \
956 clean-tk \
957 clean-tix
958
959 # The first rule in the file had better be this one. Don't put any above it.
960 all: all.normal
961 .PHONY: all
962
963 # The target built for a native build.
964 .PHONY: all.normal
965 all.normal: \
966 $(ALL_MODULES) \
967 $(ALL_X11_MODULES) \
968 $(ALL_TARGET_MODULES) \
969 all-gcc
970
971 # Do a target for all the subdirectories. A ``make do-X'' will do a
972 # ``make X'' in all subdirectories (because, in general, there is a
973 # dependency (below) of X upon do-X, a ``make X'' will also do this,
974 # but it may do additional work as well).
975 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
976 # because it is so large that it can easily overflow the command line
977 # length limit on some systems.
978 DO_X = \
979 do-clean \
980 do-distclean \
981 do-dvi \
982 do-info \
983 do-install-info \
984 do-installcheck \
985 do-mostlyclean \
986 do-maintainer-clean \
987 do-TAGS
988 .PHONY: $(DO_X)
989 $(DO_X):
990 @target=`echo $@ | sed -e 's/^do-//'`; \
991 r=`pwd`; export r; \
992 s=`cd $(srcdir); pwd`; export s; \
993 $(SET_LIB_PATH) \
994 for i in $(SUBDIRS) -dummy-; do \
995 if [ -f ./$$i/Makefile ]; then \
996 case $$i in \
997 gcc) \
998 for flag in $(EXTRA_GCC_FLAGS); do \
999 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
1000 done; \
1001 ;; \
1002 *) \
1003 for flag in $(EXTRA_HOST_FLAGS); do \
1004 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
1005 done; \
1006 ;; \
1007 esac ; \
1008 export AR AS CC CXX LD NM RANLIB DLLTOOL WINDRES; \
1009 if (cd ./$$i; \
1010 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1011 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1012 "RANLIB=$${RANLIB}" \
1013 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1014 $${target}); \
1015 then true; else exit 1; fi; \
1016 else true; fi; \
1017 done
1018 @target=`echo $@ | sed -e 's/^do-//'`; \
1019 r=`pwd`; export r; \
1020 s=`cd $(srcdir); pwd`; export s; \
1021 $(SET_LIB_PATH) \
1022 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1023 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1024 for flag in $(EXTRA_TARGET_FLAGS); do \
1025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
1026 done; \
1027 export AR AS CC CXX LD NM RANLIB DLLTOOL WINDRES; \
1028 if (cd $(TARGET_SUBDIR)/$$i; \
1029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1031 "RANLIB=$${RANLIB}" \
1032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1033 $${target}); \
1034 then true; else exit 1; fi; \
1035 else true; fi; \
1036 done
1037
1038 # Here are the targets which correspond to the do-X targets.
1039
1040 .PHONY: info installcheck dvi install-info
1041 .PHONY: clean distclean mostlyclean maintainer-clean realclean
1042 .PHONY: local-clean local-distclean local-maintainer-clean
1043 info: do-info
1044 installcheck: do-installcheck
1045 dvi: do-dvi
1046
1047 # Make sure makeinfo is built before we do a `make info'.
1048 do-info: all-texinfo
1049
1050 install-info: do-install-info dir.info
1051 s=`cd $(srcdir); pwd`; export s; \
1052 if [ -f dir.info ] ; then \
1053 $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \
1054 else true ; fi
1055
1056 local-clean:
1057 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E
1058
1059 local-distclean:
1060 -rm -f Makefile config.status config.cache
1061 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1062 rm -rf $(TARGET_SUBDIR); \
1063 else true; fi
1064
1065 local-maintainer-clean:
1066 @echo "This command is intended for maintainers to use;"
1067 @echo "it deletes files that may require special tools to rebuild."
1068
1069 clean: do-clean local-clean
1070 mostlyclean: do-mostlyclean local-clean
1071 distclean: do-distclean local-clean local-distclean
1072 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1073 maintainer-clean: local-distclean
1074 realclean: maintainer-clean
1075
1076 # This rule is used to clean specific modules.
1077 .PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc
1078 $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc:
1079 @dir=`echo $@ | sed -e 's/clean-//'`; \
1080 if [ -f ./$${dir}/Makefile ] ; then \
1081 r=`pwd`; export r; \
1082 s=`cd $(srcdir); pwd`; export s; \
1083 $(SET_LIB_PATH) \
1084 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) clean); \
1085 else \
1086 true; \
1087 fi
1088
1089 .PHONY: $(CLEAN_TARGET_MODULES)
1090 $(CLEAN_TARGET_MODULES):
1091 @dir=`echo $@ | sed -e 's/clean-target-//'`; \
1092 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1093 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1094 r=`pwd`; export r; \
1095 s=`cd $(srcdir); pwd`; export s; \
1096 $(SET_LIB_PATH) \
1097 (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \
1098 else \
1099 true; \
1100 fi
1101
1102 clean-target: $(CLEAN_TARGET_MODULES)
1103
1104 # Check target.
1105
1106 .PHONY: check
1107 check: $(CHECK_MODULES) \
1108 $(CHECK_TARGET_MODULES) \
1109 $(CHECK_X11_MODULES) \
1110 check-gcc
1111
1112 # Installation targets.
1113
1114 .PHONY: install uninstall source-vault binary-vault vault-install
1115 install: $(INSTALL_TARGET)
1116
1117 uninstall:
1118 @echo "the uninstall target is not supported in this tree"
1119
1120 source-vault:
1121 $(MAKE) -f ./release/Build-A-Release \
1122 host=$(host_alias) source-vault
1123
1124 binary-vault:
1125 $(MAKE) -f ./release/Build-A-Release \
1126 host=$(host_alias) target=$(target_alias)
1127
1128 vault-install:
1129 @if [ -f ./release/vault-install ] ; then \
1130 ./release/vault-install $(host_alias) $(target_alias) ; \
1131 else \
1132 true ; \
1133 fi
1134
1135 .PHONY: install.all
1136 install.all: install-no-fixedincludes
1137 @if [ -f ./gcc/Makefile ] ; then \
1138 r=`pwd` ; export r ; \
1139 $(SET_LIB_PATH) \
1140 (cd ./gcc; \
1141 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
1142 else \
1143 true ; \
1144 fi
1145
1146 # inet-install is used because the I*Net wants DejaGNU installed but
1147 # not built. Similarly, gzip is built but not installed.
1148 inet-install:
1149 $(MAKE) INSTALL_MODULES="`echo $(INSTALL_MODULES) | sed -e 's/install-dejagnu//' -e 's/install-gzip//'`" install
1150
1151 # install-no-fixedincludes is used because Cygnus can not distribute
1152 # the fixed header files.
1153 .PHONY: install-no-fixedincludes
1154 install-no-fixedincludes: \
1155 installdirs \
1156 $(INSTALL_MODULES) \
1157 $(INSTALL_TARGET_MODULES) \
1158 $(INSTALL_X11_MODULES) \
1159 gcc-no-fixedincludes
1160
1161 # Install the gcc headers files, but not the fixed include files,
1162 # which Cygnus is not allowed to distribute. This rule is very
1163 # dependent on the workings of the gcc Makefile.in.
1164 .PHONY: gcc-no-fixedincludes
1165 gcc-no-fixedincludes:
1166 @if [ -f ./gcc/Makefile ]; then \
1167 rm -rf gcc/tmp-include; \
1168 mv gcc/include gcc/tmp-include 2>/dev/null; \
1169 mkdir gcc/include; \
1170 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
1171 touch gcc/stmp-fixinc gcc/include/fixed; \
1172 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
1173 r=`pwd`; export r; \
1174 s=`cd $(srcdir); pwd` ; export s; \
1175 $(SET_LIB_PATH) \
1176 (cd ./gcc; \
1177 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1178 rm -rf gcc/include; \
1179 mv gcc/tmp-include gcc/include 2>/dev/null; \
1180 else true; fi
1181
1182 # start-sanitize-ide
1183 # Install Foundry. Avoid installing a bunch of stuff we don't need.
1184 install-foundry:
1185 mods="$(INSTALL_MODULES)"; \
1186 x11_mods="$(INSTALL_X11_MODULES)"; \
1187 for d in install-tcl install-tk install-itcl install-tix install-ilu; do \
1188 mods="`echo $${mods} | sed -e "s/$$d//"`"; \
1189 x11_mods="`echo $${x11_mods} | sed -e "s/$$d//"`"; \
1190 done; \
1191 $(MAKE) INSTALL_MODULES="$${mods}" INSTALL_X11_MODULES="$${x11_mods}" install
1192 for d in tcl tk itcl tix ilu; do \
1193 if [ -f $$d/Makefile ]; then \
1194 r=`pwd`; export r; \
1195 s=`cd $(srcdir); pwd`; export s; \
1196 $(SET_LIB_PATH) \
1197 (cd $$d; $(MAKE) $(FLAGS_TO_PASS) install-minimal); \
1198 else \
1199 true; \
1200 fi; \
1201 done
1202 # end-sanitize-ide
1203
1204 # This rule is used to build the modules which use FLAGS_TO_PASS. To
1205 # build a target all-X means to cd to X and make all.
1206 #
1207 # all-gui, and all-libproc are handled specially because
1208 # they are still experimental, and if they fail to build, that
1209 # shouldn't stop "make all".
1210 .PHONY: $(ALL_MODULES) all-gui all-libproc
1211 $(ALL_MODULES) all-gui all-libproc:
1212 @dir=`echo $@ | sed -e 's/all-//'`; \
1213 if [ -f ./$${dir}/Makefile ] ; then \
1214 r=`pwd`; export r; \
1215 s=`cd $(srcdir); pwd`; export s; \
1216 $(SET_LIB_PATH) \
1217 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \
1218 else \
1219 true; \
1220 fi
1221
1222 # These rules are used to check the modules which use FLAGS_TO_PASS.
1223 # To build a target check-X means to cd to X and make check. Some
1224 # modules are only tested in a native toolchain.
1225
1226 .PHONY: $(CHECK_MODULES) $(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
1227 $(NATIVE_CHECK_MODULES):
1228 @if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
1229 dir=`echo $@ | sed -e 's/check-//'`; \
1230 if [ -f ./$${dir}/Makefile ] ; then \
1231 r=`pwd`; export r; \
1232 s=`cd $(srcdir); pwd`; export s; \
1233 $(SET_LIB_PATH) \
1234 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1235 else \
1236 true; \
1237 fi; \
1238 fi
1239
1240 $(CROSS_CHECK_MODULES):
1241 @dir=`echo $@ | sed -e 's/check-//'`; \
1242 if [ -f ./$${dir}/Makefile ] ; then \
1243 r=`pwd`; export r; \
1244 s=`cd $(srcdir); pwd`; export s; \
1245 $(SET_LIB_PATH) \
1246 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1247 else \
1248 true; \
1249 fi
1250
1251 # This rule is used to install the modules which use FLAGS_TO_PASS.
1252 # To build a target install-X means to cd to X and make install.
1253 .PHONY: $(INSTALL_MODULES)
1254 $(INSTALL_MODULES): installdirs
1255 @dir=`echo $@ | sed -e 's/install-//'`; \
1256 if [ -f ./$${dir}/Makefile ] ; then \
1257 r=`pwd`; export r; \
1258 s=`cd $(srcdir); pwd`; export s; \
1259 $(SET_LIB_PATH) \
1260 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1261 else \
1262 true; \
1263 fi
1264
1265 # This rule is used to configure the modules which are built with the
1266 # target tools.
1267 .PHONY: $(CONFIGURE_TARGET_MODULES)
1268 $(CONFIGURE_TARGET_MODULES):
1269 @dir=`echo $@ | sed -e 's/configure-target-//'`; \
1270 if [ -d $(TARGET_SUBDIR)/$${dir} ]; then \
1271 r=`pwd`; export r; \
1272 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/$${dir}/tmpmulti.out 2> /dev/null; \
1273 if [ -s $(TARGET_SUBDIR)/$${dir}/tmpmulti.out ]; then \
1274 if [ -f $(TARGET_SUBDIR)/$${dir}/multilib.out ]; then \
1275 if cmp $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out > /dev/null; then \
1276 rm -f $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1277 else \
1278 echo "Multilibs changed for $${dir}, reconfiguring"; \
1279 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/Makefile; \
1280 mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
1281 fi; \
1282 else \
1283 mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
1284 fi; \
1285 fi; \
1286 fi; exit 0 # break command into two pieces
1287 @dir=`echo $@ | sed -e 's/configure-target-//'`; \
1288 if [ ! -d $(TARGET_SUBDIR) ]; then \
1289 true; \
1290 elif [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1291 true; \
1292 elif echo " $(TARGET_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \
1293 if [ -d $(srcdir)/$${dir} ]; then \
1294 [ -d $(TARGET_SUBDIR)/$${dir} ] || mkdir $(TARGET_SUBDIR)/$${dir};\
1295 r=`pwd`; export r; \
1296 s=`cd $(srcdir); pwd`; export s; \
1297 $(SET_LIB_PATH) \
1298 AR="$(AR_FOR_TARGET)"; export AR; \
1299 AS="$(AS_FOR_TARGET)"; export AS; \
1300 CC="$(CC_FOR_TARGET)"; export CC; \
1301 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
1302 CXX="$(CXX_FOR_TARGET)"; export CXX; \
1303 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1304 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
1305 LD="$(LD_FOR_TARGET)"; export LD; \
1306 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
1307 NM="$(NM_FOR_TARGET)"; export NM; \
1308 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
1309 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
1310 echo Configuring in $(TARGET_SUBDIR)/$${dir}; \
1311 cd $(TARGET_SUBDIR)/$${dir}; \
1312 case $(srcdir) in \
1313 /*) \
1314 topdir=$(srcdir) ;; \
1315 *) \
1316 case "$(TARGET_SUBDIR)" in \
1317 .) topdir="../$(srcdir)" ;; \
1318 *) topdir="../../$(srcdir)" ;; \
1319 esac ;; \
1320 esac; \
1321 if [ "$(srcdir)" = "." ] ; then \
1322 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
1323 if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \
1324 if [ -f Makefile ]; then \
1325 if $(MAKE) distclean; then \
1326 true; \
1327 else \
1328 exit 1; \
1329 fi; \
1330 else \
1331 true; \
1332 fi; \
1333 else \
1334 exit 1; \
1335 fi; \
1336 else \
1337 true; \
1338 fi; \
1339 srcdiroption="--srcdir=."; \
1340 libsrcdir="."; \
1341 else \
1342 srcdiroption="--srcdir=$${topdir}/$${dir}"; \
1343 libsrcdir="$$s/$${dir}"; \
1344 fi; \
1345 if [ -f $${libsrcdir}/configure ] ; then \
1346 $(SHELL) $${libsrcdir}/configure \
1347 $(CONFIG_ARGUMENTS) $${srcdiroption} \
1348 --with-target-subdir="$(TARGET_SUBDIR)"; \
1349 else \
1350 $(SHELL) $$s/configure \
1351 $(CONFIG_ARGUMENTS) $${srcdiroption} \
1352 --with-target-subdir="$(TARGET_SUBDIR)"; \
1353 fi; \
1354 else \
1355 true; \
1356 fi; \
1357 else \
1358 true; \
1359 fi
1360
1361 # This rule is used to build the modules which use TARGET_FLAGS_TO_PASS.
1362 # To build a target all-X means to cd to X and make all.
1363 .PHONY: $(ALL_TARGET_MODULES)
1364 $(ALL_TARGET_MODULES):
1365 @dir=`echo $@ | sed -e 's/all-target-//'`; \
1366 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1367 r=`pwd`; export r; \
1368 s=`cd $(srcdir); pwd`; export s; \
1369 $(SET_LIB_PATH) \
1370 (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
1371 else \
1372 true; \
1373 fi
1374
1375 # This rule is used to check the modules which use TARGET_FLAGS_TO_PASS.
1376 # To build a target install-X means to cd to X and make install.
1377 .PHONY: $(CHECK_TARGET_MODULES)
1378 $(CHECK_TARGET_MODULES):
1379 @dir=`echo $@ | sed -e 's/check-target-//'`; \
1380 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1381 r=`pwd`; export r; \
1382 s=`cd $(srcdir); pwd`; export s; \
1383 $(SET_LIB_PATH) \
1384 (cd $(TARGET_SUBDIR)/$${dir};$(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
1385 else \
1386 true; \
1387 fi
1388
1389 # This rule is used to install the modules which use
1390 # TARGET_FLAGS_TO_PASS. To build a target install-X means to cd to X
1391 # and make install.
1392 .PHONY: $(INSTALL_TARGET_MODULES)
1393 $(INSTALL_TARGET_MODULES): installdirs
1394 @dir=`echo $@ | sed -e 's/install-target-//'`; \
1395 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1396 r=`pwd`; export r; \
1397 s=`cd $(srcdir); pwd`; export s; \
1398 $(SET_LIB_PATH) \
1399 (cd $(TARGET_SUBDIR)/$${dir}; \
1400 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
1401 else \
1402 true; \
1403 fi
1404
1405 # This rule is used to build the modules which use X11_FLAGS_TO_PASS.
1406 # To build a target all-X means to cd to X and make all.
1407 .PHONY: $(ALL_X11_MODULES)
1408 $(ALL_X11_MODULES):
1409 @dir=`echo $@ | sed -e 's/all-//'`; \
1410 if [ -f ./$${dir}/Makefile ] ; then \
1411 r=`pwd`; export r; \
1412 s=`cd $(srcdir); pwd`; export s; \
1413 $(SET_LIB_PATH) \
1414 (cd $${dir}; \
1415 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
1416 else \
1417 true; \
1418 fi
1419
1420 # This rule is used to check the modules which use X11_FLAGS_TO_PASS.
1421 # To build a target check-X means to cd to X and make all.
1422 .PHONY: $(CHECK_X11_MODULES)
1423 $(CHECK_X11_MODULES):
1424 @dir=`echo $@ | sed -e 's/check-//'`; \
1425 if [ -f ./$${dir}/Makefile ] ; then \
1426 r=`pwd`; export r; \
1427 s=`cd $(srcdir); pwd`; export s; \
1428 $(SET_LIB_PATH) \
1429 (cd $${dir}; \
1430 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
1431 else \
1432 true; \
1433 fi
1434
1435 # This rule is used to install the modules which use X11_FLAGS_TO_PASS.
1436 # To build a target install-X means to cd to X and make install.
1437 .PHONY: $(INSTALL_X11_MODULES)
1438 $(INSTALL_X11_MODULES): installdirs
1439 @dir=`echo $@ | sed -e 's/install-//'`; \
1440 if [ -f ./$${dir}/Makefile ] ; then \
1441 r=`pwd`; export r; \
1442 s=`cd $(srcdir); pwd`; export s; \
1443 $(SET_LIB_PATH) \
1444 (cd $${dir}; \
1445 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
1446 else \
1447 true; \
1448 fi
1449
1450 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
1451 .PHONY: all-gcc
1452 all-gcc:
1453 @if [ -f ./gcc/Makefile ] ; then \
1454 r=`pwd`; export r; \
1455 s=`cd $(srcdir); pwd`; export s; \
1456 $(SET_LIB_PATH) \
1457 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
1458 else \
1459 true; \
1460 fi
1461
1462 .PHONY: all-bootstrap
1463 all-bootstrap:
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) bootstrap); \
1469 else \
1470 true; \
1471 fi
1472
1473 .PHONY: check-gcc
1474 check-gcc:
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) check); \
1480 else \
1481 true; \
1482 fi
1483
1484 .PHONY: install-gcc
1485 install-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) install); \
1491 else \
1492 true; \
1493 fi
1494
1495
1496 # EXPERIMENTAL STUFF
1497 # This rule is used to install the modules which use FLAGS_TO_PASS.
1498 # To build a target install-X means to cd to X and make install.
1499 .PHONY: install-dosrel
1500 install-dosrel: installdirs info
1501 @dir=`echo $@ | sed -e 's/install-//'`; \
1502 if [ -f ./$${dir}/Makefile ] ; then \
1503 r=`pwd`; export r; \
1504 s=`cd $(srcdir); pwd`; export s; \
1505 $(SET_LIB_PATH) \
1506 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1507 else \
1508 true; \
1509 fi
1510
1511 install-dosrel-fake:
1512
1513
1514 # This is a list of inter-dependencies among modules.
1515 all-apache:
1516 all-ash:
1517 all-autoconf: all-m4 all-texinfo
1518 all-automake:
1519 all-bash:
1520 all-bfd: all-libiberty all-intl
1521 all-binutils: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc all-intl
1522 all-bison: all-texinfo
1523 # start-sanitize-java
1524 all-target-boehm-gc: configure-target-boehm-gc
1525 # end-sanitize-java
1526 all-byacc:
1527 all-cvssrc:
1528 configure-target-cygmon: $(ALL_GCC)
1529 all-target-cygmon: configure-target-cygmon all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio all-target-libstub
1530 all-db:
1531 all-dejagnu: all-tcl all-expect all-tk
1532 all-diff: all-libiberty
1533 all-emacs:
1534 all-emacs19: all-bison all-byacc
1535 all-etc:
1536 configure-target-examples: $(ALL_GCC)
1537 all-target-examples: configure-target-examples
1538 all-expect: all-tcl all-tk
1539 all-fileutils: all-libiberty
1540 all-findutils:
1541 all-find:
1542 all-flex: all-libiberty all-bison all-byacc
1543 # start-sanitize-cygnus
1544 all-flexlm:
1545 # end-sanitize-cygnus
1546 all-gas: all-libiberty all-opcodes all-bfd all-intl
1547 all-gash: all-tcl
1548 all-gawk:
1549 ALL_GCC = all-gcc
1550 all-gcc: all-bison all-byacc all-binutils all-gas all-ld
1551 all-bootstrap: all-libiberty all-bison all-byacc all-binutils all-gas all-ld
1552 GDB_TK = all-tk all-tcl all-itcl all-tix all-libgui
1553 # start-sanitize-ide
1554 GDB_TK = all-tk all-tcl all-itcl all-tix all-libgui all-libide all-libidetcl
1555 # end-sanitize-ide
1556 all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim $(gdbnlmrequirements) $(GDB_TK)
1557 all-gettext:
1558 all-gnuserv:
1559 configure-target-gperf: $(ALL_GCC)
1560 all-target-gperf: configure-target-gperf all-target-libiberty all-target-libstdc++
1561 all-gprof: all-libiberty all-bfd all-opcodes all-intl
1562 all-grep: all-libiberty
1563 all-grez: all-libiberty all-bfd all-opcodes
1564 all-gui: all-gdb all-libproc all-target-librx
1565 all-guile:
1566 all-gzip: all-libiberty
1567 all-hello: all-libiberty
1568 # start-sanitize-ide
1569 all-ilu:
1570 # end-sanitize-ide
1571 all-indent:
1572 all-inet: all-tcl all-send-pr all-perl
1573 all-intl:
1574 all-ispell: all-emacs19
1575 all-itcl: all-tcl all-tk
1576 # start-sanitize-ide
1577 all-jstools: all-tcl all-tk all-tix all-libgui all-libide all-libidetcl
1578 # end-sanitize-ide
1579 all-ld: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex all-intl
1580 configure-target-libg++: $(ALL_GCC) configure-target-librx
1581 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++
1582 configure-target-libgloss: $(ALL_GCC)
1583 all-target-libgloss: configure-target-libgloss configure-target-newlib
1584 configure-target-libio: $(ALL_GCC)
1585 all-target-libio: configure-target-libio all-gas all-ld all-gcc all-target-libiberty all-target-newlib
1586 check-target-libio: all-target-libstdc++
1587 all-libgui: all-tcl all-tk all-itcl
1588 all-libiberty:
1589 # start-sanitize-ide
1590 all-libide: all-ilu
1591 all-libidetcl: all-tcl all-tk all-itcl all-ilu all-libgui all-libide
1592 # end-sanitize-ide
1593 # start-sanitize-java
1594 configure-target-libjava: configure-target-boehm-gc
1595 all-target-libjava: configure-target-libjava all-target-boehm-gc
1596 # end-sanitize-java
1597 configure-target-librx: $(ALL_GCC) configure-target-newlib
1598 all-target-librx: configure-target-librx
1599 configure-target-libstdc++: $(ALL_GCC)
1600 all-target-libstdc++: configure-target-libstdc++ all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio
1601 configure-target-libstub: $(ALL_GCC)
1602 all-target-libstub: configure-target-libstub
1603 all-libtool:
1604 all-m4: all-libiberty
1605 all-make: all-libiberty
1606 all-mmalloc:
1607 configure-target-newlib: $(ALL_GCC)
1608 all-target-newlib: configure-target-newlib all-binutils all-gas all-gcc
1609 all-opcodes: all-bfd all-libiberty
1610 all-patch: all-libiberty
1611 all-perl:
1612 all-prms: all-libiberty
1613 all-rcs:
1614 all-readline:
1615 all-recode: all-libiberty
1616 all-sed: all-libiberty
1617 all-send-pr: all-prms
1618 all-shellutils:
1619 all-sim: all-libiberty all-bfd all-opcodes all-readline
1620 # start-sanitize-cygnus
1621 all-snavigator: all-tcl all-tk all-tix all-itcl all-db all-grep all-flexlm all-libgui
1622 # end-sanitize-cygnus
1623 all-tar: all-libiberty
1624 all-tcl:
1625 all-tclX: all-tcl all-tk
1626 all-tk: all-tcl
1627 all-texinfo: all-libiberty
1628 all-textutils:
1629 all-tgas: all-libiberty all-bfd all-opcodes
1630 all-time:
1631 all-tix: all-tcl all-tk
1632 # start-sanitize-ide
1633 all-vmake: all-tcl all-tk all-itcl all-tix all-libgui all-libide all-libidetcl
1634 # end-sanitize-ide
1635 all-wdiff:
1636 all-target-winsup: all-target-newlib all-target-libiberty all-target-libio configure-target-winsup
1637 configure-target-winsup: configure-target-newlib
1638 all-uudecode: all-libiberty
1639 configure-target-libiberty: $(ALL_GCC)
1640 all-target-libiberty: configure-target-libiberty all-gcc all-ld all-target-newlib
1641 all-target: $(ALL_TARGET_MODULES)
1642 install-target: $(INSTALL_TARGET_MODULES)
1643 # start-sanitize-gdbtk
1644 install-gdb: install-tcl install-tk install-itcl install-tix install-libgui
1645 #end-sanitize-gdbtk
1646 ### other supporting targets
1647
1648 MAKEDIRS= \
1649 $(prefix) \
1650 $(exec_prefix)
1651 .PHONY: installdirs
1652 installdirs: mkinstalldirs
1653 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1654
1655 dir.info: do-install-info
1656 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
1657 $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
1658 mv -f dir.info.new dir.info ; \
1659 else true ; \
1660 fi
1661
1662 dist:
1663 @echo "Building a full distribution of this tree isn't done"
1664 @echo "via 'make dist'. Check out the etc/ subdirectory"
1665
1666 etags tags: TAGS
1667
1668 # Right now this just builds TAGS in each subdirectory. emacs19 has the
1669 # ability to use several tags files at once, so there is probably no need
1670 # to combine them into one big TAGS file (like CVS 1.3 does). We could
1671 # (if we felt like it) have this Makefile write a piece of elisp which
1672 # the user could load to tell emacs19 where all the TAGS files we just
1673 # built are.
1674 TAGS: do-TAGS
1675
1676 # with the gnu make, this is done automatically.
1677
1678 Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag)
1679 $(SHELL) ./config.status
1680
1681 #
1682 # Support for building net releases
1683
1684 # Files in devo used in any net release.
1685 # ChangeLog omitted because it may refer to files which are not in this
1686 # distribution (perhaps it would be better to include it anyway).
1687 DEVO_SUPPORT= README Makefile.in configure configure.in \
1688 config.guess config.sub config move-if-change \
1689 mpw-README mpw-build.in mpw-config.in mpw-configure mpw-install \
1690 COPYING COPYING.LIB install-sh config-ml.in symlink-tree \
1691 mkinstalldirs ltconfig ltmain.sh missing ylwrap
1692
1693 # Files in devo/etc used in any net release.
1694 # ChangeLog omitted because it may refer to files which are not in this
1695 # distribution (perhaps it would be better to include it anyway).
1696 ETC_SUPPORT= Makefile.in configure configure.in standards.texi \
1697 make-stds.texi standards.info*
1698
1699 # When you use `make setup-dirs' or `make taz' you should always redefine
1700 # this macro.
1701 SUPPORT_FILES = list-of-support-files-for-tool-in-question
1702
1703 .PHONY: taz
1704
1705 taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) \
1706 texinfo/texinfo.tex texinfo/gpl.texinfo texinfo/lgpl.texinfo
1707 # Take out texinfo from a few places.
1708 sed -e '/^all\.normal: /s/\all-texinfo //' \
1709 -e '/^ install-texinfo /d' \
1710 <Makefile.in >tmp
1711 mv -f tmp Makefile.in
1712 #
1713 $(start-sanitize-Sanitize)
1714 @if [ -f .Sanitize ] ; then echo "RUN Sanitize FIRST!" ; false ; fi ;
1715 $(end-sanitize-Sanitize)
1716 ./configure sun4
1717 [ -z "$(CONFIGURE_TARGET_MODULES)" ] \
1718 || $(MAKE) $(CONFIGURE_TARGET_MODULES) ALL_GCC="" \
1719 CC_FOR_TARGET="$(CC)" CXX_FOR_TARGET="$(CXX)"
1720 # Make links, and run "make diststuff" or "make info" when needed.
1721 rm -rf proto-toplev ; mkdir proto-toplev
1722 set -e ; dirs="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \
1723 for d in $$dirs ; do \
1724 if [ -d $$d ]; then \
1725 if [ ! -f $$d/Makefile ] ; then true ; \
1726 elif grep '^diststuff:' $$d/Makefile >/dev/null ; then \
1727 (cd $$d ; $(MAKE) diststuff ) || exit 1 ; \
1728 elif grep '^info:' $$d/Makefile >/dev/null ; then \
1729 (cd $$d ; $(MAKE) info ) || exit 1 ; \
1730 fi ; \
1731 if [ -d $$d/proto-$$d.dir ]; then \
1732 ln -s ../$$d/proto-$$d.dir proto-toplev/$$d ; \
1733 else \
1734 ln -s ../$$d proto-toplev/$$d ; \
1735 fi ; \
1736 else ln -s ../$$d proto-toplev/$$d ; fi ; \
1737 done
1738 cd etc ; $(MAKE) info
1739 $(MAKE) distclean
1740 #
1741 mkdir proto-toplev/etc
1742 (cd proto-toplev/etc; \
1743 for i in $(ETC_SUPPORT); do \
1744 ln -s ../../etc/$$i . ; \
1745 done)
1746 #
1747 # Take out texinfo from configurable dirs
1748 rm proto-toplev/configure.in
1749 sed -e '/^host_tools=/s/texinfo //' \
1750 <configure.in >proto-toplev/configure.in
1751 #
1752 mkdir proto-toplev/texinfo
1753 ln -s ../../texinfo/texinfo.tex proto-toplev/texinfo/
1754 ln -s ../../texinfo/gpl.texinfo proto-toplev/texinfo/
1755 ln -s ../../texinfo/lgpl.texinfo proto-toplev/texinfo/
1756 if test -r texinfo/util/tex3patch ; then \
1757 mkdir proto-toplev/texinfo/util && \
1758 ln -s ../../../texinfo/util/tex3patch proto-toplev/texinfo/util ; \
1759 else true; fi
1760 chmod og=u `find . -print`
1761 if grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \
1762 ver=`sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'`; \
1763 else \
1764 ver=`sed <$(TOOL)/Makefile.in -n 's/^VERSION *= *//p'`; \
1765 fi; \
1766 $(MAKE) -f Makefile.in do-tar-gz TOOL=$(TOOL) VER=$$ver
1767
1768 do-tar-gz:
1769 echo "==> Making $(TOOL)-$(VER).tar.gz"
1770 -rm -f $(TOOL)-$(VER)
1771 ln -s proto-toplev $(TOOL)-$(VER)
1772 tar cfh $(TOOL)-$(VER).tar $(TOOL)-$(VER)
1773 $(GZIPPROG) -v -9 $(TOOL)-$(VER).tar
1774
1775 TEXINFO_SUPPORT= texinfo/texinfo.tex texinfo/gpl.texinfo texinfo/lgpl.texinfo
1776 DIST_SUPPORT= $(DEVO_SUPPORT) $(TEXINFO_SUPPORT)
1777
1778 .PHONY: gas.tar.gz
1779 GAS_SUPPORT_DIRS= bfd include libiberty opcodes intl setup.com makefile.vms
1780 gas.tar.gz: $(DIST_SUPPORT) $(GAS_SUPPORT_DIRS) gas
1781 $(MAKE) -f Makefile.in taz TOOL=gas \
1782 SUPPORT_FILES="$(GAS_SUPPORT_DIRS)"
1783
1784 # The FSF "binutils" release includes gprof and ld.
1785 .PHONY: binutils.tar.gz
1786 BINUTILS_SUPPORT_DIRS= bfd gas include libiberty opcodes ld gprof intl setup.com makefile.vms
1787 binutils.tar.gz: $(DIST_SUPPORT) $(BINUTILS_SUPPORT_DIRS) binutils
1788 $(MAKE) -f Makefile.in taz TOOL=binutils \
1789 SUPPORT_FILES="$(BINUTILS_SUPPORT_DIRS) makeall.bat configure.bat"
1790
1791 .PHONY: gas+binutils.tar.gz
1792 GASB_SUPPORT_DIRS= $(GAS_SUPPORT_DIRS) binutils ld gprof
1793 gas+binutils.tar.gz: $(DIST_SUPPORT) $(GASB_SUPPORT_DIRS) gas
1794 $(MAKE) -f Makefile.in taz TOOL=gas \
1795 SUPPORT_FILES="$(GASB_SUPPORT_DIRS) makeall.bat configure.bat"
1796
1797 .PHONY: libg++.tar.gz
1798 LIBGXX_SUPPORT_DIRS=include libstdc++ libio librx libiberty
1799 libg++.tar.gz: $(DIST_SUPPORT) libg++
1800 $(MAKE) -f Makefile.in taz TOOL=libg++ \
1801 SUPPORT_FILES="$(LIBGXX_SUPPORT_DIRS)"
1802
1803 GNATS_SUPPORT_DIRS=include libiberty send-pr
1804 gnats.tar.gz: $(DIST_SUPPORT) $(GNATS_SUPPORT_DIRS) gnats
1805 $(MAKE) -f Makefile.in taz TOOL=gnats \
1806 SUPPORT_FILES="$(GNATS_SUPPORT_DIRS)"
1807
1808 .PHONY: gdb.tar.gz
1809 GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline sim utils intl
1810 GDBTK_SUPPORT_DIRS= `if [ -d tcl -a -d tk ] ; then echo tcl tk ; fi`
1811 gdb.tar.gz: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
1812 $(MAKE) -f Makefile.in taz TOOL=gdb \
1813 SUPPORT_FILES="$(GDB_SUPPORT_DIRS) $(GDBTK_SUPPORT_DIRS)"
1814
1815 .PHONY: newlib.tar.gz
1816 NEWLIB_SUPPORT_DIRS=libgloss
1817 # taz configures for the sun4 target which won't configure newlib.
1818 # We need newlib configured so that the .info files are made.
1819 # Unfortunately, it is not enough to just configure newlib separately:
1820 # taz will build the .info files but since SUBDIRS won't contain newlib,
1821 # distclean won't be run (leaving Makefile, config.status, and the tmp files
1822 # used in building the .info files, eg: *.def, *.ref).
1823 # The problem isn't solvable however without a lot of extra work because
1824 # target libraries are built in subdir $(target_alias) which gets nuked during
1825 # the make distclean. For now punt on the issue of shipping newlib info files
1826 # with newlib net releases and wait for a day when some native target (sun4?)
1827 # supports newlib (if only minimally).
1828 newlib.tar.gz: $(DIST_SUPPORT) $(NEWLIB_SUPPORT_DIRS) newlib
1829 $(MAKE) -f Makefile.in taz TOOL=newlib \
1830 SUPPORT_FILES="$(NEWLIB_SUPPORT_DIRS)" \
1831 DEVO_SUPPORT="$(DEVO_SUPPORT) COPYING.NEWLIB" newlib
1832
1833 .NOEXPORT:
1834 MAKEOVERRIDES=
1835
1836 # start-sanitize-chill
1837 ## This is ugly, but I don't want GNU make to put these variables in
1838 ## the environment. Older makes will see this as a set of targets
1839 ## with no dependencies and no actions.
1840 unexport CHILLFLAGS CHILL_LIB CHILL_FOR_TARGET :
1841 # end-sanitize-chill
1842
1843 # end of Makefile.in
This page took 0.101397 seconds and 4 git commands to generate.