OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [Makefile] - Blame information for rev 1773

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.