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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [Makefile] - Blame information for rev 40

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

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

powered by: WebSVN 2.1.0

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