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