* bfd.c (union tdata): Add nlm_obj_data;
[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
17# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
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
45
46SHELL = /bin/sh
47
f35c6160 48INSTALL = $${srcroot}/install.sh -c
4d714963
RP
49INSTALL_PROGRAM = $(INSTALL)
50INSTALL_DATA = $(INSTALL)
fe560b9f 51INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
3c8735af 52
440868a0 53AS = as
ec342d7d 54AR = ar
b5329d84 55AR_FLAGS = rc
e85e07cb 56CC = cc
f8a6ad66 57CFLAGS = -g
a4e879a1 58# start-sanitize-chill
7d9f0c54
MW
59CHILLFLAGS = $(CFLAGS)
60CHILL_LIB = -lchill
a4e879a1 61# end-sanitize-chill
e85e07cb 62CXX = gcc
d1bea4c7 63CXXFLAGS = -g -O
4d714963 64RANLIB = ranlib
51489233 65NM = nm
a54e05f6 66MUNCH_NM = $(NM)
81246025 67GZIP = gzip
85216403 68COMPRESS = compress
eb02fd64 69
40e16078 70# BISON: This line sed'ed to BISON = bison -y for FSF releases, don't remove.
98a33b6d 71BISON = `if [ -f $${rootme}/byacc/byacc ] ; \
06a07944 72 then echo $${rootme}/byacc/byacc ; \
378fd382 73 else echo byacc ; \
06a07944 74 fi`
2645fb0c 75
98a33b6d 76LEX = `if [ -f $${rootme}/flex/flex ] ; \
8b361a95 77 then echo $${rootme}/flex/flex ; \
2198e4ba
MT
78 else echo flex ; fi`
79
6d681784
JG
80MAKEINFO = `if [ -f $${rootme}/texinfo/makeinfo/makeinfo ] ; \
81 then echo $${rootme}/texinfo/makeinfo/makeinfo ; \
77806c3e 82 else echo makeinfo ; fi`
9823504d
ILT
83# This just becomes part of the MAKEINFO definition passed down to
84# sub-makes. It lets flags be given on the command line while still
85# using the makeinfo from the object tree.
86MAKEINFOFLAGS =
b772d75e 87
a54e05f6
KR
88EXPECT = `if [ -f $${rootme}/expect/expect ] ; \
89 then echo $${rootme}/expect/expect ; \
90 else echo expect ; fi`
91
92RUNTEST = `if [ -f $${srcroot}/dejagnu/runtest ] ; \
93 then echo $${srcroot}/dejagnu/runtest ; \
6a42d184
DZ
94 else echo runtest ; fi`
95
f980fcfb
JG
96
97# libraries that may need to be augmented on a system-by-system basis
98X11_LIB = -lX11
99
e85e07cb 100# compilers to use to create programs which must be run in the build
440868a0
ILT
101# environment.
102CC_FOR_BUILD = $(CC)
e85e07cb 103CXX_FOR_BUILD = $(CXX)
440868a0 104
9f73dd6a 105SUBDIRS = "this is set via configure, don't edit this"
6a3958b2
RP
106OTHERS =
107
a0f47eb7 108ALL = all.normal
f35c6160
DZ
109INSTALL_TARGET = install-dirs \
110 $(INSTALL_MODULES) \
111 $(INSTALL_TARGET_MODULES) \
112 $(INSTALL_X11_MODULES) \
113 install-gcc
fb660409 114
51489233
ILT
115CC_FOR_TARGET = ` \
116 if [ -f $${rootme}/gcc/Makefile ] ; then \
31883f01 117 echo $${rootme}/gcc/xgcc -B$${rootme}/gcc/; \
51489233 118 else \
378fd382 119 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
51489233
ILT
120 echo $(CC); \
121 else \
122 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
123 fi; \
124 fi`
125
a4e879a1 126# start-sanitize-chill
7d9f0c54
MW
127CHILL_FOR_TARGET = ` \
128 if [ -f $${rootme}/gcc/Makefile ] ; then \
129 echo $${rootme}/gcc/xgcc -B$${rootme}/gcc/ -L$${rootme}/chillrt/; \
130 else \
131 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
132 echo $(CC); \
133 else \
134 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
135 fi; \
136 fi`
34b3298b 137
a4e879a1 138# end-sanitize-chill
7d9f0c54 139
d1bea4c7 140CXX_FOR_TARGET = ` \
fca4f908 141 if [ -f $${rootme}/gcc/Makefile ] ; then \
31883f01 142 echo $${rootme}/gcc/xgcc -B$${rootme}/gcc/; \
fca4f908 143 else \
e85e07cb
ILT
144 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
145 echo $(CXX); \
fca4f908
MW
146 else \
147 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
148 fi; \
149 fi`
150
440868a0
ILT
151AS_FOR_TARGET = ` \
152 if [ -f $${rootme}/gas/Makefile ] ; then \
153 echo $${rootme}/gas/as.new ; \
154 else \
e85e07cb 155 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
440868a0
ILT
156 echo $(AS); \
157 else \
158 t='$(program_transform_name)'; echo as | sed -e '' $$t ; \
81246025 159 fi; \
440868a0
ILT
160 fi`
161
51489233
ILT
162AR_FOR_TARGET = ` \
163 if [ -f $${rootme}/binutils/Makefile ] ; then \
164 echo $${rootme}/binutils/ar ; \
165 else \
378fd382 166 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
51489233
ILT
167 echo $(AR); \
168 else \
169 t='$(program_transform_name)'; echo ar | sed -e '' $$t ; \
81246025 170 fi; \
51489233
ILT
171 fi`
172
173RANLIB_FOR_TARGET = ` \
174 if [ -f $${rootme}/binutils/Makefile ] ; then \
175 echo $${rootme}/binutils/ranlib ; \
176 else \
378fd382 177 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
51489233
ILT
178 echo $(RANLIB); \
179 else \
180 t='$(program_transform_name)'; echo ranlib | sed -e '' $$t ; \
81246025 181 fi; \
51489233
ILT
182 fi`
183
184NM_FOR_TARGET = ` \
185 if [ -f $${rootme}/binutils/Makefile ] ; then \
186 echo $${rootme}/binutils/nm ; \
187 else \
378fd382 188 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
51489233
ILT
189 echo $(NM); \
190 else \
191 t='$(program_transform_name)'; echo nm | sed -e '' $$t ; \
81246025 192 fi; \
51489233
ILT
193 fi`
194
0ef4728f 195# FIXME: This is badly named.
51489233
ILT
196XTRAFLAGS = ` \
197 if [ -f $${rootme}/gcc/Makefile ] ; then \
9d401625
ILT
198 if [ -f $${rootme}/newlib/Makefile ] ; then \
199 echo -I$${rootme}/newlib/targ-include -I$${srcroot}/newlib/libc/include -I$${rootme}/gcc/include -nostdinc ; \
51489233 200 else \
9d401625 201 echo -I$${rootme}/gcc/include ; \
51489233
ILT
202 fi ; \
203 else \
204 echo ; \
205 fi`
23e3e7f9 206
394ad658 207PRMS = all-prms
b1cceba2 208
eb02fd64 209#### host and target specific makefile fragments come in here.
ec342d7d 210###
eb02fd64 211
0ef4728f
ILT
212# Flags to pass down to all sub-makes.
213# Please keep these in alphabetical order.
214BASE_FLAGS_TO_PASS = \
2198e4ba 215 "AR_FLAGS=$(AR_FLAGS)" \
d09de70e 216 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
0ef4728f 217 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
378fd382 218 "BISON=$(BISON)" \
378fd382 219 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
0ef4728f 220 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
2198e4ba 221 "CFLAGS=$(CFLAGS)" \
a4e879a1 222 $(start-sanitize-chill)\
7d9f0c54
MW
223 "CHILLFLAGS=$(CHILLFLAGS)" \
224 "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \
225 "CHILL_LIB=$(CHILL_LIB)" \
a4e879a1 226 $(end-sanitize-chill)\
0ef4728f
ILT
227 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
228 "CXXFLAGS=$(CXXFLAGS)" \
229 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
9823504d 230 "GCC_FOR_TARGET=$$(CC_FOR_TARGET)" \
2198e4ba
MT
231 "INSTALL=$(INSTALL)" \
232 "INSTALL_DATA=$(INSTALL_DATA)" \
440868a0 233 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
f35c6160 234 "INSTALL_XFORM=$(INSTALL_XFORM)" \
378fd382
DZ
235 "LDFLAGS=$(LDFLAGS)" \
236 "LEX=$(LEX)" \
237 "LOADLIBES=$(LOADLIBES)" \
9823504d 238 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
a54e05f6 239 "MUNCH_NM=$(MUNCH_NM)" \
0ef4728f 240 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
72c09fbc 241 "PRMS=$(PRMS)" \
d09de70e 242 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
a54e05f6 243 "EXPECT=$(EXPECT)" \
6a42d184 244 "RUNTEST=$(RUNTEST)" \
a54e05f6 245 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
0ef4728f 246 "XTRAFLAGS_FOR_TARGET=$(XTRAFLAGS)" \
378fd382
DZ
247 "exec_prefix=$(exec_prefix)" \
248 "prefix=$(prefix)" \
249 "tooldir=$(tooldir)"
2198e4ba 250
0ef4728f
ILT
251# Flags to pass down to most sub-makes, in which we're building with
252# the host environment.
6d681784 253# If any variables are added here, they must be added to do-*, below.
0ef4728f 254EXTRA_HOST_FLAGS = \
6d681784
JG
255 'AR=$(AR)' \
256 'AS=$(AS)' \
257 'CC=$(CC)' \
258 'CXX=$(CXX)' \
259 'NM=$(NM)' \
260 'RANLIB=$(RANLIB)' \
261 'XTRAFLAGS='
0ef4728f
ILT
262
263FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
264
d1bea4c7
DZ
265# Flags that are concerned with the location of the X11 include files
266# and library files
267X11_FLAGS_TO_PASS = \
268 "X11_INCLUDE_FLAGS=$(X11_INCLUDE_FLAGS)" \
f980fcfb
JG
269 "X11_LIB_FLAGS=$(X11_LIB_FLAGS)" \
270 "X11_LIB=$(X11_LIB)"
d1bea4c7 271
0ef4728f
ILT
272# Flags to pass down to makes which are built with the target environment.
273# The double $ decreases the length of the command line; the variables
274# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
6d681784 275# If any variables are added here, they must be added to do-*, below.
0ef4728f
ILT
276EXTRA_TARGET_FLAGS = \
277 'AR=$$(AR_FOR_TARGET)' \
278 'AS=$$(AS_FOR_TARGET)' \
279 'CC=$$(CC_FOR_TARGET)' \
280 'CXX=$$(CXX_FOR_TARGET)' \
281 'NM=$$(NM_FOR_TARGET)' \
282 'RANLIB=$$(RANLIB_FOR_TARGET)' \
283 'XTRAFLAGS=$$(XTRAFLAGS_FOR_TARGET)'
284
285TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
51489233 286
f4e414f1
ILT
287# Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
288# unfortunately needs the native compiler and the target ar and
0ef4728f 289# ranlib.
6d681784 290# If any variables are added here, they must be added to do-*, below.
a54e05f6
KR
291# The HOST_* variables are a special case, which are used for the gcc
292# cross-building scheme.
293HOST_CC = $(CC_FOR_BUILD)
294HOST_PREFIX =
295HOST_PREFIX_1 = loser-
0ef4728f
ILT
296EXTRA_GCC_FLAGS = \
297 'AR=$$(AR_FOR_TARGET)' \
6d681784
JG
298 'AS=$(AS)' \
299 'CC=$(CC)' \
300 'CXX=$(CXX)' \
a54e05f6
KR
301 'HOST_CC=$(CC_FOR_BUILD)' \
302 'HOST_PREFIX=$(HOST_PREFIX)' \
303 'HOST_PREFIX_1=$(HOST_PREFIX_1)' \
6d681784 304 'NM=$(NM)' \
0ef4728f 305 'RANLIB=$$(RANLIB_FOR_TARGET)' \
6d681784 306 'XTRAFLAGS='
0ef4728f 307
34b3298b 308GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
f4e414f1 309
6a42d184 310# This is a list of the targets for all of the modules which are compiled
79337c85
ILT
311# using $(FLAGS_TO_PASS).
312ALL_MODULES = \
313 all-autoconf \
314 all-bfd \
315 all-binutils \
316 all-byacc \
317 all-cvs \
318 all-dejagnu \
319 all-diff \
320 all-etc \
321 all-fileutils \
322 all-find \
323 all-flex \
324 all-gas \
325 all-gawk \
326 all-gdb \
327 all-gprof \
328 all-grep \
329 all-gzip \
330 all-hello \
331 all-indent \
332 all-ispell \
333 all-ld \
334 all-libiberty \
335 all-m4 \
336 all-make \
337 all-mmalloc \
338 all-opcodes \
339 all-patch \
340 all-prms \
341 all-rcs \
342 all-readline \
275049c0 343 all-release \
79337c85
ILT
344 all-recode \
345 all-sed \
346 all-send-pr \
347 all-shellutils \
348 all-sim \
349 all-tar \
350 all-tcl \
351 all-texinfo \
352 all-textutils \
353 all-tgas \
354 all-time \
355 all-uudecode \
356 all-wdiff
357
6a42d184
DZ
358# This is a list of the check targets for all of the modules which are
359# compiled using $(FLAGS_TO_PASS).
360CHECK_MODULES = \
361 check-autoconf \
362 check-bfd \
363 check-binutils \
364 check-byacc \
365 check-cvs \
366 check-dejagnu \
367 check-diff \
368 check-etc \
369 check-fileutils \
370 check-find \
371 check-flex \
372 check-gas \
373 check-gawk \
374 check-gdb \
375 check-gprof \
376 check-grep \
377 check-gzip \
378 check-hello \
379 check-indent \
380 check-ispell \
381 check-ld \
382 check-libiberty \
383 check-m4 \
384 check-make \
385 check-mmcheckoc \
386 check-opcodes \
387 check-patch \
388 check-prms \
389 check-rcs \
390 check-readline \
391 check-recode \
392 check-sed \
393 check-send-pr \
394 check-shellutils \
395 check-sim \
396 check-tar \
397 check-tcl \
398 check-texinfo \
399 check-textutils \
400 check-tgas \
401 check-time \
402 check-uudecode \
403 check-wdiff
404
405# This is a list of the install targets for all of the modules which are
79337c85
ILT
406# compiled using $(FLAGS_TO_PASS).
407INSTALL_MODULES = \
408 install-autoconf \
409 install-bfd \
410 install-binutils \
411 install-byacc \
412 install-cvs \
413 install-dejagnu \
414 install-diff \
415 install-etc \
416 install-fileutils \
417 install-find \
418 install-flex \
419 install-gas \
420 install-gawk \
421 install-gdb \
422 install-glob \
423 install-gprof \
424 install-grep \
425 install-gzip \
426 install-hello \
427 install-indent \
428 install-ispell \
429 install-ld \
430 install-libiberty \
431 install-m4 \
432 install-make \
433 install-mmalloc \
434 install-opcodes \
435 install-patch \
436 install-prms \
437 install-rcs \
438 install-readline \
439 install-recode \
440 install-sed \
441 install-send-pr \
442 install-shellutils \
443 install-sim \
444 install-tar \
445 install-tcl \
446 install-texinfo \
447 install-textutils \
448 install-tgas \
449 install-time \
450 install-uudecode \
451 install-wdiff
452
6a42d184 453# This is a list of the targets for all of the modules which are compiled
79337c85
ILT
454# using $(X11_FLAGS_TO_PASS).
455ALL_X11_MODULES = \
456 all-emacs \
457 all-expect \
458 all-tclX \
459 all-tk
460
6a42d184
DZ
461# This is a list of the check targets for all of the modules which are
462# compiled using $(X11_FLAGS_TO_PASS).
463CHECK_X11_MODULES = \
464 check-emacs \
465 check-expect \
466 check-tclX \
467 check-tk
468
79337c85
ILT
469# This is a list of the install targets for all the modules which are
470# compiled using $(X11_FLAGS_TO_PASS).
471INSTALL_X11_MODULES = \
472 install-emacs \
473 install-expect \
474 install-tclX \
475 install-tk
fca4f908 476
6a42d184 477# This is a list of the targets for all of the modules which are compiled
79337c85
ILT
478# using $(TARGET_FLAGS_TO_PASS).
479ALL_TARGET_MODULES = \
480 $(start-sanitize-chill) \
481 all-chillrt \
482 $(end-sanitize-chill) \
483 all-libg++ \
484 all-newlib \
485 all-xiberty
486
6a42d184
DZ
487# This is a list of the check targets for all of the modules which are
488# compiled using $(TARGET_FLAGS_TO_PASS).
489CHECK_TARGET_MODULES = \
490 $(start-sanitize-chill) \
491 check-chillrt \
492 $(end-sanitize-chill) \
493 check-libg++ \
494 check-newlib \
495 check-xiberty
496
497# This is a list of the install targets for all of the modules which are
79337c85
ILT
498# compiled using $(TARGET_FLAGS_TO_PASS).
499INSTALL_TARGET_MODULES = \
500 $(start-sanitize-chill) \
501 install-chillrt \
502 $(end-sanitize-chill) \
503 install-libg++ \
504 install-newlib \
505 install-xiberty
4d714963 506
79337c85
ILT
507# This is a shell case of all modules which are compiled using
508# $(TARGET_FLAGS_TO_PASS), used in the do-X rule.
509TARGET_LIBS = libg++ | newlib | xiberty
a4e879a1 510# start-sanitize-chill
79337c85 511TARGET_LIBS = chillrt | libg++ | newlib | xiberty
a4e879a1 512# end-sanitize-chill
7481617f 513
79337c85 514# The first rule in the file had better be this one. Don't put any above it.
a59b94d2 515all: all.normal
79337c85
ILT
516.PHONY: all
517
518# The target built for a native build.
519.PHONY: all.normal
520all.normal: \
521 $(ALL_MODULES) \
522 $(ALL_TARGET_MODULES) \
46d0ca81 523 $(ALL_X11_MODULES) \
79337c85
ILT
524 all-gcc
525
0ef4728f 526# Do a target for all the subdirectories. A ``make do-X'' will do a
53222cbd
RP
527# ``make X'' in all subdirectories (because, in general, there is a
528# dependency (below) of X upon do-X, a ``make X'' will also do this,
529# but it may do additional work as well).
0ef4728f
ILT
530# This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
531# because it is so large that it can easily overflow the command line
532# length limit on some systems.
79337c85 533DO_X = \
79337c85
ILT
534 do-clean \
535 do-distclean \
536 do-dvi \
537 do-info \
538 do-install-info \
539 do-installcheck \
540 do-mostlyclean \
541 do-realclean
542.PHONY: $(DO_X)
543$(DO_X):
0ef4728f
ILT
544 @target=`echo $@ | sed -e 's/^do-//'`; \
545 rootme=`pwd`; export rootme; \
546 srcroot=`cd $(srcdir); pwd`; export srcroot; \
547 for i in $(SUBDIRS); do \
36286a3e 548 if [ -f ./$$i/Makefile ]; then \
0ef4728f
ILT
549 case $$i in \
550 $(TARGET_LIBS) ) \
6d681784
JG
551 for flag in $(EXTRA_TARGET_FLAGS); do \
552 eval `echo "$$flag" | sed -e "s|^\(.*\)=\(.*\)|\1='\2'|"`; \
553 done; \
0ef4728f
ILT
554 ;; \
555 gcc) \
6d681784
JG
556 for flag in $(EXTRA_GCC_FLAGS); do \
557 eval `echo "$$flag" | sed -e "s|^\(.*\)=\(.*\)|\1='\2'|"`; \
558 done; \
0ef4728f
ILT
559 ;; \
560 *) \
6d681784
JG
561 for flag in $(EXTRA_HOST_FLAGS); do \
562 eval `echo "$$flag" | sed -e "s|^\(.*\)=\(.*\)|\1='\2'|"`; \
563 done; \
0ef4728f
ILT
564 ;; \
565 esac ; \
6d681784 566 export AR AS CC CXX NM RANLIB XTRAFLAGS; \
0ef4728f 567 if (cd ./$$i; \
6d681784
JG
568 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
569 "CC=$${CC}" "CXX=$${CXX}" "NM=$${NM}" \
570 "RANLIB=$${RANLIB}" "XTRAFLAGS=$${XTRAFLAGS}" \
571 $${target}); \
0ef4728f
ILT
572 then true; else exit 1; fi; \
573 else true; fi; \
574 done
fb90daeb 575
79337c85
ILT
576# Here are the targets which correspond to the do-X targets.
577
65088029 578.PHONY: info installcheck dvi install-info
79337c85 579.PHONY: clean distclean mostlyclean realclean local-clean local-distclean
0ef4728f 580info: do-info
1a14993c 581installcheck: do-installcheck
0ef4728f 582dvi: do-dvi
9a9e8e7f 583
f35c6160
DZ
584install-info: do-install-info dir.info
585 srcroot=`cd $(srcdir); pwd`; export srcroot; \
72c09fbc
SC
586 if [ -f dir.info ] ; then \
587 $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \
50fbe976 588 else true ; fi
4d714963 589
0ef4728f 590local-clean:
7fed4078 591 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E
3b30df82 592
0ef4728f 593local-distclean:
7fed4078 594 -rm -f Makefile config.status
7fcfdcf7 595
0ef4728f
ILT
596clean: do-clean local-clean
597mostlyclean: do-mostlyclean local-clean
598distclean: do-distclean local-clean local-distclean
599realclean: do-realclean local-clean local-distclean
600
65088029
ILT
601# Check target.
602
603.PHONY: check
604check: $(CHECK_MODULES) \
605 $(CHECK_TARGET_MODULES) \
606 $(CHECK_X11_MODULES) \
607 check-gcc
608
79337c85 609# Installation targets.
4d714963 610
275049c0 611.PHONY: install uninstall vault-install
98a33b6d 612install: $(INSTALL_TARGET)
b26ff9d8 613
79337c85
ILT
614uninstall:
615 @echo "the uninstall target is not supported in this tree"
616
275049c0
JK
617vault-install:
618 @if [ -f ./release/vault-install ] ; then \
619 ./release/vault-install $(host_alias) $(target_alias) ; \
96bfa612
KR
620 else \
621 true ; \
275049c0
JK
622 fi
623
79337c85 624.PHONY: install.all
06a07944
RP
625install.all: install-no-fixedincludes
626 @if [ -f ./gcc/Makefile ] ; then \
627 rootme=`pwd` ; export rootme ; \
628 (cd ./gcc; \
629 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
630 else \
631 true ; \
632 fi
5a63b336 633
96bfa612 634# install-no-fixedincludes is used because Cygnus can not distribute
79337c85
ILT
635# the fixed header files.
636.PHONY: install-no-fixedincludes
637install-no-fixedincludes: \
638 install-dirs \
79337c85
ILT
639 $(INSTALL_MODULES) \
640 $(INSTALL_TARGET_MODULES) \
96bfa612 641 $(INSTALL_X11_MODULES) \
f35c6160 642 gcc-no-fixedincludes
d1bea4c7 643
5cc24596 644# Install the gcc headers files, but not the fixed include files,
79337c85
ILT
645# which Cygnus is not allowed to distribute. This rule is very
646# dependent on the workings of the gcc Makefile.in.
647.PHONY: gcc-no-fixedincludes
06a07944 648gcc-no-fixedincludes:
5cc24596
PB
649 @if [ -f ./gcc/Makefile ]; then \
650 rm -rf gcc/tmp-include; \
651 mv gcc/include gcc/tmp-include 2>/dev/null; \
652 mkdir gcc/include; \
7f9cb3b2 653 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
a54e05f6
KR
654 touch gcc/stmp-fixinc; \
655 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
5cc24596
PB
656 rootme=`pwd`; export rootme; \
657 srcroot=`cd $(srcdir); pwd` ; export srcroot; \
658 (cd ./gcc; \
659 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
660 rm -rf gcc/include; \
661 mv gcc/tmp-include gcc/include 2>/dev/null; \
662 else true; fi
dcbfc14d 663
79337c85
ILT
664# This rule is used to build the modules which use FLAGS_TO_PASS. To
665# build a target all-X means to cd to X and make all.
666# all-glob is handled specially because it doesn't actually build.
667.PHONY: $(ALL_MODULES) all-glob
668$(ALL_MODULES) all-glob:
669 @dir=`echo $@ | sed -e 's/all-//'`; \
670 if [ -f ./$${dir}/Makefile ] ; then \
671 rootme=`pwd`; export rootme; \
672 srcroot=`cd $(srcdir); pwd`; export srcroot; \
673 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \
07362bd9 674 else \
79337c85 675 true; \
07362bd9
DZ
676 fi
677
6a42d184
DZ
678# This rule is used to check the modules which use FLAGS_TO_PASS. To
679# build a target check-X means to cd to X and make all.
680.PHONY: $(CHECK_MODULES)
681$(CHECK_MODULES):
682 @dir=`echo $@ | sed -e 's/check-//'`; \
683 if [ -f ./$${dir}/Makefile ] ; then \
684 rootme=`pwd`; export rootme; \
685 srcroot=`cd $(srcdir); pwd`; export srcroot; \
686 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
687 else \
688 true; \
689 fi
690
79337c85
ILT
691# This rule is used to install the modules which use FLAGS_TO_PASS.
692# To build a target install-X means to cd to X and make install.
693.PHONY: $(INSTALL_MODULES)
694$(INSTALL_MODULES): install-dirs
695 @dir=`echo $@ | sed -e 's/install-//'`; \
696 if [ -f ./$${dir}/Makefile ] ; then \
697 rootme=`pwd`; export rootme; \
698 srcroot=`cd $(srcdir); pwd`; export srcroot; \
f35c6160 699 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
07362bd9 700 else \
79337c85 701 true; \
07362bd9
DZ
702 fi
703
6a42d184
DZ
704# This rule is used to build the modules which use TARGET_FLAGS_TO_PASS.
705# To build a target all-X means to cd to X and make all.
79337c85
ILT
706.PHONY: $(ALL_TARGET_MODULES)
707$(ALL_TARGET_MODULES):
708 @dir=`echo $@ | sed -e 's/all-//'`; \
709 if [ -f ./$${dir}/Makefile ] ; then \
710 rootme=`pwd`; export rootme; \
711 srcroot=`cd $(srcdir); pwd`; export srcroot; \
712 (cd $${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
07362bd9 713 else \
79337c85 714 true; \
07362bd9
DZ
715 fi
716
6a42d184
DZ
717# This rule is used to check the modules which use TARGET_FLAGS_TO_PASS.
718# To build a target install-X means to cd to X and make install.
719.PHONY: $(CHECK_TARGET_MODULES)
720$(CHECK_TARGET_MODULES):
721 @dir=`echo $@ | sed -e 's/check-//'`; \
722 if [ -f ./$${dir}/Makefile ] ; then \
723 rootme=`pwd`; export rootme; \
724 srcroot=`cd $(srcdir); pwd`; export srcroot; \
725 (cd $${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) check); \
726 else \
727 true; \
728 fi
729
79337c85
ILT
730# This rule is used to install the modules which use
731# TARGET_FLAGS_TO_PASS. To build a target install-X means to cd to X
732# and make install.
733.PHONY: $(INSTALL_TARGET_MODULES)
734$(INSTALL_TARGET_MODULES): install-dirs
735 @dir=`echo $@ | sed -e 's/install-//'`; \
736 if [ -f ./$${dir}/Makefile ] ; then \
737 rootme=`pwd`; export rootme; \
738 srcroot=`cd $(srcdir); pwd`; export srcroot; \
739 (cd $${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
07362bd9 740 else \
79337c85 741 true; \
07362bd9
DZ
742 fi
743
6a42d184 744# This rule is used to build the modules which use X11_FLAGS_TO_PASS.
79337c85
ILT
745# To build a target all-X means to cd to X and make all.
746.PHONY: $(ALL_X11_MODULES)
747$(ALL_X11_MODULES):
748 @dir=`echo $@ | sed -e 's/all-//'`; \
749 if [ -f ./$${dir}/Makefile ] ; then \
750 rootme=`pwd`; export rootme; \
751 srcroot=`cd $(srcdir); pwd`; export srcroot; \
752 (cd $${dir}; \
753 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
07362bd9 754 else \
79337c85 755 true; \
07362bd9
DZ
756 fi
757
6a42d184
DZ
758# This rule is used to check the modules which use X11_FLAGS_TO_PASS.
759# To build a target check-X means to cd to X and make all.
760.PHONY: $(CHECK_X11_MODULES)
761$(CHECK_X11_MODULES):
762 @dir=`echo $@ | sed -e 's/check-//'`; \
763 if [ -f ./$${dir}/Makefile ] ; then \
764 rootme=`pwd`; export rootme; \
765 srcroot=`cd $(srcdir); pwd`; export srcroot; \
766 (cd $${dir}; \
767 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
768 else \
769 true; \
770 fi
771
772# This rule is used to install the modules which use X11_FLAGS_TO_PASS.
79337c85
ILT
773# To build a target install-X means to cd to X and make install.
774.PHONY: $(INSTALL_X11_MODULES)
775$(INSTALL_X11_MODULES):
6a42d184 776 @dir=`echo $@ | sed -e 's/install-//'`; \
79337c85
ILT
777 if [ -f ./$${dir}/Makefile ] ; then \
778 rootme=`pwd`; export rootme; \
779 srcroot=`cd $(srcdir); pwd`; export srcroot; \
780 (cd $${dir}; \
781 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
07362bd9 782 else \
79337c85 783 true; \
07362bd9
DZ
784 fi
785
79337c85
ILT
786# gcc is the only module which uses GCC_FLAGS_TO_PASS.
787.PHONY: all-gcc
788all-gcc:
789 @if [ -f ./gcc/Makefile ] ; then \
790 rootme=`pwd`; export rootme; \
791 srcroot=`cd $(srcdir); pwd`; export srcroot; \
792 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
07362bd9 793 else \
79337c85 794 true; \
07362bd9
DZ
795 fi
796
65088029
ILT
797.PHONY: check-gcc
798check-gcc:
799 @if [ -f ./gcc/Makefile ] ; then \
800 rootme=`pwd`; export rootme; \
801 srcroot=`cd $(srcdir); pwd`; export srcroot; \
802 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
803 else \
804 true; \
805 fi
806
79337c85
ILT
807.PHONY: install-gcc
808install-gcc:
809 @if [ -f ./gcc/Makefile ] ; then \
810 rootme=`pwd`; export rootme; \
811 srcroot=`cd $(srcdir); pwd`; export srcroot; \
812 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
07362bd9 813 else \
79337c85 814 true; \
07362bd9
DZ
815 fi
816
79337c85
ILT
817# This is a list of inter-dependencies among modules.
818all-autoconf:
819all-bfd:
820all-binutils: all-libiberty all-opcodes all-bfd all-flex
821all-byacc:
822# start-sanitize-chill
823all-chillrt: all-binutils all-gas all-gcc all-newlib
824# end-sanitize-chill
825all-cvs:
826all-dejagnu:
827all-diff: all-libiberty
828all-emacs:
829all-etc:
c6ba9ae0 830all-expect: all-tcl all-tk
275049c0 831all-fileutils: all-libiberty
79337c85 832all-find:
7dcc0664 833all-flex: all-libiberty all-byacc
79337c85
ILT
834all-gas: all-libiberty all-opcodes all-bfd
835all-gawk:
836all-gcc: all-libiberty all-byacc all-binutils all-gas
a54e05f6 837all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-glob all-byacc all-sim
79337c85
ILT
838all-glob:
839all-gprof: all-libiberty all-bfd
840all-grep:
841all-gzip: all-libiberty
842all-hello: all-libiberty
843all-indent:
844all-ispell: all-emacs
845all-ld: all-libiberty all-bfd all-byacc all-flex
846all-libg++: all-gas all-ld all-gcc all-xiberty all-newlib
847all-libiberty:
848all-m4: all-libiberty
849all-make: all-libiberty
850all-mmalloc:
851all-newlib: all-binutils all-gas all-gcc
275049c0 852all-opcodes: all-bfd
79337c85
ILT
853all-patch:
854all-prms:
855all-rcs:
856all-readline:
857all-recode: all-libiberty
858all-sed:
859all-send-pr:
860all-shellutils:
861all-sim: all-libiberty all-bfd
07362bd9 862all-tar: all-libiberty
79337c85
ILT
863all-tcl:
864all-tclX: all-tcl all-tk
865all-tk: all-tcl
866all-texinfo: all-libiberty
867all-textutils:
868all-tgas: all-libiberty all-bfd
869all-time:
870all-wdiff:
871all-uudecode: all-libiberty
872all-xiberty: all-gcc all-newlib
07362bd9 873
79337c85 874### other supporting targets
07362bd9 875
79337c85
ILT
876MAKEDIRS= \
877 $(prefix) \
878 $(exec_prefix) \
879 $(tooldir)
fca4f908 880
79337c85
ILT
881.PHONY: install-dirs
882install-dirs:
883 @for i in $(MAKEDIRS) ; do \
884 echo Making $$i... ; \
885 parent=`echo $$i|sed -e 's@/[^/]*$$@@'`; \
886 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi ; \
887 if [ ! -d $$i ] ; then \
888 if mkdir $$i ; then \
889 true ; \
890 else \
891 exit 1 ; \
892 fi ; \
893 else \
894 true ; \
895 fi ; \
896 done
23e3e7f9 897
618f57a9 898
79337c85
ILT
899dir.info: do-install-info
900 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
901 $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
902 mv -f dir.info.new dir.info ; \
903 else true ; \
72c09fbc 904 fi
6b7e5998 905
b1cceba2
DZ
906dist:
907 @echo "Building a full distribution of this tree isn't done"
908 @echo "via 'make dist'. Check out the etc/ subdirectory"
909
eb02fd64
RP
910etags tags: TAGS
911
02a7ba9a 912TAGS:
eb02fd64
RP
913 etags `$(MAKE) ls`
914
915ls:
916 @echo Makefile
917 @for i in $(SUBDIRS); \
918 do \
919 (cd $$i; \
920 pwd=`pwd`; \
921 wd=`basename $$pwd`; \
922 for j in `$(MAKE) ls`; \
923 do \
924 echo $$wd/$$j; \
925 done) \
926 done
927
eb02fd64
RP
928# with the gnu make, this is done automatically.
929
f1eb48b6 930Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
a26878d1 931 $(SHELL) ./config.status
eb02fd64 932
11954bf1
JG
933#
934# Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
935
d94d255d 936DEVO_SUPPORT= README Makefile.in configure configure.in \
9823504d
ILT
937 config.guess config.sub config move-if-change \
938 COPYING COPYING.LIB install.sh
6d681784 939ETC_SUPPORT= Makefile.in cfg-paper.texi configure.in configure.man \
275049c0 940 configure.texi standards.texi make-stds.texi
72c09fbc 941GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline glob sim
d94d255d 942GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS)
11954bf1 943
79337c85
ILT
944.PHONY: setup-dirs-gdb gdb.tar.Z make-gdb.tar.Z
945setup-dirs-gdb:
11954bf1 946 ./configure sun4
53222cbd 947 $(MAKE) clean
11954bf1 948 ./configure -rm sun4
42187387 949 chmod og=u `find etc $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
abc52b80 950
40e16078 951gdb.tar.Z: setup-dirs-gdb
42187387 952 (cd gdb; $(MAKE) -f Makefile.in make-proto-gdb.dir BISON="byacc")
873045c1 953 (cd gdb; $(MAKE) -f Makefile.in make-proto-testsuite.dir)
abc52b80
JG
954 $(MAKE) $(MFLAGS) -f Makefile.in make-gdb.tar.Z
955
f980fcfb 956make-gdb.tar.Z: $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS) gdb texinfo/texinfo.tex
abc52b80
JG
957 rm -rf proto-toplev; mkdir proto-toplev
958 ln -s ../gdb/proto-gdb.dir proto-toplev/gdb
959 (cd proto-toplev; for i in $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS); do \
960 ln -s ../$$i . ; \
961 done)
6d681784
JG
962 mkdir proto-toplev/etc
963 (cd proto-toplev/etc; for i in $(ETC_SUPPORT); do \
964 ln -s ../../etc/$$i . ; \
965 done)
7c9feeb7
RP
966 # Put only one copy (four hard links) of COPYING in the tar file.
967 rm proto-toplev/bfd/COPYING
968 ln proto-toplev/gdb/COPYING proto-toplev/bfd/COPYING
969 rm proto-toplev/include/COPYING
970 ln proto-toplev/gdb/COPYING proto-toplev/include/COPYING
971 rm proto-toplev/readline/COPYING
972 ln proto-toplev/gdb/COPYING proto-toplev/readline/COPYING
a50b5d9d
JG
973
974 # Take out texinfo and glob from configurable dirs
a3a063a9 975 rm proto-toplev/configure.in
a50b5d9d
JG
976 sed -e '/^host_tools=/s/texinfo //' \
977 -e '/^host_libs=/s/glob //' \
978 <configure.in >proto-toplev/configure.in
6995fe83 979
a50b5d9d
JG
980 # Take out texinfo from a few places; make simple BISON=bison line.
981 rm proto-toplev/Makefile.in
982 sed -e '/^all\.normal: /s/\all-texinfo //' \
983 -e '/^ install-texinfo /d' \
40e16078
KR
984 -e '/^BISON = /,/^$$/d' \
985 -e '/^# BISON:/s/.*/BISON = bison -y/' \
6995fe83
SG
986 <Makefile.in >proto-toplev/Makefile.in
987
abc52b80 988 mkdir proto-toplev/texinfo
a50b5d9d 989 ln -s ../../texinfo/texinfo.tex proto-toplev/texinfo/
81246025 990 ln -s ../../texinfo/tex3patch proto-toplev/texinfo/
905bb120 991 chmod og=u `find proto-toplev -print`
abc52b80 992 (VER=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
abc52b80 993 ln -s proto-toplev gdb-$$VER; \
85216403
FF
994 echo "==> Making gdb-$$VER.tar.Z"; \
995 tar cfh - gdb-$$VER | $(COMPRESS) -v >gdb-$$VER.tar.Z; \
1d2bb445
FF
996 echo "==> Making gdb-$$VER.tar.gz"; \
997 tar cfh - gdb-$$VER | $(GZIP) -v -9 >gdb-$$VER.tar.gz)
0ec776a5 998
873045c1
FF
999 # Make the testsuite archive separately.
1000 ln -s ../../gdb/proto-testsuite.dir/testsuite proto-toplev/gdb/testsuite
a54e05f6
KR
1001 # Blow away the Chill test that requires a Chill compiled executable,
1002 # since GNU Chill is not yet publically available.
1003 rm -rf proto-toplev/gdb/testsuite/gdb.t31
1004
873045c1
FF
1005 # Put a copy of COPYING in the tar file.
1006 ln proto-toplev/gdb/COPYING proto-toplev/gdb/testsuite/COPYING
1007 chmod og=u `find proto-toplev/gdb/testsuite -print`
1008 (VER=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
1009 echo "==> Making gdb-$$VER-testsuite.tar.Z"; \
a54e05f6
KR
1010 tar cfh - gdb-$$VER/configure gdb-$$VER/config.guess \
1011 gdb-$$VER/config.sub gdb-$$VER/move-if-change \
1012 gdb-$$VER/gdb/testsuite | \
873045c1 1013 $(COMPRESS) -v >gdb-$$VER-testsuite.tar.Z; \
1d2bb445 1014 echo "==> Making gdb-$$VER-testsuite.tar.gz"; \
a54e05f6
KR
1015 tar cfh - gdb-$$VER/configure gdb-$$VER/config.guess \
1016 gdb-$$VER/config.sub gdb-$$VER/move-if-change \
1017 gdb-$$VER/gdb/testsuite | \
1d2bb445 1018 $(GZIP) -v -9 >gdb-$$VER-testsuite.tar.gz)
873045c1 1019
40e16078
KR
1020# When you use `make setup-dirs' or `make taz' you should always redefine
1021# this macro.
1022SUPPORT_FILES = list-of-support-files-for-tool-in-question
7f9cb3b2 1023# Directories that might want `make diststuff' run.
5600fbd2 1024DISTSTUFFDIRS= ld gprof gdb libg++
40e16078 1025
a54e05f6
KR
1026.PHONY: taz
1027
7f9cb3b2 1028taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex texinfo/gpl.texinfo
40e16078 1029 ./configure sun4
7f9cb3b2 1030 # Make links, and run "make diststuff" when needed.
a54e05f6
KR
1031 # The `echo' for setting `p' is to convert all whitespace to spaces.
1032 # Then the `case' further below should tell whether $$d is in
7f9cb3b2 1033 # DISTSTUFFDIRS.
a54e05f6 1034 rm -rf proto-toplev ; mkdir proto-toplev
7f9cb3b2
KR
1035 set -e ; dirs="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \
1036 p=" `echo $(DISTSTUFFDIRS)` " ; \
a54e05f6
KR
1037 for d in $$dirs ; do \
1038 if [ -d $$d ]; then \
7f9cb3b2
KR
1039 case " $$p " in \
1040 *" $$d "*) \
1041 echo making diststuff in $$d ; \
5600fbd2 1042 (cd $$d ; $(MAKE) diststuff) || exit 1 ;; \
a54e05f6 1043 esac ; \
7f9cb3b2
KR
1044 if [ -d $$d/proto-$$d.dir ]; then \
1045 ln -s ../$$d/proto-$$d.dir proto-toplev/$$d ; \
1046 else \
1047 ln -s ../$$d proto-toplev/$$d ; \
1048 fi ; \
a54e05f6 1049 else ln -s ../$$d proto-toplev/$$d ; fi ; \
40e16078 1050 done
5600fbd2 1051 $(MAKE) distclean
a54e05f6 1052 #
40e16078
KR
1053 mkdir proto-toplev/etc
1054 (cd proto-toplev/etc; for i in $(ETC_SUPPORT); do \
1055 ln -s ../../etc/$$i . ; \
1056 done)
a54e05f6 1057 #
40e16078
KR
1058 # Take out texinfo and glob from configurable dirs
1059 rm proto-toplev/configure.in
1060 sed -e '/^host_tools=/s/texinfo //' \
1061 -e '/^host_libs=/s/glob //' \
1062 <configure.in >proto-toplev/configure.in
a54e05f6 1063 #
40e16078
KR
1064 # Take out texinfo from a few places; make simple BISON=bison line.
1065 rm proto-toplev/Makefile.in
1066 sed -e '/^all\.normal: /s/\all-texinfo //' \
1067 -e '/^ install-texinfo /d' \
1068 -e '/^BISON = /,/^$$/d' \
1069 -e '/^# BISON:/s/.*/BISON = bison -y/' \
1070 <Makefile.in >proto-toplev/Makefile.in
a54e05f6 1071 #
40e16078
KR
1072 mkdir proto-toplev/texinfo
1073 ln -s ../../texinfo/texinfo.tex proto-toplev/texinfo/
7f9cb3b2 1074 ln -s ../../texinfo/gpl.texinfo proto-toplev/texinfo/
40e16078 1075 ln -s ../../texinfo/tex3patch proto-toplev/texinfo/
a561909f 1076 chmod og=u `find . -print`
7f9cb3b2 1077 (VER=`sed <$(TOOL)/Makefile.in -n 's/^VERSION *= *//p'`; \
1d2bb445 1078 echo "==> Making $(TOOL)-$$VER.tar.gz"; \
a59b94d2 1079 rm -f $(TOOL)-$$VER; ln -s proto-toplev $(TOOL)-$$VER; \
40e16078 1080 tar cfh - $(TOOL)-$$VER \
96bfa612 1081 | $(GZIP) -v -9 >$(TOOL)-$$VER.tar.gz)
40e16078 1082
7f9cb3b2
KR
1083TEXINFO_SUPPORT= texinfo/texinfo.tex texinfo/gpl.texinfo
1084DIST_SUPPORT= $(DEVO_SUPPORT) $(TEXINFO_SUPPORT)
40e16078 1085
96bfa612 1086.PHONY: gas.tar.gz
7f9cb3b2 1087GAS_SUPPORT_DIRS= bfd include libiberty opcodes
96bfa612 1088gas.tar.gz: $(DIST_SUPPORT) $(GAS_SUPPORT_DIRS) gas
40e16078
KR
1089 $(MAKE) -f Makefile.in taz SUPPORT_FILES="$(GAS_SUPPORT_DIRS)" TOOL=gas
1090
7f9cb3b2 1091# The FSF "binutils" release includes gprof and ld.
96bfa612 1092.PHONY: binutils.tar.gz
7f9cb3b2 1093BINUTILS_SUPPORT_DIRS= bfd include libiberty opcodes ld gprof
96bfa612 1094binutils.tar.gz: $(DIST_SUPPORT) $(BINUTILS_SUPPORT_DIRS) binutils
7f9cb3b2
KR
1095 $(MAKE) -f Makefile.in taz SUPPORT_FILES="$(BINUTILS_SUPPORT_DIRS)" TOOL=binutils
1096
96bfa612 1097.PHONY: gas+binutils.tar.gz
a54e05f6 1098GASB_SUPPORT_DIRS= $(GAS_SUPPORT_DIRS) binutils ld gprof
96bfa612 1099gas+binutils.tar.gz: $(DIST_SUPPORT) $(GASB_SUPPORT_DIRS) gas
394ad658 1100 $(MAKE) -f Makefile.in taz SUPPORT_FILES="$(GASB_SUPPORT_DIRS)" TOOL=gas
79337c85 1101
5600fbd2 1102.PHONY: libg++.tar.gz
a561909f 1103LIBGXX_SUPPORT_DIRS=include libiberty xiberty
5600fbd2
PB
1104libg++.tar.gz: $(DIST_SUPPORT) libg++
1105 $(MAKE) -f Makefile.in taz SUPPORT_FILES="$(LIBGXX_SUPPORT_DIRS)" TOOL=libg++
1106
79337c85
ILT
1107.NOEXPORT:
1108MAKEOVERRIDES=
1109
1110# start-sanitize-chill
1111## This is ugly, but I don't want GNU make to put these variables in
1112## the environment. Older makes will see this as a set of targets
1113## with no dependencies and no actions.
1114unexport CHILLFLAGS CHILL_LIB CHILL_FOR_TARGET :
1115# end-sanitize-chill
1116
eb02fd64 1117# end of Makefile.in
This page took 0.218841 seconds and 4 git commands to generate.