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