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