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