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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [Makefile.in] - Blame information for rev 39

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

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

powered by: WebSVN 2.1.0

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