Name change for DJ
[deliverable/binutils-gdb.git] / Makefile.in
CommitLineData
eb02fd64 1#
131a3881 2# Makefile for directory with subdirs to build.
4dfe09da 3# Copyright (C) 1990, 1991 Cygnus Support
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
4d714963
RP
24datadir = $(prefix)/lib
25bindir = $(prefix)/bin
26libdir = $(prefix)/lib
27mandir = $(datadir)/man
28man1dir = $(mandir)/man1
29man2dir = $(mandir)/man2
30man3dir = $(mandir)/man3
31man4dir = $(mandir)/man4
32man5dir = $(mandir)/man5
33man6dir = $(mandir)/man6
34man7dir = $(mandir)/man7
35man8dir = $(mandir)/man8
36man9dir = $(mandir)/man9
c466cfab 37infodir = $(datadir)/info
4d714963
RP
38includedir = $(prefix)/include
39docdir = $(datadir)/doc
40
41SHELL = /bin/sh
42
43INSTALL = install -c
44INSTALL_PROGRAM = $(INSTALL)
45INSTALL_DATA = $(INSTALL)
3c8735af 46
ec342d7d 47AR = ar
ba8abfce 48AR_FLAGS = qc
4d714963 49RANLIB = ranlib
eb02fd64 50
77806c3e
RP
51BISON = `if [ -d $${rootme}/bison ] ; \
52 then echo $${rootme}/bison/bison -L $${rootme}/bison/ -y ; \
23e3e7f9 53 else echo bison -y ; fi`
2645fb0c 54
77806c3e
RP
55MAKEINFO = `if [ -d $${rootme}/texinfo/C ] ; \
56 then echo $${rootme}/texinfo/C/makeinfo ; \
57 else echo makeinfo ; fi`
b772d75e 58
ba8abfce 59SUBDIRS = libiberty glob readline bfd gdb binutils ld gas gcc libg++ gnulib clib
6a3958b2
RP
60OTHERS =
61
a0f47eb7 62ALL = all.normal
b26ff9d8 63INSTALL_TARGET = install.all
fb660409
RP
64
65### for debugging
66#GCCVERBOSE=-v
67
23e3e7f9 68
eb02fd64 69#### host and target specific makefile fragments come in here.
ec342d7d 70###
eb02fd64 71
4d714963
RP
72.PHONY: all info install-info clean-info
73
a0f47eb7 74all: $(ALL)
4d714963 75
12682548 76info: cfg-paper.info
77806c3e 77 rootme=`pwd` ; export rootme ; $(MAKE) subdir_do DO=info "DODIRS=$(SUBDIRS)" "MAKEINFO=$(MAKEINFO)"
c5f94070 78
25113b46
RP
79clean-info:
80 $(MAKE) subdir_do DO=clean-info "DODIRS=$(SUBDIRS)"
81 rm -f cfg-paper.info
82
12682548 83cfg-paper.info: cfg-paper.texi
77806c3e 84 rootme=`pwd` ; export rootme ; $(MAKEINFO) -o cfg-paper.info $(srcdir)/cfg-paper.texi
12682548 85
8f861f08 86configure.info: configure.texi
77806c3e 87 rootme=`pwd` ; export rootme ; $(MAKEINFO) -o configure.info $(srcdir)/configure.texi
8f861f08 88
9a9e8e7f 89install-info: install-info-dirs force
c5f94070 90 $(MAKE) subdir_do DO=install-info "DODIRS=$(SUBDIRS)"
12682548 91 $(INSTALL_DATA) cfg-paper.info $(infodir)/cfg-paper.info
bcdbe02f 92 $(INSTALL_DATA) configure.info $(infodir)/configure.info
9a9e8e7f
RP
93 $(MAKE) dir.info install-dir.info
94
95install-dir.info:
96 $(INSTALL_DATA) dir.info $(infodir)/dir.info
4d714963
RP
97
98# clib prms
ba8abfce
JG
99# all-gnulib
100all.normal: all-texinfo all-bison all-byacc all-flex all-ld \
77806c3e 101 all-gas all-gcc all-binutils \
7c9feeb7 102 all-libg++ all-gdb all-make all-cvs all-patch all-emacs all-ispell all-fileutils
b26ff9d8 103all.cross: all-bison all-ld all-gnulib all-gdb
4d714963
RP
104# $(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS) $(OTHERS)"
105
25113b46
RP
106clean: clean-libiberty clean-texinfo clean-bfd clean-binutils \
107 clean-bison clean-byacc clean-flex clean-ld clean-gas \
108 clean-gcc clean-gnulib clean-readline clean-glob clean-gdb \
109 clean-make clean-diff clean-grep clean-rcs clean-gdbm \
7c9feeb7 110 clean-cvs clean-patch clean-emacs clean-ispell clean-fileutils
4d714963
RP
111 rm -rf *.a TEMP errs core *.o *~ \#* TAGS *.E
112
ba8abfce
JG
113install: $(INSTALL_TARGET) $(srcdir)/configure.man
114 $(INSTALL_DATA) $(srcdir)/configure.man $(man1dir)/configure.1
b26ff9d8 115
25113b46
RP
116install.all: install-dirs install-libiberty install-texinfo \
117 install-binutils install-bison install-byacc install-flex \
118 install-ld install-gas install-gcc install-gnulib \
119 install-readline install-glob install-gdb install-make \
7c9feeb7 120 install-cvs install-patch install-emacs install-ispell install-fileutils
b26ff9d8
RP
121install.cross: install-dirs install-libiberty install-binutils install-bison \
122 install-byacc install-ld install-gas install-gnulib \
123 install-readline install-glob install-gdb
23e3e7f9 124
4d714963
RP
125### libiberty
126.PHONY: all-libiberty just-libiberty
127all-libiberty: just-libiberty
128just-libiberty: force
b26ff9d8 129 if [ -d $(unsubdir)/libiberty ] ; then \
77806c3e 130 rootme=`pwd` ; export rootme ; \
b26ff9d8 131 (cd $(unsubdir)/libiberty$(subdir); \
4d714963
RP
132 $(MAKE) \
133 "against=$(against)" \
134 "AR=$(AR)" \
135 "AR_FLAGS=$(AR_FLAGS)" \
136 "CC=$(CC)" \
137 "RANLIB=$(RANLIB)" \
138 "LOADLIBES=$(LOADLIBES)" \
139 "LDFLAGS=$(LDFLAGS)" \
140 "BISON=$(BISON)" \
141 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
142 all) ; \
143 else \
144 true ; \
145 fi
4d714963
RP
146
147clean-libiberty: force
b26ff9d8 148 if [ -d $(unsubdir)/libiberty ] ; then \
77806c3e 149 rootme=`pwd` ; export rootme ; \
b26ff9d8 150 (cd $(unsubdir)/libiberty$(subdir); \
4d714963
RP
151 $(MAKE) \
152 "against=$(against)" \
153 "AR=$(AR)" \
154 "AR_FLAGS=$(AR_FLAGS)" \
155 "CC=$(CC)" \
156 "RANLIB=$(RANLIB)" \
157 "LOADLIBES=$(LOADLIBES)" \
158 "LDFLAGS=$(LDFLAGS)" \
159 "BISON=$(BISON)" \
160 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
161 clean) ; \
162 else \
163 true ; \
164 fi
4d714963
RP
165
166install-libiberty: force
b26ff9d8 167 if [ -d $(unsubdir)/libiberty ] ; then \
77806c3e 168 rootme=`pwd` ; export rootme ; \
b26ff9d8 169 (cd $(unsubdir)/libiberty$(subdir); \
4d714963
RP
170 $(MAKE) \
171 "against=$(against)" \
172 "AR=$(AR)" \
173 "AR_FLAGS=$(AR_FLAGS)" \
174 "CC=$(CC)" \
175 "RANLIB=$(RANLIB)" \
176 "LOADLIBES=$(LOADLIBES)" \
177 "LDFLAGS=$(LDFLAGS)" \
178 "BISON=$(BISON)" \
179 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
180 install) ; \
181 else \
182 true ; \
183 fi
23e3e7f9 184
4d714963
RP
185### texinfo
186.PHONY: all-texinfo just-texinfo
187all-texinfo: just-texinfo
188just-texinfo: just-libiberty force
b26ff9d8 189 if [ -d $(unsubdir)/texinfo ] ; then \
77806c3e
RP
190 rootme=`pwd` ; export rootme ; \
191 rootme=`pwd` ; export rootme ; \
b26ff9d8 192 (cd $(unsubdir)/texinfo$(subdir); \
4d714963
RP
193 $(MAKE) \
194 "against=$(against)" \
195 "AR=$(AR)" \
196 "AR_FLAGS=$(AR_FLAGS)" \
197 "CC=$(CC)" \
198 "RANLIB=$(RANLIB)" \
199 "LOADLIBES=$(LOADLIBES)" \
200 "LDFLAGS=$(LDFLAGS)" \
201 "BISON=$(BISON)" \
202 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
203 all) ; \
204 else \
205 true ; \
206 fi
4d714963
RP
207
208clean-texinfo: force
b26ff9d8 209 if [ -d $(unsubdir)/texinfo ] ; then \
77806c3e 210 rootme=`pwd` ; export rootme ; \
b26ff9d8 211 (cd $(unsubdir)/texinfo$(subdir); \
4d714963
RP
212 $(MAKE) \
213 "against=$(against)" \
214 "AR=$(AR)" \
215 "AR_FLAGS=$(AR_FLAGS)" \
216 "CC=$(CC)" \
217 "RANLIB=$(RANLIB)" \
218 "LOADLIBES=$(LOADLIBES)" \
219 "LDFLAGS=$(LDFLAGS)" \
220 "BISON=$(BISON)" \
221 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
222 clean) ; \
223 else \
224 true ; \
225 fi
4d714963
RP
226
227install-texinfo: force
b26ff9d8 228 if [ -d $(unsubdir)/texinfo ] ; then \
77806c3e 229 rootme=`pwd` ; export rootme ; \
b26ff9d8 230 (cd $(unsubdir)/texinfo$(subdir); \
4d714963
RP
231 $(MAKE) \
232 "against=$(against)" \
233 "AR=$(AR)" \
234 "AR_FLAGS=$(AR_FLAGS)" \
235 "CC=$(CC)" \
236 "RANLIB=$(RANLIB)" \
237 "LOADLIBES=$(LOADLIBES)" \
238 "LDFLAGS=$(LDFLAGS)" \
239 "BISON=$(BISON)" \
240 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
241 install) ; \
242 else \
243 true ; \
244 fi
23e3e7f9 245
4d714963
RP
246### bfd
247.PHONY: all-bfd just-bfd
248all-bfd: just-bfd
249just-bfd: force
b26ff9d8 250 if [ -d $(unsubdir)/bfd ] ; then \
77806c3e 251 rootme=`pwd` ; export rootme ; \
b26ff9d8 252 (cd $(unsubdir)/bfd$(subdir); \
4d714963
RP
253 $(MAKE) \
254 "against=$(against)" \
255 "AR=$(AR)" \
256 "AR_FLAGS=$(AR_FLAGS)" \
257 "CC=$(CC)" \
258 "RANLIB=$(RANLIB)" \
259 "LOADLIBES=$(LOADLIBES)" \
260 "LDFLAGS=$(LDFLAGS)" \
261 "BISON=$(BISON)" \
262 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
263 all) ; \
264 else \
265 true ; \
266 fi
4d714963
RP
267
268clean-bfd: force
b26ff9d8 269 if [ -d $(unsubdir)/bfd ] ; then \
77806c3e 270 rootme=`pwd` ; export rootme ; \
b26ff9d8 271 (cd $(unsubdir)/bfd$(subdir); \
4d714963
RP
272 $(MAKE) \
273 "against=$(against)" \
274 "AR=$(AR)" \
275 "AR_FLAGS=$(AR_FLAGS)" \
276 "CC=$(CC)" \
277 "RANLIB=$(RANLIB)" \
278 "LOADLIBES=$(LOADLIBES)" \
279 "LDFLAGS=$(LDFLAGS)" \
280 "BISON=$(BISON)" \
281 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
282 clean) ; \
283 else \
284 true ; \
285 fi
4d714963
RP
286
287install-bfd: force
b26ff9d8 288 if [ -d $(unsubdir)/bfd ] ; then \
77806c3e 289 rootme=`pwd` ; export rootme ; \
b26ff9d8 290 (cd $(unsubdir)/bfd$(subdir); \
4d714963
RP
291 $(MAKE) \
292 "against=$(against)" \
293 "AR=$(AR)" \
294 "AR_FLAGS=$(AR_FLAGS)" \
295 "CC=$(CC)" \
296 "RANLIB=$(RANLIB)" \
297 "LOADLIBES=$(LOADLIBES)" \
298 "LDFLAGS=$(LDFLAGS)" \
299 "BISON=$(BISON)" \
300 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
301 install) ; \
302 else \
303 true ; \
304 fi
23e3e7f9 305
4d714963
RP
306### binutils
307.PHONY: all-binutils just-binutils
308all-binutils: just-binutils
309just-binutils: just-libiberty just-bfd force
b26ff9d8 310 if [ -d $(unsubdir)/binutils ] ; then \
77806c3e 311 rootme=`pwd` ; export rootme ; \
b26ff9d8 312 (cd $(unsubdir)/binutils$(subdir); \
4d714963
RP
313 $(MAKE) \
314 "against=$(against)" \
315 "AR=$(AR)" \
316 "AR_FLAGS=$(AR_FLAGS)" \
317 "CC=$(CC)" \
318 "RANLIB=$(RANLIB)" \
319 "LOADLIBES=$(LOADLIBES)" \
320 "LDFLAGS=$(LDFLAGS)" \
321 "BISON=$(BISON)" \
322 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
323 all) ; \
324 else \
325 true ; \
326 fi
4d714963
RP
327
328clean-binutils: force
b26ff9d8 329 if [ -d $(unsubdir)/binutils ] ; then \
77806c3e 330 rootme=`pwd` ; export rootme ; \
b26ff9d8 331 (cd $(unsubdir)/binutils$(subdir); \
4d714963
RP
332 $(MAKE) \
333 "against=$(against)" \
334 "AR=$(AR)" \
335 "AR_FLAGS=$(AR_FLAGS)" \
336 "CC=$(CC)" \
337 "RANLIB=$(RANLIB)" \
338 "LOADLIBES=$(LOADLIBES)" \
339 "LDFLAGS=$(LDFLAGS)" \
340 "BISON=$(BISON)" \
341 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
342 clean) ; \
343 else \
344 true ; \
345 fi
4d714963
RP
346
347install-binutils: force
b26ff9d8 348 if [ -d $(unsubdir)/binutils ] ; then \
77806c3e 349 rootme=`pwd` ; export rootme ; \
b26ff9d8 350 (cd $(unsubdir)/binutils$(subdir); \
4d714963
RP
351 $(MAKE) \
352 "against=$(against)" \
353 "AR=$(AR)" \
354 "AR_FLAGS=$(AR_FLAGS)" \
355 "CC=$(CC)" \
356 "RANLIB=$(RANLIB)" \
357 "LOADLIBES=$(LOADLIBES)" \
358 "LDFLAGS=$(LDFLAGS)" \
359 "BISON=$(BISON)" \
360 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
361 install) ; \
362 else \
363 true ; \
364 fi
23e3e7f9 365
4d714963
RP
366### byacc
367.PHONY: all-byacc just-byacc
368all-byacc: just-byacc
369just-byacc: force
b26ff9d8 370 if [ -d $(unsubdir)/byacc ] ; then \
77806c3e 371 rootme=`pwd` ; export rootme ; \
b26ff9d8 372 (cd $(unsubdir)/byacc$(subdir); \
4d714963
RP
373 $(MAKE) \
374 "against=$(against)" \
375 "AR=$(AR)" \
376 "AR_FLAGS=$(AR_FLAGS)" \
377 "CC=$(CC)" \
378 "RANLIB=$(RANLIB)" \
379 "LOADLIBES=$(LOADLIBES)" \
380 "LDFLAGS=$(LDFLAGS)" \
381 "BISON=$(BISON)" \
382 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
383 all) ; \
384 else \
385 true ; \
386 fi
4d714963
RP
387
388clean-byacc: force
b26ff9d8 389 if [ -d $(unsubdir)/byacc ] ; then \
77806c3e 390 rootme=`pwd` ; export rootme ; \
b26ff9d8 391 (cd $(unsubdir)/byacc$(subdir); \
4d714963
RP
392 $(MAKE) \
393 "against=$(against)" \
394 "AR=$(AR)" \
395 "AR_FLAGS=$(AR_FLAGS)" \
396 "CC=$(CC)" \
397 "RANLIB=$(RANLIB)" \
398 "LOADLIBES=$(LOADLIBES)" \
399 "LDFLAGS=$(LDFLAGS)" \
400 "BISON=$(BISON)" \
401 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
402 clean) ; \
403 else \
404 true ; \
405 fi
4d714963
RP
406
407install-byacc: force
b26ff9d8 408 if [ -d $(unsubdir)/byacc ] ; then \
77806c3e 409 rootme=`pwd` ; export rootme ; \
b26ff9d8 410 (cd $(unsubdir)/byacc$(subdir); \
4d714963
RP
411 $(MAKE) \
412 "against=$(against)" \
413 "AR=$(AR)" \
414 "AR_FLAGS=$(AR_FLAGS)" \
415 "CC=$(CC)" \
416 "RANLIB=$(RANLIB)" \
417 "LOADLIBES=$(LOADLIBES)" \
418 "LDFLAGS=$(LDFLAGS)" \
419 "BISON=$(BISON)" \
420 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
421 install) ; \
422 else \
423 true ; \
424 fi
23e3e7f9 425
4d714963
RP
426### bison
427.PHONY: all-bison just-bison
428all-bison: just-bison
429just-bison: just-libiberty force
b26ff9d8 430 if [ -d $(unsubdir)/bison ] ; then \
77806c3e 431 rootme=`pwd` ; export rootme ; \
b26ff9d8 432 (cd $(unsubdir)/bison$(subdir); \
4d714963
RP
433 $(MAKE) \
434 "against=$(against)" \
435 "AR=$(AR)" \
436 "AR_FLAGS=$(AR_FLAGS)" \
437 "CC=$(CC)" \
438 "RANLIB=$(RANLIB)" \
439 "LOADLIBES=$(LOADLIBES)" \
440 "LDFLAGS=$(LDFLAGS)" \
441 "BISON=$(BISON)" \
442 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
443 all) ; \
444 else \
445 true ; \
446 fi
4d714963
RP
447
448clean-bison: force
b26ff9d8 449 if [ -d $(unsubdir)/bison ] ; then \
77806c3e 450 rootme=`pwd` ; export rootme ; \
b26ff9d8 451 (cd $(unsubdir)/bison$(subdir); \
4d714963
RP
452 $(MAKE) \
453 "against=$(against)" \
454 "AR=$(AR)" \
455 "AR_FLAGS=$(AR_FLAGS)" \
456 "CC=$(CC)" \
457 "RANLIB=$(RANLIB)" \
458 "LOADLIBES=$(LOADLIBES)" \
459 "LDFLAGS=$(LDFLAGS)" \
460 "BISON=$(BISON)" \
461 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
462 clean) ; \
463 else \
464 true ; \
465 fi
4d714963
RP
466
467install-bison: force
b26ff9d8 468 if [ -d $(unsubdir)/bison ] ; then \
77806c3e 469 rootme=`pwd` ; export rootme ; \
b26ff9d8 470 (cd $(unsubdir)/bison$(subdir); \
4d714963
RP
471 $(MAKE) \
472 "against=$(against)" \
473 "AR=$(AR)" \
474 "AR_FLAGS=$(AR_FLAGS)" \
475 "CC=$(CC)" \
476 "RANLIB=$(RANLIB)" \
477 "LOADLIBES=$(LOADLIBES)" \
478 "LDFLAGS=$(LDFLAGS)" \
479 "BISON=$(BISON)" \
480 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
481 install) ; \
482 else \
483 true ; \
484 fi
23e3e7f9 485
4d714963
RP
486### gcc
487.PHONY: all-gcc just-gcc
488all-gcc: just-gcc
ba8abfce 489#just-gcc: just-libiberty just-bison just-gnulib1 force
77806c3e 490just-gcc: just-libiberty just-bison just-gas force
b26ff9d8 491 if [ -d $(unsubdir)/gcc ] ; then \
77806c3e 492 rootme=`pwd` ; export rootme ; \
b26ff9d8 493 (cd $(unsubdir)/gcc$(subdir); \
4d714963
RP
494 $(MAKE) \
495 "against=$(against)" \
496 "AR=$(AR)" \
497 "AR_FLAGS=$(AR_FLAGS)" \
498 "CC=$(CC)" \
499 "RANLIB=$(RANLIB)" \
500 "LOADLIBES=$(LOADLIBES)" \
501 "LDFLAGS=$(LDFLAGS)" \
502 "BISON=$(BISON)" \
503 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
504 all) ; \
505 else \
506 true ; \
507 fi
4d714963
RP
508
509clean-gcc: force
b26ff9d8 510 if [ -d $(unsubdir)/gcc ] ; then \
77806c3e 511 rootme=`pwd` ; export rootme ; \
b26ff9d8 512 (cd $(unsubdir)/gcc$(subdir); \
4d714963
RP
513 $(MAKE) \
514 "against=$(against)" \
515 "AR=$(AR)" \
516 "AR_FLAGS=$(AR_FLAGS)" \
517 "CC=$(CC)" \
518 "RANLIB=$(RANLIB)" \
519 "LOADLIBES=$(LOADLIBES)" \
520 "LDFLAGS=$(LDFLAGS)" \
521 "BISON=$(BISON)" \
522 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
523 clean) ; \
524 else \
525 true ; \
526 fi
4d714963
RP
527
528install-gcc:
b26ff9d8 529 if [ -d $(unsubdir)/gcc ] ; then \
77806c3e 530 rootme=`pwd` ; export rootme ; \
b26ff9d8 531 (cd $(unsubdir)/gcc$(subdir); \
4d714963
RP
532 $(MAKE) \
533 "against=$(against)" \
534 "AR=$(AR)" \
535 "AR_FLAGS=$(AR_FLAGS)" \
536 "CC=$(CC)" \
537 "RANLIB=$(RANLIB)" \
538 "LOADLIBES=$(LOADLIBES)" \
539 "LDFLAGS=$(LDFLAGS)" \
540 "BISON=$(BISON)" \
541 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
542 install) ; \
543 else \
544 true ; \
545 fi
23e3e7f9 546
4d714963
RP
547### readline
548.PHONY: all-readline just-readline
549all-readline: just-readline
550just-readline: force
b26ff9d8 551 if [ -d $(unsubdir)/readline ] ; then \
77806c3e 552 rootme=`pwd` ; export rootme ; \
b26ff9d8 553 (cd $(unsubdir)/readline$(subdir); \
4d714963
RP
554 $(MAKE) \
555 "against=$(against)" \
556 "AR=$(AR)" \
557 "AR_FLAGS=$(AR_FLAGS)" \
558 "CC=$(CC)" \
559 "RANLIB=$(RANLIB)" \
560 "LOADLIBES=$(LOADLIBES)" \
561 "LDFLAGS=$(LDFLAGS)" \
562 "BISON=$(BISON)" \
563 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
564 all) ; \
565 else \
566 true ; \
567 fi
4d714963
RP
568
569clean-readline: force
b26ff9d8 570 if [ -d $(unsubdir)/readline ] ; then \
77806c3e 571 rootme=`pwd` ; export rootme ; \
b26ff9d8 572 (cd $(unsubdir)/readline$(subdir); \
4d714963
RP
573 $(MAKE) \
574 "against=$(against)" \
575 "AR=$(AR)" \
576 "AR_FLAGS=$(AR_FLAGS)" \
577 "CC=$(CC)" \
578 "RANLIB=$(RANLIB)" \
579 "LOADLIBES=$(LOADLIBES)" \
580 "LDFLAGS=$(LDFLAGS)" \
581 "BISON=$(BISON)" \
582 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
583 clean) ; \
584 else \
585 true ; \
586 fi
4d714963
RP
587
588install-readline: force
b26ff9d8 589 if [ -d $(unsubdir)/readline ] ; then \
77806c3e 590 rootme=`pwd` ; export rootme ; \
b26ff9d8 591 (cd $(unsubdir)/readline$(subdir); \
4d714963
RP
592 $(MAKE) \
593 "against=$(against)" \
594 "AR=$(AR)" \
595 "AR_FLAGS=$(AR_FLAGS)" \
596 "CC=$(CC)" \
597 "RANLIB=$(RANLIB)" \
598 "LOADLIBES=$(LOADLIBES)" \
599 "LDFLAGS=$(LDFLAGS)" \
600 "BISON=$(BISON)" \
601 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
602 install) ; \
603 else \
604 true ; \
605 fi
23e3e7f9 606
4d714963
RP
607### glob
608.PHONY: all-glob just-glob
609all-glob: just-glob
610just-glob: force
b26ff9d8 611 if [ -d $(unsubdir)/glob ] ; then \
77806c3e 612 rootme=`pwd` ; export rootme ; \
b26ff9d8 613 (cd $(unsubdir)/glob$(subdir); \
4d714963
RP
614 $(MAKE) \
615 "against=$(against)" \
616 "AR=$(AR)" \
617 "AR_FLAGS=$(AR_FLAGS)" \
618 "CC=$(CC)" \
619 "RANLIB=$(RANLIB)" \
620 "LOADLIBES=$(LOADLIBES)" \
621 "LDFLAGS=$(LDFLAGS)" \
622 "BISON=$(BISON)" \
623 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
624 all) ; \
625 else \
626 true ; \
627 fi
4d714963
RP
628
629clean-glob: force
b26ff9d8 630 if [ -d $(unsubdir)/glob ] ; then \
77806c3e 631 rootme=`pwd` ; export rootme ; \
b26ff9d8 632 (cd $(unsubdir)/glob$(subdir); \
4d714963
RP
633 $(MAKE) \
634 "against=$(against)" \
635 "AR=$(AR)" \
636 "AR_FLAGS=$(AR_FLAGS)" \
637 "CC=$(CC)" \
638 "RANLIB=$(RANLIB)" \
639 "LOADLIBES=$(LOADLIBES)" \
640 "LDFLAGS=$(LDFLAGS)" \
641 "BISON=$(BISON)" \
642 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
643 clean) ; \
644 else \
645 true ; \
646 fi
4d714963
RP
647
648install-glob: force
b26ff9d8 649 if [ -d $(unsubdir)/glob ] ; then \
77806c3e 650 rootme=`pwd` ; export rootme ; \
b26ff9d8 651 (cd $(unsubdir)/glob$(subdir); \
4d714963
RP
652 $(MAKE) \
653 "against=$(against)" \
654 "AR=$(AR)" \
655 "AR_FLAGS=$(AR_FLAGS)" \
656 "CC=$(CC)" \
657 "RANLIB=$(RANLIB)" \
658 "LOADLIBES=$(LOADLIBES)" \
659 "LDFLAGS=$(LDFLAGS)" \
660 "BISON=$(BISON)" \
661 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
662 install) ; \
663 else \
664 true ; \
665 fi
23e3e7f9 666
4d714963
RP
667### gas
668.PHONY: all-gas just-gas
669all-gas: just-gas
670just-gas: just-libiberty just-bfd force
b26ff9d8 671 if [ -d $(unsubdir)/gas ] ; then \
77806c3e 672 rootme=`pwd` ; export rootme ; \
b26ff9d8 673 (cd $(unsubdir)/gas$(subdir); \
4d714963
RP
674 $(MAKE) \
675 "against=$(against)" \
676 "AR=$(AR)" \
677 "AR_FLAGS=$(AR_FLAGS)" \
678 "CC=$(CC)" \
679 "RANLIB=$(RANLIB)" \
680 "LOADLIBES=$(LOADLIBES)" \
681 "LDFLAGS=$(LDFLAGS)" \
682 "BISON=$(BISON)" \
683 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
684 all) ; \
685 else \
686 true ; \
687 fi
4d714963
RP
688
689clean-gas: force
b26ff9d8 690 if [ -d $(unsubdir)/gas ] ; then \
77806c3e 691 rootme=`pwd` ; export rootme ; \
b26ff9d8 692 (cd $(unsubdir)/gas$(subdir); \
4d714963
RP
693 $(MAKE) \
694 "against=$(against)" \
695 "AR=$(AR)" \
696 "AR_FLAGS=$(AR_FLAGS)" \
697 "CC=$(CC)" \
698 "RANLIB=$(RANLIB)" \
699 "LOADLIBES=$(LOADLIBES)" \
700 "LDFLAGS=$(LDFLAGS)" \
701 "BISON=$(BISON)" \
702 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
703 clean) ; \
704 else \
705 true ; \
706 fi
4d714963
RP
707
708install-gas: force
b26ff9d8 709 if [ -d $(unsubdir)/gas ] ; then \
77806c3e 710 rootme=`pwd` ; export rootme ; \
b26ff9d8 711 (cd $(unsubdir)/gas$(subdir); \
4d714963
RP
712 $(MAKE) \
713 "against=$(against)" \
714 "AR=$(AR)" \
715 "AR_FLAGS=$(AR_FLAGS)" \
716 "CC=$(CC)" \
717 "RANLIB=$(RANLIB)" \
718 "LOADLIBES=$(LOADLIBES)" \
719 "LDFLAGS=$(LDFLAGS)" \
720 "BISON=$(BISON)" \
721 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
722 install) ; \
723 else \
724 true ; \
725 fi
23e3e7f9 726
4d714963
RP
727### ld
728.PHONY: all-ld just-ld
729all-ld: just-ld
e9712bee 730just-ld: just-libiberty just-bfd just-bison force
b26ff9d8 731 if [ -d $(unsubdir)/ld ] ; then \
77806c3e 732 rootme=`pwd` ; export rootme ; \
b26ff9d8 733 (cd $(unsubdir)/ld$(subdir); \
4d714963
RP
734 $(MAKE) \
735 "against=$(against)" \
736 "AR=$(AR)" \
737 "AR_FLAGS=$(AR_FLAGS)" \
738 "CC=$(CC)" \
739 "RANLIB=$(RANLIB)" \
740 "LOADLIBES=$(LOADLIBES)" \
741 "LDFLAGS=$(LDFLAGS)" \
742 "BISON=$(BISON)" \
743 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
744 all) ; \
745 else \
746 true ; \
747 fi
a0f47eb7 748
4d714963 749clean-ld: force
b26ff9d8 750 if [ -d $(unsubdir)/ld ] ; then \
77806c3e 751 rootme=`pwd` ; export rootme ; \
b26ff9d8 752 (cd $(unsubdir)/ld$(subdir); \
4d714963
RP
753 $(MAKE) \
754 "against=$(against)" \
755 "AR=$(AR)" \
756 "AR_FLAGS=$(AR_FLAGS)" \
757 "CC=$(CC)" \
758 "RANLIB=$(RANLIB)" \
759 "LOADLIBES=$(LOADLIBES)" \
760 "LDFLAGS=$(LDFLAGS)" \
761 "BISON=$(BISON)" \
762 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
763 clean) ; \
764 else \
765 true ; \
766 fi
6a3958b2 767
4d714963 768install-ld: force
b26ff9d8 769 if [ -d $(unsubdir)/ld ] ; then \
77806c3e 770 rootme=`pwd` ; export rootme ; \
b26ff9d8 771 (cd $(unsubdir)/ld$(subdir); \
4d714963
RP
772 $(MAKE) \
773 "against=$(against)" \
774 "AR=$(AR)" \
775 "AR_FLAGS=$(AR_FLAGS)" \
776 "CC=$(CC)" \
777 "RANLIB=$(RANLIB)" \
778 "LOADLIBES=$(LOADLIBES)" \
779 "LDFLAGS=$(LDFLAGS)" \
780 "BISON=$(BISON)" \
781 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
782 install) ; \
783 else \
784 true ; \
785 fi
23e3e7f9 786
12682548
RP
787### gnulib (and gnulib1)
788.PHONY: all-gnulib just-gnulib1 just-gnulib
789just-gnulib1: all-gas all-binutils force
790 if [ -d $(unsubdir)/gnulib ] ; then \
77806c3e 791 rootme=`pwd` ; export rootme ; \
12682548
RP
792 (cd $(unsubdir)/gnulib$(subdir); \
793 $(MAKE) \
794 "against=$(against)" \
795 "AR=$(AR)" \
796 "AR_FLAGS=$(AR_FLAGS)" \
797 "CC=$(CC)" \
798 "RANLIB=$(RANLIB)" \
799 "LOADLIBES=$(LOADLIBES)" \
800 "LDFLAGS=$(LDFLAGS)" \
801 "BISON=$(BISON)" \
802 "MAKEINFO=$(MAKEINFO)" \
803 gnulib1.a) ; \
804 else \
805 true ; \
806 fi
807
808clean-gnulib1: force
809 if [ -d $(unsubdir)/gnulib ] ; then \
77806c3e 810 rootme=`pwd` ; export rootme ; \
12682548
RP
811 (cd $(unsubdir)/gnulib$(subdir); \
812 $(MAKE) \
813 "against=$(against)" \
814 "AR=$(AR)" \
815 "AR_FLAGS=$(AR_FLAGS)" \
816 "CC=$(CC)" \
817 "RANLIB=$(RANLIB)" \
818 "LOADLIBES=$(LOADLIBES)" \
819 "LDFLAGS=$(LDFLAGS)" \
820 "BISON=$(BISON)" \
821 "MAKEINFO=$(MAKEINFO)" \
822 clean-gnulib1) ; \
823 else \
824 true ; \
825 fi
826
827install-gnulib1: force
828 echo gnulib1 is a component, not an installable target
829
4d714963 830all-gnulib: just-gnulib
77806c3e 831just-gnulib: all-gas all-gcc all-binutils force
ba8abfce 832 true
b26ff9d8 833 if [ -d $(unsubdir)/gnulib ] ; then \
77806c3e 834 rootme=`pwd` ; export rootme ; \
b26ff9d8 835 (cd $(unsubdir)/gnulib$(subdir); \
4d714963
RP
836 $(MAKE) \
837 "against=$(against)" \
838 "AR=$(AR)" \
839 "AR_FLAGS=$(AR_FLAGS)" \
840 "CC=$(CC)" \
841 "RANLIB=$(RANLIB)" \
842 "LOADLIBES=$(LOADLIBES)" \
843 "LDFLAGS=$(LDFLAGS)" \
844 "BISON=$(BISON)" \
845 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
846 all) ; \
847 else \
848 true ; \
849 fi
c5f94070 850
4d714963 851clean-gnulib: force
b26ff9d8 852 if [ -d $(unsubdir)/gnulib ] ; then \
77806c3e 853 rootme=`pwd` ; export rootme ; \
b26ff9d8 854 (cd $(unsubdir)/gnulib$(subdir); \
4d714963
RP
855 $(MAKE) \
856 "against=$(against)" \
857 "AR=$(AR)" \
858 "AR_FLAGS=$(AR_FLAGS)" \
859 "CC=$(CC)" \
860 "RANLIB=$(RANLIB)" \
861 "LOADLIBES=$(LOADLIBES)" \
862 "LDFLAGS=$(LDFLAGS)" \
863 "BISON=$(BISON)" \
864 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
865 clean) ; \
866 else \
867 true ; \
868 fi
4d714963
RP
869
870install-gnulib: force
b26ff9d8 871 if [ -d $(unsubdir)/gnulib ] ; then \
77806c3e 872 rootme=`pwd` ; export rootme ; \
b26ff9d8 873 (cd $(unsubdir)/gnulib$(subdir); \
4d714963
RP
874 $(MAKE) \
875 "against=$(against)" \
876 "AR=$(AR)" \
877 "AR_FLAGS=$(AR_FLAGS)" \
878 "CC=$(CC)" \
879 "RANLIB=$(RANLIB)" \
880 "LOADLIBES=$(LOADLIBES)" \
881 "LDFLAGS=$(LDFLAGS)" \
882 "BISON=$(BISON)" \
883 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
884 install) ; \
885 else \
886 true ; \
887 fi
23e3e7f9 888
4d714963
RP
889### gdb
890.PHONY: all-gdb just-gdb
891all-gdb: just-gdb
e9712bee 892just-gdb: just-bfd just-libiberty just-readline just-glob just-bison force
b26ff9d8 893 if [ -d $(unsubdir)/gdb ] ; then \
77806c3e 894 rootme=`pwd` ; export rootme ; \
b26ff9d8 895 (cd $(unsubdir)/gdb$(subdir); \
4d714963
RP
896 $(MAKE) \
897 "against=$(against)" \
898 "AR=$(AR)" \
899 "AR_FLAGS=$(AR_FLAGS)" \
900 "CC=$(CC)" \
901 "RANLIB=$(RANLIB)" \
902 "LOADLIBES=$(LOADLIBES)" \
903 "LDFLAGS=$(LDFLAGS)" \
904 "BISON=$(BISON)" \
905 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
906 all) ; \
907 else \
908 true ; \
909 fi
4d714963
RP
910
911clean-gdb: force
b26ff9d8 912 if [ -d $(unsubdir)/gdb ] ; then \
77806c3e 913 rootme=`pwd` ; export rootme ; \
b26ff9d8 914 (cd $(unsubdir)/gdb$(subdir); \
4d714963
RP
915 $(MAKE) \
916 "against=$(against)" \
917 "AR=$(AR)" \
918 "AR_FLAGS=$(AR_FLAGS)" \
919 "CC=$(CC)" \
920 "RANLIB=$(RANLIB)" \
921 "LOADLIBES=$(LOADLIBES)" \
922 "LDFLAGS=$(LDFLAGS)" \
923 "BISON=$(BISON)" \
924 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
925 clean) ; \
926 else \
927 true ; \
928 fi
4d714963
RP
929
930install-gdb: force
b26ff9d8 931 if [ -d $(unsubdir)/gdb ] ; then \
77806c3e 932 rootme=`pwd` ; export rootme ; \
b26ff9d8 933 (cd $(unsubdir)/gdb$(subdir); \
4d714963
RP
934 $(MAKE) \
935 "against=$(against)" \
936 "AR=$(AR)" \
937 "AR_FLAGS=$(AR_FLAGS)" \
938 "CC=$(CC)" \
939 "RANLIB=$(RANLIB)" \
940 "LOADLIBES=$(LOADLIBES)" \
941 "LDFLAGS=$(LDFLAGS)" \
942 "BISON=$(BISON)" \
943 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
944 install) ; \
945 else \
946 true ; \
947 fi
23e3e7f9 948
4d714963
RP
949### make
950.PHONY: all-make just-make
951all-make: just-make
952just-make: all-libiberty force
b26ff9d8 953 if [ -d $(unsubdir)/make ] ; then \
77806c3e 954 rootme=`pwd` ; export rootme ; \
b26ff9d8 955 (cd $(unsubdir)/make$(subdir); \
4d714963
RP
956 $(MAKE) \
957 "against=$(against)" \
958 "AR=$(AR)" \
959 "AR_FLAGS=$(AR_FLAGS)" \
960 "CC=$(CC)" \
961 "RANLIB=$(RANLIB)" \
962 "LOADLIBES=$(LOADLIBES)" \
963 "LDFLAGS=$(LDFLAGS)" \
964 "BISON=$(BISON)" \
965 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
966 all) ; \
967 else \
968 true ; \
969 fi
4d714963
RP
970
971clean-make: force
b26ff9d8 972 if [ -d $(unsubdir)/make ] ; then \
77806c3e 973 rootme=`pwd` ; export rootme ; \
b26ff9d8 974 (cd $(unsubdir)/make$(subdir); \
4d714963
RP
975 $(MAKE) \
976 "against=$(against)" \
977 "AR=$(AR)" \
978 "AR_FLAGS=$(AR_FLAGS)" \
979 "CC=$(CC)" \
980 "RANLIB=$(RANLIB)" \
981 "LOADLIBES=$(LOADLIBES)" \
982 "LDFLAGS=$(LDFLAGS)" \
983 "BISON=$(BISON)" \
984 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
985 clean) ; \
986 else \
987 true ; \
988 fi
4d714963
RP
989
990install-make: force
b26ff9d8 991 if [ -d $(unsubdir)/make ] ; then \
77806c3e 992 rootme=`pwd` ; export rootme ; \
b26ff9d8 993 (cd $(unsubdir)/make$(subdir); \
4d714963
RP
994 $(MAKE) \
995 "against=$(against)" \
996 "AR=$(AR)" \
997 "AR_FLAGS=$(AR_FLAGS)" \
998 "CC=$(CC)" \
999 "RANLIB=$(RANLIB)" \
1000 "LOADLIBES=$(LOADLIBES)" \
1001 "LDFLAGS=$(LDFLAGS)" \
1002 "BISON=$(BISON)" \
1003 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1004 install) ; \
1005 else \
1006 true ; \
1007 fi
23e3e7f9 1008
4d714963
RP
1009### diff
1010.PHONY: all-diff just-diff
1011all-diff: just-diff
1012just-diff: force
b26ff9d8 1013 if [ -d $(unsubdir)/diff ] ; then \
77806c3e 1014 rootme=`pwd` ; export rootme ; \
b26ff9d8 1015 (cd $(unsubdir)/diff$(subdir); \
4d714963
RP
1016 $(MAKE) \
1017 "against=$(against)" \
1018 "AR=$(AR)" \
1019 "AR_FLAGS=$(AR_FLAGS)" \
1020 "CC=$(CC)" \
1021 "RANLIB=$(RANLIB)" \
1022 "LOADLIBES=$(LOADLIBES)" \
1023 "LDFLAGS=$(LDFLAGS)" \
1024 "BISON=$(BISON)" \
1025 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1026 all) ; \
1027 else \
1028 true ; \
1029 fi
4d714963
RP
1030
1031clean-diff: force
b26ff9d8 1032 if [ -d $(unsubdir)/diff ] ; then \
77806c3e 1033 rootme=`pwd` ; export rootme ; \
b26ff9d8 1034 (cd $(unsubdir)/diff$(subdir); \
4d714963
RP
1035 $(MAKE) \
1036 "against=$(against)" \
1037 "AR=$(AR)" \
1038 "AR_FLAGS=$(AR_FLAGS)" \
1039 "CC=$(CC)" \
1040 "RANLIB=$(RANLIB)" \
1041 "LOADLIBES=$(LOADLIBES)" \
1042 "LDFLAGS=$(LDFLAGS)" \
1043 "BISON=$(BISON)" \
1044 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1045 clean) ; \
1046 else \
1047 true ; \
1048 fi
4d714963
RP
1049
1050install-diff: force
b26ff9d8 1051 if [ -d $(unsubdir)/diff ] ; then \
77806c3e 1052 rootme=`pwd` ; export rootme ; \
b26ff9d8 1053 (cd $(unsubdir)/diff/$(subdir); \
4d714963
RP
1054 $(MAKE) \
1055 "against=$(against)" \
1056 "AR=$(AR)" \
1057 "AR_FLAGS=$(AR_FLAGS)" \
1058 "CC=$(CC)" \
1059 "RANLIB=$(RANLIB)" \
1060 "LOADLIBES=$(LOADLIBES)" \
1061 "LDFLAGS=$(LDFLAGS)" \
1062 "BISON=$(BISON)" \
1063 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1064 install) ; \
1065 else \
1066 true ; \
1067 fi
23e3e7f9 1068
4d714963
RP
1069### grep
1070.PHONY: all-grep just-grep
1071all-grep: just-grep
1072just-grep: force
b26ff9d8 1073 if [ -d $(unsubdir)/grep ] ; then \
77806c3e 1074 rootme=`pwd` ; export rootme ; \
b26ff9d8 1075 (cd $(unsubdir)/grep$(subdir); \
4d714963
RP
1076 $(MAKE) \
1077 "against=$(against)" \
1078 "AR=$(AR)" \
1079 "AR_FLAGS=$(AR_FLAGS)" \
1080 "CC=$(CC)" \
1081 "RANLIB=$(RANLIB)" \
1082 "LOADLIBES=$(LOADLIBES)" \
1083 "LDFLAGS=$(LDFLAGS)" \
1084 "BISON=$(BISON)" \
1085 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1086 all) ; \
1087 else \
1088 true ; \
1089 fi
4d714963
RP
1090
1091clean-grep: force
b26ff9d8 1092 if [ -d $(unsubdir)/grep ] ; then \
77806c3e 1093 rootme=`pwd` ; export rootme ; \
b26ff9d8 1094 (cd $(unsubdir)/grep$(subdir); \
4d714963
RP
1095 $(MAKE) \
1096 "against=$(against)" \
1097 "AR=$(AR)" \
1098 "AR_FLAGS=$(AR_FLAGS)" \
1099 "CC=$(CC)" \
1100 "RANLIB=$(RANLIB)" \
1101 "LOADLIBES=$(LOADLIBES)" \
1102 "LDFLAGS=$(LDFLAGS)" \
1103 "BISON=$(BISON)" \
1104 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1105 clean) ; \
1106 else \
1107 true ; \
1108 fi
4d714963
RP
1109
1110install-grep: force
b26ff9d8 1111 if [ -d $(unsubdir)/grep ] ; then \
77806c3e 1112 rootme=`pwd` ; export rootme ; \
b26ff9d8 1113 (cd $(unsubdir)/grep$(subdir); \
4d714963
RP
1114 $(MAKE) \
1115 "against=$(against)" \
1116 "AR=$(AR)" \
1117 "AR_FLAGS=$(AR_FLAGS)" \
1118 "CC=$(CC)" \
1119 "RANLIB=$(RANLIB)" \
1120 "LOADLIBES=$(LOADLIBES)" \
1121 "LDFLAGS=$(LDFLAGS)" \
1122 "BISON=$(BISON)" \
1123 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1124 install) ; \
1125 else \
1126 true ; \
1127 fi
23e3e7f9 1128
4d714963
RP
1129### rcs
1130.PHONY: all-rcs just-rcs
1131all-rcs: just-rcs
1132just-rcs: just-diff just-grep force
b26ff9d8 1133 if [ -d $(unsubdir)/rcs ] ; then \
77806c3e 1134 rootme=`pwd` ; export rootme ; \
b26ff9d8 1135 (cd $(unsubdir)/rcs$(subdir); \
4d714963
RP
1136 $(MAKE) \
1137 "against=$(against)" \
1138 "AR=$(AR)" \
1139 "AR_FLAGS=$(AR_FLAGS)" \
1140 "CC=$(CC)" \
1141 "RANLIB=$(RANLIB)" \
1142 "LOADLIBES=$(LOADLIBES)" \
1143 "LDFLAGS=$(LDFLAGS)" \
1144 "BISON=$(BISON)" \
1145 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1146 all) ; \
1147 else \
1148 true ; \
1149 fi
4d714963
RP
1150
1151clean-rcs: force
b26ff9d8 1152 if [ -d $(unsubdir)/rcs ] ; then \
77806c3e 1153 rootme=`pwd` ; export rootme ; \
b26ff9d8 1154 (cd $(unsubdir)/rcs$(subdir); \
4d714963
RP
1155 $(MAKE) \
1156 "against=$(against)" \
1157 "AR=$(AR)" \
1158 "AR_FLAGS=$(AR_FLAGS)" \
1159 "CC=$(CC)" \
1160 "RANLIB=$(RANLIB)" \
1161 "LOADLIBES=$(LOADLIBES)" \
1162 "LDFLAGS=$(LDFLAGS)" \
1163 "BISON=$(BISON)" \
1164 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1165 clean) ; \
1166 else \
1167 true ; \
1168 fi
4d714963
RP
1169
1170install-rcs: install-grep install-diff force
b26ff9d8 1171 if [ -d $(unsubdir)/rcs ] ; then \
77806c3e 1172 rootme=`pwd` ; export rootme ; \
b26ff9d8 1173 (cd $(unsubdir)/rcs$(subdir); \
4d714963
RP
1174 $(MAKE) \
1175 "against=$(against)" \
1176 "AR=$(AR)" \
1177 "AR_FLAGS=$(AR_FLAGS)" \
1178 "CC=$(CC)" \
1179 "RANLIB=$(RANLIB)" \
1180 "LOADLIBES=$(LOADLIBES)" \
1181 "LDFLAGS=$(LDFLAGS)" \
1182 "BISON=$(BISON)" \
1183 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1184 install) ; \
1185 else \
1186 true ; \
1187 fi
23e3e7f9 1188
4d714963
RP
1189### gdbm
1190.PHONY: all-gdbm just-gdbm
1191all-gdbm: just-gdbm
1192just-gdbm: force
b26ff9d8 1193 if [ -d $(unsubdir)/gdbm ] ; then \
77806c3e 1194 rootme=`pwd` ; export rootme ; \
b26ff9d8 1195 (cd $(unsubdir)/gdbm$(subdir); \
4d714963
RP
1196 $(MAKE) \
1197 "against=$(against)" \
1198 "AR=$(AR)" \
1199 "AR_FLAGS=$(AR_FLAGS)" \
1200 "CC=$(CC)" \
1201 "RANLIB=$(RANLIB)" \
1202 "LOADLIBES=$(LOADLIBES)" \
1203 "LDFLAGS=$(LDFLAGS)" \
1204 "BISON=$(BISON)" \
1205 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1206 all) ; \
1207 else \
1208 true ; \
1209 fi
4d714963
RP
1210
1211clean-gdbm: force
b26ff9d8 1212 if [ -d $(unsubdir)/gdbm ] ; then \
77806c3e 1213 rootme=`pwd` ; export rootme ; \
b26ff9d8 1214 (cd $(unsubdir)/gdbm$(subdir); \
4d714963
RP
1215 $(MAKE) \
1216 "against=$(against)" \
1217 "AR=$(AR)" \
1218 "AR_FLAGS=$(AR_FLAGS)" \
1219 "CC=$(CC)" \
1220 "RANLIB=$(RANLIB)" \
1221 "LOADLIBES=$(LOADLIBES)" \
1222 "LDFLAGS=$(LDFLAGS)" \
1223 "BISON=$(BISON)" \
1224 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1225 clean) ; \
1226 else \
1227 true ; \
1228 fi
4d714963
RP
1229
1230install-gdbm: force
b26ff9d8 1231 if [ -d $(unsubdir)/gdbm ] ; then \
77806c3e 1232 rootme=`pwd` ; export rootme ; \
b26ff9d8 1233 (cd $(unsubdir)/gdbm$(subdir); \
4d714963
RP
1234 $(MAKE) \
1235 "against=$(against)" \
1236 "AR=$(AR)" \
1237 "AR_FLAGS=$(AR_FLAGS)" \
1238 "CC=$(CC)" \
1239 "RANLIB=$(RANLIB)" \
1240 "LOADLIBES=$(LOADLIBES)" \
1241 "LDFLAGS=$(LDFLAGS)" \
1242 "BISON=$(BISON)" \
1243 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1244 install) ; \
1245 else \
1246 true ; \
1247 fi
23e3e7f9 1248
4d714963
RP
1249### cvs
1250.PHONY: all-cvs just-cvs
1251all-cvs: just-cvs just-rcs just-grep just-diff
1252just-cvs: just-gdbm force
b26ff9d8 1253 if [ -d $(unsubdir)/cvs ] ; then \
77806c3e 1254 rootme=`pwd` ; export rootme ; \
b26ff9d8 1255 (cd $(unsubdir)/cvs$(subdir); \
4d714963
RP
1256 $(MAKE) \
1257 "against=$(against)" \
1258 "AR=$(AR)" \
1259 "AR_FLAGS=$(AR_FLAGS)" \
1260 "CC=$(CC)" \
1261 "RANLIB=$(RANLIB)" \
1262 "LOADLIBES=$(LOADLIBES)" \
1263 "LDFLAGS=$(LDFLAGS)" \
1264 "BISON=$(BISON)" \
1265 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1266 all) ; \
1267 else \
1268 true ; \
1269 fi
4d714963 1270
ba8abfce 1271clean-cvs: clean-gdbm force
b26ff9d8 1272 if [ -d $(unsubdir)/cvs ] ; then \
77806c3e 1273 rootme=`pwd` ; export rootme ; \
b26ff9d8 1274 (cd $(unsubdir)/cvs$(subdir); \
4d714963
RP
1275 $(MAKE) \
1276 "against=$(against)" \
1277 "AR=$(AR)" \
1278 "AR_FLAGS=$(AR_FLAGS)" \
1279 "CC=$(CC)" \
1280 "RANLIB=$(RANLIB)" \
1281 "LOADLIBES=$(LOADLIBES)" \
1282 "LDFLAGS=$(LDFLAGS)" \
1283 "BISON=$(BISON)" \
1284 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1285 clean) ; \
1286 else \
1287 true ; \
1288 fi
4d714963
RP
1289
1290install-cvs: install-rcs install-gdbm force
b26ff9d8 1291 if [ -d $(unsubdir)/cvs ] ; then \
77806c3e 1292 rootme=`pwd` ; export rootme ; \
b26ff9d8 1293 (cd $(unsubdir)/cvs$(subdir); \
4d714963 1294 $(MAKE) \
4cc027e1
PB
1295 "bindir=$(bindir)" \
1296 "mandir=$(man1dir)" \
4d714963
RP
1297 "against=$(against)" \
1298 "AR=$(AR)" \
1299 "AR_FLAGS=$(AR_FLAGS)" \
1300 "CC=$(CC)" \
1301 "RANLIB=$(RANLIB)" \
1302 "LOADLIBES=$(LOADLIBES)" \
1303 "LDFLAGS=$(LDFLAGS)" \
1304 "BISON=$(BISON)" \
1305 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1306 install) ; \
1307 else \
1308 true ; \
1309 fi
23e3e7f9 1310
7c9feeb7
RP
1311### patch
1312.PHONY: all-patch just-patch
1313all-patch: just-patch
1314just-patch: force
1315 if [ -d $(unsubdir)/patch ] ; then \
77806c3e 1316 rootme=`pwd` ; export rootme ; \
7c9feeb7
RP
1317 (cd $(unsubdir)/patch$(subdir); \
1318 $(MAKE) \
1319 "against=$(against)" \
1320 "AR=$(AR)" \
1321 "AR_FLAGS=$(AR_FLAGS)" \
1322 "CC=$(CC)" \
1323 "RANLIB=$(RANLIB)" \
1324 "LOADLIBES=$(LOADLIBES)" \
1325 "LDFLAGS=$(LDFLAGS)" \
1326 "BISON=$(BISON)" \
1327 "MAKEINFO=$(MAKEINFO)" \
1328 all) ; \
1329 else \
1330 true ; \
1331 fi
1332
1333clean-patch: force
1334 if [ -d $(unsubdir)/patch ] ; then \
77806c3e 1335 rootme=`pwd` ; export rootme ; \
7c9feeb7
RP
1336 (cd $(unsubdir)/patch$(subdir); \
1337 $(MAKE) \
1338 "against=$(against)" \
1339 "AR=$(AR)" \
1340 "AR_FLAGS=$(AR_FLAGS)" \
1341 "CC=$(CC)" \
1342 "RANLIB=$(RANLIB)" \
1343 "LOADLIBES=$(LOADLIBES)" \
1344 "LDFLAGS=$(LDFLAGS)" \
1345 "BISON=$(BISON)" \
1346 "MAKEINFO=$(MAKEINFO)" \
1347 clean) ; \
1348 else \
1349 true ; \
1350 fi
1351
1352install-patch: force
1353 if [ -d $(unsubdir)/patch ] ; then \
77806c3e 1354 rootme=`pwd` ; export rootme ; \
7c9feeb7
RP
1355 (cd $(unsubdir)/patch$(subdir); \
1356 $(MAKE) \
1357 bindir=$(bindir) \
1358 man1dir=$(man1dir) \
1359 "AR=$(AR)" \
1360 "AR_FLAGS=$(AR_FLAGS)" \
1361 "CC=$(CC)" \
1362 "RANLIB=$(RANLIB)" \
1363 "LOADLIBES=$(LOADLIBES)" \
1364 "LDFLAGS=$(LDFLAGS)" \
1365 "BISON=$(BISON)" \
1366 "MAKEINFO=$(MAKEINFO)" \
1367 install) ; \
1368 else \
1369 true ; \
1370 fi
1371
4d714963
RP
1372### emacs
1373.PHONY: all-emacs just-emacs
1374all-emacs: just-emacs
1375just-emacs: force
b26ff9d8 1376 if [ -d $(unsubdir)/emacs ] ; then \
77806c3e 1377 rootme=`pwd` ; export rootme ; \
b26ff9d8 1378 (cd $(unsubdir)/emacs$(subdir); \
4d714963
RP
1379 $(MAKE) \
1380 "against=$(against)" \
1381 "AR=$(AR)" \
1382 "AR_FLAGS=$(AR_FLAGS)" \
1383 "CC=$(CC)" \
1384 "RANLIB=$(RANLIB)" \
1385 "LOADLIBES=$(LOADLIBES)" \
1386 "LDFLAGS=$(LDFLAGS)" \
1387 "BISON=$(BISON)" \
1388 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1389 all) ; \
1390 else \
1391 true ; \
1392 fi
4d714963
RP
1393
1394clean-emacs: force
b26ff9d8 1395 if [ -d $(unsubdir)/emacs ] ; then \
77806c3e 1396 rootme=`pwd` ; export rootme ; \
b26ff9d8 1397 (cd $(unsubdir)/emacs$(subdir); \
4d714963
RP
1398 $(MAKE) \
1399 "against=$(against)" \
1400 "AR=$(AR)" \
1401 "AR_FLAGS=$(AR_FLAGS)" \
1402 "CC=$(CC)" \
1403 "RANLIB=$(RANLIB)" \
1404 "LOADLIBES=$(LOADLIBES)" \
1405 "LDFLAGS=$(LDFLAGS)" \
1406 "BISON=$(BISON)" \
1407 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1408 clean) ; \
1409 else \
1410 true ; \
1411 fi
4d714963
RP
1412
1413install-emacs: install-rcs install-gdbm force
b26ff9d8 1414 if [ -d $(unsubdir)/emacs ] ; then \
77806c3e 1415 rootme=`pwd` ; export rootme ; \
b26ff9d8 1416 (cd $(unsubdir)/emacs$(subdir); \
4d714963
RP
1417 $(MAKE) \
1418 "against=$(against)" \
1419 "AR=$(AR)" \
1420 "AR_FLAGS=$(AR_FLAGS)" \
1421 "CC=$(CC)" \
1422 "RANLIB=$(RANLIB)" \
1423 "LOADLIBES=$(LOADLIBES)" \
1424 "LDFLAGS=$(LDFLAGS)" \
1425 "BISON=$(BISON)" \
1426 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1427 install) ; \
1428 else \
1429 true ; \
1430 fi
23e3e7f9 1431
4d714963
RP
1432### ispell
1433.PHONY: all-ispell just-ispell
1434all-ispell: just-ispell
1435just-ispell: all-emacs force
b26ff9d8 1436 if [ -d $(unsubdir)/ispell ] ; then \
77806c3e 1437 rootme=`pwd` ; export rootme ; \
b26ff9d8 1438 (cd $(unsubdir)/ispell$(subdir); \
4d714963
RP
1439 $(MAKE) \
1440 "against=$(against)" \
1441 "AR=$(AR)" \
1442 "AR_FLAGS=$(AR_FLAGS)" \
1443 "CC=$(CC)" \
1444 "RANLIB=$(RANLIB)" \
1445 "LOADLIBES=$(LOADLIBES)" \
1446 "LDFLAGS=$(LDFLAGS)" \
1447 "BISON=$(BISON)" \
1448 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1449 all) ; \
1450 else \
1451 true ; \
1452 fi
4d714963
RP
1453
1454clean-ispell: force
b26ff9d8 1455 if [ -d $(unsubdir)/ispell ] ; then \
77806c3e 1456 rootme=`pwd` ; export rootme ; \
b26ff9d8 1457 (cd $(unsubdir)/ispell$(subdir); \
4d714963
RP
1458 $(MAKE) \
1459 "against=$(against)" \
1460 "AR=$(AR)" \
1461 "AR_FLAGS=$(AR_FLAGS)" \
1462 "CC=$(CC)" \
1463 "RANLIB=$(RANLIB)" \
1464 "LOADLIBES=$(LOADLIBES)" \
1465 "LDFLAGS=$(LDFLAGS)" \
1466 "BISON=$(BISON)" \
1467 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1468 clean) ; \
1469 else \
1470 true ; \
1471 fi
4d714963
RP
1472
1473install-ispell: install-rcs install-gdbm force
b26ff9d8 1474 if [ -d $(unsubdir)/ispell ] ; then \
77806c3e 1475 rootme=`pwd` ; export rootme ; \
b26ff9d8 1476 (cd $(unsubdir)/ispell$(subdir); \
4d714963
RP
1477 $(MAKE) \
1478 "against=$(against)" \
1479 "AR=$(AR)" \
1480 "AR_FLAGS=$(AR_FLAGS)" \
1481 "CC=$(CC)" \
1482 "RANLIB=$(RANLIB)" \
1483 "LOADLIBES=$(LOADLIBES)" \
1484 "LDFLAGS=$(LDFLAGS)" \
1485 "BISON=$(BISON)" \
1486 "MAKEINFO=$(MAKEINFO)" \
b26ff9d8
RP
1487 install) ; \
1488 else \
1489 true ; \
1490 fi
23e3e7f9 1491
25113b46
RP
1492### flex
1493.PHONY: all-flex just-flex
1494all-flex: just-flex
1495just-flex: force
1496 if [ -d $(unsubdir)/flex ] ; then \
77806c3e 1497 rootme=`pwd` ; export rootme ; \
25113b46
RP
1498 (cd $(unsubdir)/flex$(subdir); \
1499 $(MAKE) \
1500 "against=$(against)" \
1501 "AR=$(AR)" \
1502 "AR_FLAGS=$(AR_FLAGS)" \
1503 "CC=$(CC)" \
1504 "RANLIB=$(RANLIB)" \
1505 "LOADLIBES=$(LOADLIBES)" \
1506 "LDFLAGS=$(LDFLAGS)" \
1507 "BISON=$(BISON)" \
1508 "MAKEINFO=$(MAKEINFO)" \
1509 all) ; \
1510 else \
1511 true ; \
1512 fi
1513
1514clean-flex: force
1515 if [ -d $(unsubdir)/flex ] ; then \
77806c3e 1516 rootme=`pwd` ; export rootme ; \
25113b46
RP
1517 (cd $(unsubdir)/flex$(subdir); \
1518 $(MAKE) \
1519 "against=$(against)" \
1520 "AR=$(AR)" \
1521 "AR_FLAGS=$(AR_FLAGS)" \
1522 "CC=$(CC)" \
1523 "RANLIB=$(RANLIB)" \
1524 "LOADLIBES=$(LOADLIBES)" \
1525 "LDFLAGS=$(LDFLAGS)" \
1526 "BISON=$(BISON)" \
1527 "MAKEINFO=$(MAKEINFO)" \
1528 clean) ; \
1529 else \
1530 true ; \
1531 fi
1532
1533install-flex: force
1534 if [ -d $(unsubdir)/flex ] ; then \
77806c3e 1535 rootme=`pwd` ; export rootme ; \
25113b46
RP
1536 (cd $(unsubdir)/flex$(subdir); \
1537 $(MAKE) \
1538 "against=$(against)" \
1539 "AR=$(AR)" \
1540 "AR_FLAGS=$(AR_FLAGS)" \
1541 "CC=$(CC)" \
1542 "RANLIB=$(RANLIB)" \
1543 "LOADLIBES=$(LOADLIBES)" \
1544 "LDFLAGS=$(LDFLAGS)" \
1545 "BISON=$(BISON)" \
1546 "MAKEINFO=$(MAKEINFO)" \
1547 install) ; \
1548 else \
1549 true ; \
1550 fi
23e3e7f9 1551
079399f6
RP
1552### fileutils
1553.PHONY: all-fileutils just-fileutils
1554all-fileutils: just-fileutils
1555just-fileutils: force
1556 if [ -d $(unsubdir)/fileutils ] ; then \
77806c3e 1557 rootme=`pwd` ; export rootme ; \
079399f6
RP
1558 (cd $(unsubdir)/fileutils$(subdir); \
1559 $(MAKE) \
1560 "prefix=$(prefix)" \
1561 "datadir=$(datadir)" \
1562 "mandir=$(mandir)" \
1563 "against=$(against)" \
1564 "AR=$(AR)" \
1565 "AR_FLAGS=$(AR_FLAGS)" \
1566 "CC=$(CC)" \
1567 "RANLIB=$(RANLIB)" \
1568 "LOADLIBES=$(LOADLIBES)" \
1569 "LDFLAGS=$(LDFLAGS)" \
1570 "BISON=$(BISON)" \
1571 "MAKEINFO=$(MAKEINFO)" \
1572 all) ; \
1573 else \
1574 true ; \
1575 fi
1576
1577clean-fileutils: force
1578 if [ -d $(unsubdir)/fileutils ] ; then \
77806c3e 1579 rootme=`pwd` ; export rootme ; \
079399f6
RP
1580 (cd $(unsubdir)/fileutils$(subdir); \
1581 $(MAKE) \
1582 "prefix=$(prefix)" \
1583 "datadir=$(datadir)" \
1584 "mandir=$(mandir)" \
1585 "against=$(against)" \
1586 "AR=$(AR)" \
1587 "AR_FLAGS=$(AR_FLAGS)" \
1588 "CC=$(CC)" \
1589 "RANLIB=$(RANLIB)" \
1590 "LOADLIBES=$(LOADLIBES)" \
1591 "LDFLAGS=$(LDFLAGS)" \
1592 "BISON=$(BISON)" \
1593 "MAKEINFO=$(MAKEINFO)" \
1594 clean) ; \
1595 else \
1596 true ; \
1597 fi
1598
1599install-fileutils: force
1600 if [ -d $(unsubdir)/fileutils ] ; then \
77806c3e 1601 rootme=`pwd` ; export rootme ; \
079399f6
RP
1602 (cd $(unsubdir)/fileutils$(subdir); \
1603 $(MAKE) \
1604 "prefix=$(prefix)" \
1605 "datadir=$(datadir)" \
1606 "mandir=$(mandir)" \
1607 "against=$(against)" \
1608 "AR=$(AR)" \
1609 "AR_FLAGS=$(AR_FLAGS)" \
1610 "CC=$(CC)" \
1611 "RANLIB=$(RANLIB)" \
1612 "LOADLIBES=$(LOADLIBES)" \
1613 "LDFLAGS=$(LDFLAGS)" \
1614 "BISON=$(BISON)" \
1615 "MAKEINFO=$(MAKEINFO)" \
1616 install) ; \
1617 else \
1618 true ; \
1619 fi
23e3e7f9 1620
ba8abfce
JG
1621### libg++
1622.PHONY: all-libg++ just-libg++
77806c3e 1623all-libg++: just-gas just-ld just-gcc just-make just-libg++
4cc027e1 1624# NOTE! We have added GXX= and XTRAFLAGS to the $(MAKE) line!!!
bcdbe02f 1625# and CC == GXX
4cc027e1 1626# Do not clone this one.
77806c3e 1627just-libg++: just-make force
ba8abfce 1628 if [ -d $(unsubdir)/libg++ ] ; then \
77806c3e 1629 rootme=`pwd` ; export rootme ; \
ba8abfce
JG
1630 (cd $(unsubdir)/libg++$(subdir); \
1631 $(MAKE) \
4cc027e1 1632 GXX=`cd $(unsubdir)/..$(subdir); pwd`"/gcc/gcc -B"`cd $(unsubdir)/..$(subdir);pwd`"/gcc/" \
77806c3e 1633 MAKE=`cd $(unsubdir)/..$(subdir); pwd`/make/make \
4cc027e1 1634 "XTRAFLAGS=-I"`cd $(unsubdir)/..$(subdir); pwd`/gcc/include\
ba8abfce
JG
1635 "prefix=$(prefix)" \
1636 "datadir=$(datadir)" \
1637 "mandir=$(mandir)" \
1638 "against=$(against)" \
1639 "AR=$(AR)" \
1640 "AR_FLAGS=$(AR_FLAGS)" \
bcdbe02f 1641 CC=`cd $(unsubdir)/..$(subdir); pwd`"/gcc/gcc -B"`cd $(unsubdir)/..$(subdir);pwd`"/gcc/" \
ba8abfce
JG
1642 "RANLIB=$(RANLIB)" \
1643 "LOADLIBES=$(LOADLIBES)" \
1644 "LDFLAGS=$(LDFLAGS)" \
1645 "BISON=$(BISON)" \
1646 "MAKEINFO=$(MAKEINFO)" \
1647 all) ; \
1648 else \
1649 true ; \
1650 fi
1651
1652clean-libg++: force
1653 if [ -d $(unsubdir)/libg++ ] ; then \
77806c3e 1654 rootme=`pwd` ; export rootme ; \
ba8abfce
JG
1655 (cd $(unsubdir)/libg++$(subdir); \
1656 $(MAKE) \
77806c3e 1657 MAKE=`cd $(unsubdir)/..$(subdir); pwd`/make/make \
ba8abfce
JG
1658 "prefix=$(prefix)" \
1659 "datadir=$(datadir)" \
1660 "mandir=$(mandir)" \
1661 "against=$(against)" \
1662 "AR=$(AR)" \
1663 "AR_FLAGS=$(AR_FLAGS)" \
1664 "CC=$(CC)" \
1665 "RANLIB=$(RANLIB)" \
1666 "LOADLIBES=$(LOADLIBES)" \
1667 "LDFLAGS=$(LDFLAGS)" \
1668 "BISON=$(BISON)" \
1669 "MAKEINFO=$(MAKEINFO)" \
1670 clean) ; \
1671 else \
1672 true ; \
1673 fi
1674
1675install-libg++: force
1676 if [ -d $(unsubdir)/libg++ ] ; then \
77806c3e 1677 rootme=`pwd` ; export rootme ; \
ba8abfce
JG
1678 (cd $(unsubdir)/libg++$(subdir); \
1679 $(MAKE) \
77806c3e 1680 MAKE=`cd $(unsubdir)/..$(subdir); pwd`/make/make \
ba8abfce
JG
1681 "prefix=$(prefix)" \
1682 "datadir=$(datadir)" \
1683 "mandir=$(mandir)" \
1684 "against=$(against)" \
1685 "AR=$(AR)" \
1686 "AR_FLAGS=$(AR_FLAGS)" \
1687 "CC=$(CC)" \
1688 "RANLIB=$(RANLIB)" \
1689 "LOADLIBES=$(LOADLIBES)" \
1690 "LDFLAGS=$(LDFLAGS)" \
1691 "BISON=$(BISON)" \
1692 "MAKEINFO=$(MAKEINFO)" \
1693 install) ; \
1694 else \
1695 true ; \
1696 fi
23e3e7f9 1697
4d714963 1698### other supporting targets
a0f47eb7
SC
1699# this is a bad hack.
1700all.xclib: all.normal
1701 if [ -d clib ] ; then \
1702 (cd clib ; $(MAKE)) ; \
1703 fi
1704
3c81fef5 1705subdir_do: force
a01bf1fb 1706 for i in $(DODIRS); do \
2c55824f 1707 if [ -f $(unsubdir)/$$i/localenv ] ; then \
77806c3e 1708 if (rootme=`pwd` ; export rootme ; cd $(unsubdir)/$$i$(subdir); \
a0f47eb7
SC
1709 $(MAKE) \
1710 "against=$(against)" \
b772d75e
RP
1711 "BISON=$(BISON)" \
1712 "MAKEINFO=$(MAKEINFO)" \
1713 $(DO)) ; then true ; \
a0f47eb7 1714 else exit 1 ; fi ; \
2c55824f 1715 else if [ -d $(unsubdir)/$$i ] ; then \
77806c3e 1716 if (rootme=`pwd` ; export rootme ; cd $(unsubdir)/$$i$(subdir); \
a01bf1fb
RP
1717 $(MAKE) \
1718 "against=$(against)" \
1719 "AR=$(AR)" \
1720 "AR_FLAGS=$(AR_FLAGS)" \
4d714963 1721 "CC=$(CC)" \
2645fb0c 1722 "RANLIB=$(RANLIB)" \
905bb120
RP
1723 "LOADLIBES=$(LOADLIBES)" \
1724 "LDFLAGS=$(LDFLAGS)" \
b772d75e
RP
1725 "BISON=$(BISON)" \
1726 "MAKEINFO=$(MAKEINFO)" \
1727 $(DO)) ; then true ; \
a01bf1fb
RP
1728 else exit 1 ; fi ; \
1729 else true ; fi ; \
a0f47eb7 1730 fi ; \
a01bf1fb 1731 done
eb02fd64 1732
4d714963
RP
1733bootstrap:
1734 $(MAKE) all info
2b34da49 1735 $(MAKE) stage1
6a3958b2
RP
1736 $(MAKE) pass "stagepass=stage1"
1737 $(MAKE) stage2
1738 $(MAKE) pass "stagepass=stage2"
a01bf1fb 1739 $(MAKE) comparison
6a3958b2 1740
4d714963 1741bootstrap2:
6a3958b2
RP
1742 $(MAKE) pass "stagepass=stage1"
1743 $(MAKE) stage2
1744 $(MAKE) pass "stagepass=stage2"
a01bf1fb 1745 $(MAKE) comparison
6a3958b2 1746
4d714963 1747bootstrap3:
6a3958b2 1748 $(MAKE) pass "stagepass=stage2"
a01bf1fb 1749 $(MAKE) comparison
6a3958b2 1750
4d714963 1751pass:
517d18b2 1752 cp $(srcdir)/gcc/gstdarg.h $(unsubdir)/gas$(subdir)/stdarg.h
4d714963 1753 $(MAKE) subdir_do "DO=all info" "DODIRS=$(SUBDIRS)" \
2c55824f 1754 "CC=`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/gcc \
4d714963 1755 -O $(GCCVERBOSE) -I`pwd`/$(unsubdir)/gcc$(subdir)/include \
2c55824f
RP
1756 -B`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/ \
1757 -B`pwd`/$(unsubdir)/gas$(subdir)/$(stagepass)/ \
1758 -B`pwd`/$(unsubdir)/ld$(subdir)/$(stagepass)/" \
a297b8ce 1759 "AR=`pwd`/$(unsubdir)/binutils$(subdir)/$(stagepass)/ar" \
30189626 1760 "LD=`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/gcc $(GCCVERBOSE)" \
2c55824f
RP
1761 "RANLIB=`pwd`/$(unsubdir)/binutils$(subdir)/$(stagepass)/ranlib" \
1762 "LOADLIBES=`pwd`/$(unsubdir)/gnulib$(subdir)/$(stagepass)/gnulib.a /lib/libc.a" \
6a3958b2 1763 "LDFLAGS=-nostdlib /lib/crt0.o \
2c55824f
RP
1764 -L`pwd`/$(unsubdir)/gnulib$(subdir)/$(stagepass)/ \
1765 -B`pwd`/$(unsubdir)/ld$(subdir)/$(stagepass)/"
2b34da49 1766
eb02fd64 1767
4d714963 1768stage1:
3c81fef5 1769 $(MAKE) subdir_do DO=stage1 "DODIRS=$(SUBDIRS)"
eb02fd64 1770
4d714963 1771stage2:
3c81fef5 1772 $(MAKE) subdir_do DO=stage2 "DODIRS=$(SUBDIRS)"
eb02fd64 1773
4d714963 1774stage3:
3c81fef5 1775 $(MAKE) subdir_do DO=stage3 "DODIRS=$(SUBDIRS)"
eb02fd64 1776
4d714963 1777stage4:
3c81fef5 1778 $(MAKE) subdir_do DO=stage4 "DODIRS=$(SUBDIRS)"
eb02fd64 1779
a01bf1fb
RP
1780against=stage2
1781
1782comparison:; $(MAKE) subdir_do DO=comparison against=$(against) "DODIRS=$(SUBDIRS)"
1783
3c81fef5
RP
1784de-stage1:; $(MAKE) subdir_do DO=de-stage1 "DODIRS=$(SUBDIRS)"
1785de-stage2:; $(MAKE) subdir_do DO=de-stage2 "DODIRS=$(SUBDIRS)"
1786de-stage3:; $(MAKE) subdir_do DO=de-stage3 "DODIRS=$(SUBDIRS)"
1787de-stage4:; $(MAKE) subdir_do DO=de-stage4 "DODIRS=$(SUBDIRS)"
6a3958b2 1788
abc52b80
JG
1789# The "else true" stuff is for Ultrix; the shell returns the exit code
1790# of the "if" command, if no commands are run in the "then" or "else" part,
1791# causing Make to quit.
4c27527f
RP
1792
1793MAKEDIRS= \
4d714963
RP
1794 $(prefix) \
1795 $(bindir) \
1796 $(libdir) \
1797 $(includedir) \
1798 $(datadir) \
1799 $(docdir) \
1800 $(mandir) \
1801 $(man1dir) \
1802 $(man5dir)
1803
1804# $(man2dir) \
1805# $(man3dir) \
1806# $(man4dir) \
1807# $(man6dir) \
1808# $(man7dir) \
1809# $(man8dir)
4c27527f 1810
a297b8ce 1811install-dirs: force
4c27527f 1812 for i in $(MAKEDIRS) ; do \
cd49a4dc 1813 echo Making $$i... ; \
4d714963 1814 if [ -d $$i ] ; then true ; else mkdir $$i || exit 1 ; fi ; \
4c27527f 1815 done
0ec776a5 1816
c5f94070 1817MAKEINFODIRS= \
4d714963
RP
1818 $(prefix) \
1819 $(infodir)
c5f94070
RP
1820
1821install-info-dirs: force
9a9e8e7f
RP
1822 if [ -d $(prefix) ] ; then true ; else mkdir $(prefix) ; fi
1823 if [ -d $(datadir) ] ; then true ; else mkdir $(datadir) ; fi
1824 if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
c5f94070 1825
6b7e5998 1826dir.info: force
c466cfab
RP
1827 $(srcdir)/texinfo/gen-info-dir $(infodir) > dir.info.new
1828 mv -f dir.info.new dir.info
6b7e5998 1829
eb02fd64
RP
1830etags tags: TAGS
1831
1832TAGS: FORCE
1833 etags `$(MAKE) ls`
1834
1835ls:
1836 @echo Makefile
1837 @for i in $(SUBDIRS); \
1838 do \
1839 (cd $$i; \
1840 pwd=`pwd`; \
1841 wd=`basename $$pwd`; \
1842 for j in `$(MAKE) ls`; \
1843 do \
1844 echo $$wd/$$j; \
1845 done) \
1846 done
1847
3c81fef5 1848force:
eb02fd64
RP
1849
1850# with the gnu make, this is done automatically.
1851
f1eb48b6 1852Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
a26878d1 1853 $(SHELL) ./config.status
eb02fd64 1854
11954bf1
JG
1855#
1856# Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
1857
23e3e7f9 1858DEVO_SUPPORT= README cfg-paper.texi Makefile.in configure configure.in \
1a7cac26 1859 config.sub config configure.man
a3a063a9 1860GDB_SUPPORT_DIRS= bfd include libiberty readline glob
abc52b80 1861GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS) texinfo/fsf/texinfo.tex
11954bf1 1862
abc52b80 1863setup-dirs: force_update
11954bf1
JG
1864 ./configure sun4
1865 make clean
1866 ./configure -rm sun4
905bb120 1867 chmod og=u `find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
abc52b80
JG
1868
1869bfd.ilrt.tar.Z: setup-dirs
11954bf1 1870 rm -f bfd.ilrt.tar.Z
abc52b80 1871 tar cf - $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) \
11954bf1
JG
1872 | compress -v >bfd.ilrt.tar.Z
1873
abc52b80
JG
1874gdb.tar.Z: setup-dirs
1875 (cd gdb; $(MAKE) -f Makefile.in make-proto-gdb.dir)
1876 $(MAKE) $(MFLAGS) -f Makefile.in make-gdb.tar.Z
1877
1878make-gdb.tar.Z: $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS) gdb texinfo/fsf/texinfo.tex
1879 rm -rf proto-toplev; mkdir proto-toplev
1880 ln -s ../gdb/proto-gdb.dir proto-toplev/gdb
1881 (cd proto-toplev; for i in $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS); do \
1882 ln -s ../$$i . ; \
1883 done)
7c9feeb7
RP
1884 # Put only one copy (four hard links) of COPYING in the tar file.
1885 rm proto-toplev/bfd/COPYING
1886 ln proto-toplev/gdb/COPYING proto-toplev/bfd/COPYING
1887 rm proto-toplev/include/COPYING
1888 ln proto-toplev/gdb/COPYING proto-toplev/include/COPYING
1889 rm proto-toplev/readline/COPYING
1890 ln proto-toplev/gdb/COPYING proto-toplev/readline/COPYING
a3a063a9
JG
1891 # Take out texinfo from configurable dirs
1892 rm proto-toplev/configure.in
1893 sed '/^configdirs=/s/texinfo //' <configure.in >proto-toplev/configure.in
4d714963
RP
1894 # Take out glob from buildable dirs
1895 rm proto-toplev/Makefile.in
1896 sed '/^SUBDIRS =/s/glob //' <Makefile.in >proto-toplev/Makefile.in
4cc027e1
PB
1897 # Take out texinfo from buildable dirs
1898 cp proto-toplev/Makefile.in temp.$$
1899 sed '/^all\.normal: /s/all-texinfo //' <temp.$$ >temp1.$$
1900 sed '/^clean: /s/clean-texinfo //' <temp1.$$ >temp.$$
1901 sed '/^install\.all: /s/install-texinfo //' <temp.$$ >proto-toplev/Makefile.in
1902 rm temp.$$ temp1.$$
abc52b80
JG
1903 mkdir proto-toplev/texinfo
1904 mkdir proto-toplev/texinfo/fsf
1905 ln -s ../../../texinfo/fsf/texinfo.tex proto-toplev/texinfo/fsf/
905bb120 1906 chmod og=u `find proto-toplev -print`
abc52b80
JG
1907 (VER=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
1908 echo "==> Making gdb-$$VER.tar.Z"; \
1909 ln -s proto-toplev gdb-$$VER; \
1910 tar cfh - gdb-$$VER \
1911 | compress -v >gdb-$$VER.tar.Z)
1912
11954bf1
JG
1913force_update:
1914
0ec776a5
SC
1915nothing:
1916
eb02fd64 1917# end of Makefile.in
This page took 0.127369 seconds and 4 git commands to generate.