Changeset 5077
- Timestamp:
- 07/29/09 17:04:51 (4 months ago)
- Location:
- mpich2/trunk/src/mpe2
- Files:
-
- 16 modified
-
Makefile.in (modified) (6 diffs)
-
configure.in (modified) (6 diffs)
-
src/callstack/Makefile.in (modified) (3 diffs)
-
src/collchk/Makefile.in (modified) (5 diffs)
-
src/collchk/src/Makefile.in (modified) (1 diff)
-
src/graphics/Makefile.in (modified) (5 diffs)
-
src/graphics/src/Makefile.in (modified) (2 diffs)
-
src/logging/Makefile.in (modified) (3 diffs)
-
src/logging/src/Makefile.in (modified) (6 diffs)
-
src/misc/Makefile.in (modified) (3 diffs)
-
src/misc/src/Makefile.in (modified) (3 diffs)
-
src/slog2sdk/Makefile.in (modified) (5 diffs)
-
src/slog2sdk/trace_rlog/Makefile.in (modified) (3 diffs)
-
src/slog2sdk/trace_rlog/src/Makefile.in (modified) (1 diff)
-
src/wrappers/Makefile.in (modified) (5 diffs)
-
src/wrappers/src/Makefile.in (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
mpich2/trunk/src/mpe2/Makefile.in
r3145 r5077 29 29 30 30 all-redirect: 31 all: build_include build_lib_bin 31 all: build_include 32 $(MAKE) $(MAKEOPTS) build_lib_bin 32 33 33 34 ####### Building from the source … … 53 54 if [ -n "$$pkg" -a -s $$pkg/Makefile ] ; then \ 54 55 echo ; echo "**** Making $$pkg ...." ; \ 55 ( cd $$pkg && $(MAKE) ) ; \56 ( cd $$pkg && $(MAKE) $(MAKEOPTS) ) ; \ 56 57 sleep 1 ; \ 57 58 fi ; \ … … 137 138 @-for pkg in $(PKGS) ; do \ 138 139 if [ -n "$$pkg" -a -s $$pkg/Makefile ] ; then \ 139 ( cd $$pkg && $(MAKE) clean ) ; \140 ( cd $$pkg && $(MAKE) $(MAKEOPTS) clean ) ; \ 140 141 fi ; \ 141 142 done … … 155 156 @-for pkg in $(PKGS) ; do \ 156 157 if [ -n "$$pkg" -a -s $$pkg/Makefile ] ; then \ 157 ( cd $$pkg && $(MAKE) distclean ) ; \158 ( cd $$pkg && $(MAKE) $(MAKEOPTS) distclean ) ; \ 158 159 fi ; \ 159 160 done … … 162 163 @-for pkg in $(PKGS) ; do \ 163 164 if [ -n "$$pkg" -a -s $$pkg/Makefile ] ; then \ 164 ( cd $$pkg && $(MAKE) maintainer-clean ) ; \165 ( cd $$pkg && $(MAKE) $(MAKEOPTS) maintainer-clean ) ; \ 165 166 fi ; \ 166 167 done … … 170 171 @-for pkg in $(PKGS) ; do \ 171 172 if [ -n "$$pkg" -a -s $$pkg/Makefile ] ; then \ 172 ( cd $$pkg && $(MAKE) owner-clean ) ; \173 ( cd $$pkg && $(MAKE) $(MAKEOPTS) owner-clean ) ; \ 173 174 fi ; \ 174 175 done -
mpich2/trunk/src/mpe2/configure.in
r3541 r5077 209 209 ;; # Avoid duplication, do nothing 210 210 *) 211 eval $flagname=\"\$flagvalue -g\" 211 # Split eval command into 2 lines so 212 # vi's hightlight mode won't get confused. 213 flagcmd="$flagname=\"$flagvalue -g\"" 214 eval flagcmd 212 215 ;; 213 216 esac … … 297 300 MPI_LIBS="$withval" ) 298 301 302 dnl 303 misc_dirname="src/misc" 304 callstack_dirname="src/callstack" 305 logging_dirname="src/logging" 306 wrappers_dirname="src/wrappers" 307 graphics_dirname="src/graphics" 308 collchk_dirname="src/collchk" 309 slog2_dirname="src/slog2sdk" 310 311 dnl Cleanup the subpackages' Makefiles if they exist 312 AC_MSG_CHECKING( [for leftover Makefiles in subpackages] ) 313 leftover_pkgs="" 314 for pkg in misc callstack logging wrappers graphics collchk slog2 ; do 315 dirname=${pkg}_dirname 316 eval dirvalue=\$"$dirname" 317 if test -s $rootbuild_dir/$dirvalue/Makefile ; then 318 leftover_pkgs="$leftover_pkgs \"$dirvalue\"" 319 ( cd $rootbuild_dir/$dirvalue && $MAKE distclean > /dev/null 2>&1 ) 320 dnl Just in case "make distclean" does not remove Makefile. 321 if test -f $rootbuild_dir/$dirvalue/Makefile ; then 322 $RM -f $rootbuild_dir/$dirvalue/Makefile 323 fi 324 fi 325 done 326 if test "X$leftover_pkgs" = "X" ; then 327 AC_MSG_RESULT( [none] ) 328 else 329 AC_MSG_RESULT( [$leftover_pkgs cleaned] ) 330 fi 331 332 dnl trial_pkgs="misc callstack logging wrappers graphics collchk" 333 334 dnl 335 AC_ARG_ENABLE( misc, 336 [--enable-misc - Build MPE miscellaneous routines, e.g. 337 MPE_Errors_xxx(), MPE_Seq_xxx(), 338 MPE_xxxTags() and MPE_GetHostName().... 339 The default enable=yes.], 340 , enable_misc=yes ) 341 342 dnl 343 AC_ARG_ENABLE( callstack, 344 [--enable-callstack - Build MPE callstack routines, i.e. 345 MPE_CallStack_xxx()... 346 The default enable=yes.], 347 , enable_callstack=yes ) 348 349 dnl 350 AC_ARG_ENABLE( logging, 351 [--enable-logging - Build MPE logging routines for 352 CLOG-2, e.g. MPE_Log_xxx()... 353 The default enable=yes.], 354 , enable_logging=yes ) 355 356 dnl 357 AC_ARG_ENABLE( wrappers, 358 [--enable-wrappers - Build various MPI wrapper libraries. 359 MPI logging library, liblmpe.a; 360 MPI tracing library, libtmpe.a; 361 MPI Fortran to C library, libmpe_f2cmpi.a], 362 , enable_wrappers=yes ) 363 dnl src/wrappers requires at least src/logging 364 if test "$enable_wrappers" = "yes" ; then 365 if test "$enable_logging" != "yes" ; then 366 enable_logging=yes 367 AC_MSG_WARN( [Enabling Logging which is required by Wrappers.] ); 368 fi 369 fi 370 371 dnl Determine if the X graphics is going to be configured 372 AC_ARG_ENABLE( graphics, 373 [--enable-graphics - Build MPE graphics routines and MPI 374 animation library, libampe.a. If disabled 375 then the MPE routines that make use of X11 376 graphics will NOT be built. This is 377 appropriate for systems that either do not 378 have the X11 include files or that do not 379 support X11 graphics. 380 The default enable=yes.], 381 , enable_graphics=yes ) 382 dnl src/graphics's libmpe_nompi.a requires mpehname.c defined in src/misc 383 dnl but then libmpe_nompi.a is rarely used, tests in src/grahics will pass 384 dnl without src/misc. Let user decides. 385 if test "$enable_graphics" = "yes" -a "$enable_misc" != "yes" ; then 386 AC_MSG_WARN( [libmpe_nompi.a in src/graphics needs mpehname.c in src/misc! 387 If you need libmpe_nompi.a, reconfigure with --enable-misc.] ) 388 fi 389 390 AC_ARG_ENABLE( collchk, 391 [--enable-collchk - Build MPI Collective and Datatype 392 checking library, libmpe_collchk.a], 393 , enable_collchk=yes ) 394 dnl src/collchk requires at least src/callstack 395 if test "$enable_collchk" = "yes" ; then 396 if test "$enable_callstack" != "yes" ; then 397 enable_callstack=yes 398 AC_MSG_WARN( [Enabling CallStack which is required by CollChk.] ); 399 fi 400 fi 401 402 selected_pkgs="" 403 404 if test "$enable_misc" = "yes" -a -s $srcdir/src/misc/configure ; then 405 selected_pkgs="$selected_pkgs misc" 406 AC_CONFIG_SUBDIRS(src/misc) 407 fi 408 if test "$enable_callstack" = "yes" -a -s $srcdir/src/callstack/configure ; then 409 selected_pkgs="$selected_pkgs callstack" 410 AC_CONFIG_SUBDIRS(src/callstack) 411 fi 412 if test "$enable_logging" = "yes" -a -s $srcdir/src/logging/configure ; then 413 selected_pkgs="$selected_pkgs logging" 414 AC_CONFIG_SUBDIRS(src/logging) 415 fi 416 if test "$enable_wrappers" = "yes" -a -s $srcdir/src/wrappers/configure ; then 417 selected_pkgs="$selected_pkgs wrappers" 418 AC_CONFIG_SUBDIRS(src/wrappers) 419 fi 420 if test "$enable_graphics" = "yes" -a -s $srcdir/src/graphics/configure ; then 421 selected_pkgs="$selected_pkgs graphics" 422 AC_CONFIG_SUBDIRS(src/graphics) 423 fi 424 if test "$enable_collchk" = "yes" -a -s $srcdir/src/collchk/configure ; then 425 selected_pkgs="$selected_pkgs collchk" 426 AC_CONFIG_SUBDIRS(src/collchk) 427 fi 428 429 dnl Determine if the slog2sdk directory is going to be configured. 430 AC_ARG_ENABLE( slog2, 431 [--enable-slog2{=build} - Configure all the SLOG-2 tools. 432 --enable-slog2 without any argument will 433 use the prebuilt jar files. 434 --enable-slog2=build will rebuild all the 435 jar files from the source code. 436 The default is enable=yes.], , 437 enable_slog2=yes ) 438 439 440 dnl if SLOG-2 is here, configure it 441 if test -s $srcdir/$slog2_dirname/configure ; then 442 if test "$enable_slog2" = "yes" -o "$enable_slog2" = "build" ; then 443 if test "$enable_slog2" = "build" ; then 444 slog2_enable_source=yes 445 else 446 slog2_enable_source=no 447 fi 448 export slog2_enable_source 449 dnl Enable softerror in SLOG2 configure won't abort the entire process 450 slog2_enable_softerror=yes 451 export slog2_enable_softerror 452 selected_pkgs="$selected_pkgs slog2" 453 if test "$MPI_IMPL" = "MPICH" -o "$MPI_IMPL" = "MPICH2" ; then 454 dnl Disable the SAMPLE code in slog2sdk for MPICH2 455 slog2_enable_sample=no 456 export slog2_enable_sample 457 fi 458 AC_CONFIG_SUBDIRS(src/slog2sdk) 459 fi 460 fi 461 462 dnl The following statement is no longer true as of 6/24/2007, 463 dnl a thread-specific MPE logging on/off switch has been added 464 dnl to mpe_log_thread[.h/.c] and MPI logging wrappper library 465 dnl has been updated accordingly. 466 dnl 467 dnl AC_ARG_ENABLE( threadlogging, 468 dnl [--enable-threadlogging - Turn on/off the coarse-grained thread 469 dnl support in MPE logging. The default 470 dnl is enable=no.], , 471 dnl enable_threadlogging=no ) 472 dnl 473 dnl When thread-logging is enabled in multi-thread environment, 474 dnl safePMPI guard can't be used, i.e. global variables is_mpelog_on 475 dnl can't be used in coarse-grained thread support, 476 dnl becasue these varaibles need to be thread-specific. Otherwise 477 dnl turn off logging on 1 thread would mean turning it off for all 478 dnl threads. 479 dnl 480 dnl if test "$enable_threadlogging" = "yes" ; then 481 dnl enable_safePMPI=no 482 dnl export enable_safePMPI 483 dnl fi 484 485 299 486 AC_ARG_VAR( MPI_CC, [C compiler for MPI program, e.g. mpixlc_r for BG/P MPI, or mpicc from MPICHx, Open-MPI, or LAM-MPI. Setting MPI_CC to MPI wrapper means no need to set MPI_INC and MPI_LIBS.] ) 300 487 AC_ARG_VAR( MPI_F77, [Fortran compiler for MPI program, e.g. mpixlf77_r for BG/P MPI, or mpif77 from MPICHx, Open-MPI, or LAM-MPI. Setting MPI_F77 to MPI wrapper means no need to set MPI_INC and MPI_LIBS.] ) … … 351 538 352 539 540 dnl 541 AC_ARG_WITH( config-args, 542 [--with-config-args=filename - Specify configure argument file that 543 contains the values of variables that 544 configure reads, e.g. CC, CFLAGS, 545 F77, FFLAGS, MPI_CC, MPI_F77.... 546 If the filename does not begin with 547 / (absolute path), . or .. (relative path), 548 the filename will be assumed to be 549 $top_srcdir/configargs/<filename>.cfg.], , 550 with_config_args=no ) 551 dnl 552 if test "$with_config_args" != "no" ; then 553 case "$with_config_args" in 554 /*|../*|./*) 555 config_args_file="$with_config_args" 556 ;; 557 *) 558 config_args_file="$srcdir/configargs/${with_config_args}.cfg" 559 ;; 560 esac 561 if test -s "$config_args_file" ; then 562 AC_MSG_RESULT([Reading the configure arguments in ${config_args_file}.]) 563 . $config_args_file 564 # Export all the variables in $config_args_file 565 # i.e. CC, F77, CFLAGS, FFLAGS and friends... 566 config_args_vars=`grep -v '^#' $config_args_file | sed -e 's/=.*//g'` 567 for var in $config_args_vars ; do 568 eval value=\$"$var" 569 echo "Exporting $var=$value ..." 570 export $var 571 done 572 else 573 AC_MSG_WARN([Non-existent ${config_args_file}.]) 574 fi 575 fi 576 577 353 578 AC_PROG_CC 354 579 dnl Check for broken handling of common symbols … … 488 713 PAC_PROG_F77_HAS_INCDIR(f77tmpdir) 489 714 FINC_PATH_LEADER=$F77_INCDIR 715 716 # Replace all -I in MPI_FFLAGS by $FINC_PATH_LEADER 717 MPI_FFLAGS=`echo "$MPI_FFLAGS" | sed -e "s|-I|$FINC_PATH_LEADER|g"` 718 # If there is MPI_FLIBS, to replace -L by $FLIB_PATH_LEADER 490 719 fi 491 720 … … 547 776 AC_SUBST(MPE_LIBNAME) 548 777 AC_SUBST(MPE_BUILD_FORTRAN2C) 549 AC_SUBST(CC)778 dnl "precious" AC_SUBST(CC) 550 779 AC_SUBST(CLINKER) 551 780 AC_SUBST(MPE_CFLAGS) 552 AC_SUBST(MPI_CC)553 AC_SUBST(MPI_CFLAGS)781 dnl "precious" AC_SUBST(MPI_CC) 782 dnl "precious" AC_SUBST(MPI_CFLAGS) 554 783 AC_SUBST(MPE_CLINKER) 555 784 AC_SUBST(F77) 556 785 AC_SUBST(FLINKER) 557 786 AC_SUBST(MPE_FFLAGS) 558 AC_SUBST(MPI_F77)559 AC_SUBST(MPI_FFLAGS)787 dnl "precious" AC_SUBST(MPI_F77) 788 dnl "precious" AC_SUBST(MPI_FFLAGS) 560 789 AC_SUBST(MPE_FLINKER) 561 AC_SUBST(MPI_LIBS)562 AC_SUBST(LDFLAGS)563 AC_SUBST(MPERUN)790 dnl "precious" AC_SUBST(MPI_LIBS) 791 dnl "precious" AC_SUBST(LDFLAGS) 792 dnl "precious" AC_SUBST(MPERUN) 564 793 565 794 dnl Make the directories that do not contain Makefiles (should they?) but … … 591 820 592 821 593 misc_dirname="src/misc" 594 callstack_dirname="src/callstack" 595 logging_dirname="src/logging" 596 wrappers_dirname="src/wrappers" 597 graphics_dirname="src/graphics" 598 collchk_dirname="src/collchk" 599 slog2_dirname="src/slog2sdk" 600 601 dnl Cleanup the subpackages' Makefiles if they exist 602 AC_MSG_CHECKING( [for leftover Makefiles in subpackages] ) 603 leftover_pkgs="" 604 for pkg in misc callstack logging wrappers graphics collchk slog2 ; do 605 dirname=${pkg}_dirname 606 eval dirvalue=\$"$dirname" 607 if test -s $rootbuild_dir/$dirvalue/Makefile ; then 608 leftover_pkgs="$leftover_pkgs \"$dirvalue\"" 609 ( cd $rootbuild_dir/$dirvalue && $MAKE distclean > /dev/null 2>&1 ) 610 dnl Just in case "make distclean" does not remove Makefile. 611 if test -f $rootbuild_dir/$dirvalue/Makefile ; then 612 $RM -f $rootbuild_dir/$dirvalue/Makefile 613 fi 614 fi 615 done 616 if test "X$leftover_pkgs" = "X" ; then 617 AC_MSG_RESULT( [none] ) 618 else 619 AC_MSG_RESULT( [$leftover_pkgs cleaned] ) 620 fi 621 622 dnl trial_pkgs="misc callstack logging wrappers graphics collchk" 623 624 dnl 625 AC_ARG_ENABLE( misc, 626 [--enable-misc - Build MPE miscellaneous routines, e.g. 627 MPE_Errors_xxx(), MPE_Seq_xxx(), 628 MPE_xxxTags() and MPE_GetHostName().... 629 The default enable=yes.], 630 , enable_misc=yes ) 631 632 dnl 633 AC_ARG_ENABLE( callstack, 634 [--enable-callstack - Build MPE callstack routines, i.e. 635 MPE_CallStack_xxx()... 636 The default enable=yes.], 637 , enable_callstack=yes ) 638 639 dnl 640 AC_ARG_ENABLE( logging, 641 [--enable-logging - Build MPE logging routines for 642 CLOG-2, e.g. MPE_Log_xxx()... 643 The default enable=yes.], 644 , enable_logging=yes ) 645 646 dnl 647 AC_ARG_ENABLE( wrappers, 648 [--enable-wrappers - Build various MPI wrapper libraries. 649 MPI logging library, liblmpe.a; 650 MPI tracing library, libtmpe.a; 651 MPI Fortran to C library, libmpe_f2cmpi.a], 652 , enable_wrappers=yes ) 653 dnl src/wrappers requires at least src/logging 654 if test "$enable_wrappers" = "yes" ; then 655 if test "$enable_logging" != "yes" ; then 656 enable_logging=yes 657 AC_MSG_WARN( [Enabling Logging which is required by Wrappers.] ); 658 fi 659 fi 660 661 dnl Determine if the X graphics is going to be configured 662 AC_ARG_ENABLE( graphics, 663 [--enable-graphics - Build MPE graphics routines and MPI 664 animation library, libampe.a. If disabled 665 then the MPE routines that make use of X11 666 graphics will NOT be built. This is 667 appropriate for systems that either do not 668 have the X11 include files or that do not 669 support X11 graphics. 670 The default enable=yes.], 671 , enable_graphics=yes ) 672 dnl src/graphics's libmpe_nompi.a requires mpehname.c defined in src/misc 673 dnl but then libmpe_nompi.a is rarely used, tests in src/grahics will pass 674 dnl without src/misc. Let user decides. 675 if test "$enable_graphics" = "yes" -a "$enable_misc" != "yes" ; then 676 AC_MSG_WARN( [libmpe_nompi.a in src/graphics needs mpehname.c in src/misc! 677 If you need libmpe_nompi.a, reconfigure with --enable-misc.] ) 678 fi 679 680 AC_ARG_ENABLE( collchk, 681 [--enable-collchk - Build MPI Collective and Datatype 682 checking library, libmpe_collchk.a], 683 , enable_collchk=yes ) 684 dnl src/collchk requires at least src/callstack 685 if test "$enable_collchk" = "yes" ; then 686 if test "$enable_callstack" != "yes" ; then 687 enable_callstack=yes 688 AC_MSG_WARN( [Enabling CallStack which is required by CollChk.] ); 689 fi 690 fi 691 692 selected_pkgs="" 693 694 if test "$enable_misc" = "yes" -a -s $srcdir/src/misc/configure ; then 695 selected_pkgs="$selected_pkgs misc" 696 AC_CONFIG_SUBDIRS(src/misc) 697 fi 698 if test "$enable_callstack" = "yes" -a -s $srcdir/src/callstack/configure ; then 699 selected_pkgs="$selected_pkgs callstack" 700 AC_CONFIG_SUBDIRS(src/callstack) 701 fi 702 if test "$enable_logging" = "yes" -a -s $srcdir/src/logging/configure ; then 703 selected_pkgs="$selected_pkgs logging" 704 AC_CONFIG_SUBDIRS(src/logging) 705 fi 706 if test "$enable_wrappers" = "yes" -a -s $srcdir/src/wrappers/configure ; then 707 selected_pkgs="$selected_pkgs wrappers" 708 AC_CONFIG_SUBDIRS(src/wrappers) 709 fi 710 if test "$enable_graphics" = "yes" -a -s $srcdir/src/graphics/configure ; then 711 selected_pkgs="$selected_pkgs graphics" 712 AC_CONFIG_SUBDIRS(src/graphics) 713 fi 714 if test "$enable_collchk" = "yes" -a -s $srcdir/src/collchk/configure ; then 715 selected_pkgs="$selected_pkgs collchk" 716 AC_CONFIG_SUBDIRS(src/collchk) 717 fi 718 719 dnl Determine if the slog2sdk directory is going to be configured. 720 AC_ARG_ENABLE( slog2, 721 [--enable-slog2{=build} - Configure all the SLOG-2 tools. 722 --enable-slog2 without any argument will 723 use the prebuilt jar files. 724 --enable-slog2=build will rebuild all the 725 jar files from the source code. 726 The default is enable=yes.], , 727 enable_slog2=yes ) 728 729 730 dnl if SLOG-2 is here, configure it 731 if test -s $srcdir/$slog2_dirname/configure ; then 732 if test "$enable_slog2" = "yes" -o "$enable_slog2" = "build" ; then 733 if test "$enable_slog2" = "build" ; then 734 slog2_enable_source=yes 735 else 736 slog2_enable_source=no 737 fi 738 export slog2_enable_source 739 dnl Enable softerror in SLOG2 configure won't abort the entire process 740 slog2_enable_softerror=yes 741 export slog2_enable_softerror 742 selected_pkgs="$selected_pkgs slog2" 743 if test "$MPI_IMPL" = "MPICH" -o "$MPI_IMPL" = "MPICH2" ; then 744 dnl Disable the SAMPLE code in slog2sdk for MPICH2 745 slog2_enable_sample=no 746 export slog2_enable_sample 747 fi 748 AC_CONFIG_SUBDIRS(src/slog2sdk) 749 fi 750 fi 751 752 dnl The following statement is no longer true as of 6/24/2007, 753 dnl a thread-specific MPE logging on/off switch has been added 754 dnl to mpe_log_thread[.h/.c] and MPI logging wrappper library 755 dnl has been updated accordingly. 756 dnl 757 dnl AC_ARG_ENABLE( threadlogging, 758 dnl [--enable-threadlogging - Turn on/off the coarse-grained thread 759 dnl support in MPE logging. The default 760 dnl is enable=no.], , 761 dnl enable_threadlogging=no ) 762 dnl 763 dnl When thread-logging is enabled in multi-thread environment, 764 dnl safePMPI guard can't be used, i.e. global variables is_mpelog_on 765 dnl can't be used in coarse-grained thread support, 766 dnl becasue these varaibles need to be thread-specific. Otherwise 767 dnl turn off logging on 1 thread would mean turning it off for all 768 dnl threads. 769 dnl 770 dnl if test "$enable_threadlogging" = "yes" ; then 771 dnl enable_safePMPI=no 772 dnl export enable_safePMPI 773 dnl fi 822 774 823 775 824 AC_OUTPUT_COMMANDS( [ -
mpich2/trunk/src/mpe2/src/callstack/Makefile.in
r100 r5077 24 24 MPE_HEADERS = mpe_callstack.h 25 25 26 all: build_include build_lib_bin build_etc 26 all: build_include build_etc 27 $(MAKE) $(MAKEOPTS) build_lib_bin 27 28 28 29 ####### Building from the source … … 45 46 46 47 build_lib_bin: 47 @( cd src && $(MAKE) )48 @( cd src && $(MAKE) $(MAKEOPTS) ) 48 49 49 50 build_etc: … … 76 77 77 78 clean: clean_bin clean_lib 78 @( cd src && $(MAKE) clean )79 @( cd src && $(MAKE) $(MAKEOPTS) clean ) 79 80 80 81 distclean: clean_include clean_bin clean_lib clean_etc 81 @-( cd src && $(MAKE) distclean )82 @-( cd src && $(MAKE) $(MAKEOPTS) distclean ) 82 83 @-$(RM) -f mpe_callstack_conf.h 83 84 @-$(RM) -f Makefile -
mpich2/trunk/src/mpe2/src/collchk/Makefile.in
r100 r5077 24 24 MPE_HEADERS = "" 25 25 26 all: build_include build_lib_bin build_etc linktest_all 26 all: build_include build_etc 27 $(MAKE) $(MAKEOPTS) build_lib_bin 28 $(MAKE) $(MAKEOPTS) linktest_all 27 29 28 30 ####### Building from the source … … 41 43 42 44 build_lib_bin: 43 @( cd src && $(MAKE) )45 @( cd src && $(MAKE) $(MAKEOPTS) ) 44 46 45 47 build_etc: … … 49 51 50 52 ######## Linkage Tests 51 linktest_all: linktest_C linktest_F77 53 linktest_all: 54 $(MAKE) $(MAKEOPTS) linktest_C 55 $(MAKE) $(MAKEOPTS) linktest_F77 52 56 53 57 linktest_C: 54 58 @if [ "$(MPI_IMPL)" != "MPICH" -a "$(MPI_IMPL)" != "MPICH2" ] ; then \ 55 ( cd test && $(MAKE) linktest_C ) ; \59 ( cd test && $(MAKE) $(MAKEOPTS) linktest_C ) ; \ 56 60 fi 57 61 … … 60 64 if [ "$(MPI_IMPL)" != "MPICH" \ 61 65 -a "$(MPI_IMPL)" != "MPICH2" ] ; then \ 62 ( cd test && $(MAKE) linktest_F77 ) ; \66 ( cd test && $(MAKE) $(MAKEOPTS) linktest_F77 ) ; \ 63 67 fi ; \ 64 68 fi … … 81 85 82 86 clean: clean_bin clean_lib 83 @( cd src && $(MAKE) clean )87 @( cd src && $(MAKE) $(MAKEOPTS) clean ) 84 88 85 89 distclean: clean_include clean_bin clean_lib clean_etc 86 @-( cd src && $(MAKE) distclean )90 @-( cd src && $(MAKE) $(MAKEOPTS) distclean ) 87 91 @-$(RM) -f mpe_collchk_conf.h 88 92 @-$(RM) -f Makefile test/Makefile -
mpich2/trunk/src/mpe2/src/collchk/src/Makefile.in
r621 r5077 114 114 115 115 default: 116 $(MAKE) $ {libbuild_dir}/lib$(COLLCHK_LIBNAME).a116 $(MAKE) $(MAKEOPTS) ${libbuild_dir}/lib$(COLLCHK_LIBNAME).a 117 117 118 118 ${libbuild_dir}/lib$(COLLCHK_LIBNAME).a: $(UTIL_OBJ) $(MPI_CORE_OBJ) 119 119 @if [ "${COLLCHK_BUILD_EXSCAN}" = "yes" ] ; then \ 120 $(MAKE) $(M PI_EXSCAN_OBJ) ; \120 $(MAKE) $(MAKEOPTS) $(MPI_EXSCAN_OBJ) ; \ 121 121 fi 122 122 @if [ "${COLLCHK_BUILD_ALLW}" = "yes" ] ; then \ 123 $(MAKE) $(M PI_ALLW_OBJ) ; \123 $(MAKE) $(MAKEOPTS) $(MPI_ALLW_OBJ) ; \ 124 124 fi 125 125 @if [ "${COLLCHK_BUILD_IO}" = "yes" ] ; then \ 126 $(MAKE) $(M PI_IO_OBJ) ; \126 $(MAKE) $(MAKEOPTS) $(MPI_IO_OBJ) ; \ 127 127 fi 128 128 @if [ "${COLLCHK_BUILD_RMA}" = "yes" ] ; then \ 129 $(MAKE) $(M PI_RMA_OBJ) ; \129 $(MAKE) $(MAKEOPTS) $(MPI_RMA_OBJ) ; \ 130 130 fi 131 131 @if [ "${COLLCHK_BUILD_COMMS}" = "yes" ] ; then \ 132 $(MAKE) $(M PI_COMM_OBJ) ; \132 $(MAKE) $(MAKEOPTS) $(MPI_COMM_OBJ) ; \ 133 133 fi 134 134 $(AR) $(ARFLAGS) $@ *.@OBJEXT@ -
mpich2/trunk/src/mpe2/src/graphics/Makefile.in
r100 r5077 25 25 26 26 # Assumption: This Makefile won't be created if X is not available 27 all: build_include build_lib_bin build_etc linktest_all 27 all: build_include build_etc 28 $(MAKE) $(MAKEOPTS) build_lib_bin 29 $(MAKE) $(MAKEOPTS) linktest_all 28 30 29 31 ####### Building from the source … … 42 44 43 45 build_lib_bin: 44 @( cd src && $(MAKE) )46 @( cd src && $(MAKE) $(MAKEOPTS) ) 45 47 46 48 build_etc: … … 50 52 51 53 ######## Linkage Tests 52 linktest_all: linktest_C linktest_F77 54 linktest_all: 55 $(MAKE) $(MAKEOPTS) linktest_C 56 $(MAKE) $(MAKEOPTS) linktest_F77 53 57 54 58 linktest_C: 55 59 @if [ "$(MPI_IMPL)" != "MPICH" \ 56 60 -a "$(MPI_IMPL)" != "MPICH2" ] ; then \ 57 ( cd contrib/test && $(MAKE) linktest_C ) ; \61 ( cd contrib/test && $(MAKE) $(MAKEOPTS) linktest_C ) ; \ 58 62 fi 59 63 … … 62 66 if [ "$(MPI_IMPL)" != "MPICH" \ 63 67 -a "$(MPI_IMPL)" != "MPICH2" ] ; then \ 64 ( cd contrib/test && $(MAKE) linktest_F77 ) ; \68 ( cd contrib/test && $(MAKE) $(MAKEOPTS) linktest_F77 ) ; \ 65 69 fi ; \ 66 70 fi … … 83 87 84 88 clean: clean_bin clean_lib 85 @( cd src && $(MAKE) clean )89 @( cd src && $(MAKE) $(MAKEOPTS) clean ) 86 90 87 91 distclean: clean_include clean_bin clean_lib clean_etc 88 @-( cd src && $(MAKE) distclean )92 @-( cd src && $(MAKE) $(MAKEOPTS) distclean ) 89 93 @-$(RM) -f mpe_graphics_conf.h 90 94 @-$(RM) -f Makefile contrib/*/Makefile -
mpich2/trunk/src/mpe2/src/graphics/src/Makefile.in
r4397 r5077 100 100 # 101 101 default: 102 $(MAKE) $ {libbuild_dir}/lib$(PROF_LIBNAME)_nompi.a103 $(MAKE) $ {libbuild_dir}/lib$(PROF_LIBNAME).a104 $(MAKE) $ {libbuild_dir}/lib$(ANIM_LIBNAME).a102 $(MAKE) $(MAKEOPTS) ${libbuild_dir}/lib$(PROF_LIBNAME)_nompi.a 103 $(MAKE) $(MAKEOPTS) ${libbuild_dir}/lib$(PROF_LIBNAME).a 104 $(MAKE) $(MAKEOPTS) ${libbuild_dir}/lib$(ANIM_LIBNAME).a 105 105 106 106 # … … 119 119 $(AR) $(ARFLAGS) $@ $(MPE_P_COBJECTS) 120 120 @if [ "$(MPE_BUILD_FORTRAN2C)" = "yes" ] ; then \ 121 $(MAKE) $(M PE_P_WOBJECTS) ; \121 $(MAKE) $(MAKEOPTS) $(MPE_P_WOBJECTS) ; \ 122 122 $(AR) $(ARFLAGS) $@ $(MPE_P_WOBJECTS) ; \ 123 123 fi -
mpich2/trunk/src/mpe2/src/logging/Makefile.in
r100 r5077 25 25 mpe_log_thread.h mpe_log.h mpe_logf.h 26 26 27 all: build_include build_lib_bin build_etc 27 all: build_include build_etc 28 $(MAKE) $(MAKEOPTS) build_lib_bin 28 29 29 30 ####### Building from the source … … 46 47 47 48 build_lib_bin: 48 @( cd src && $(MAKE) )49 @( cd src && $(MAKE) $(MAKEOPTS) ) 49 50 50 51 build_etc: … … 77 78 78 79 clean: clean_bin clean_lib 79 @( cd src && $(MAKE) clean )80 @( cd src && $(MAKE) $(MAKEOPTS) clean ) 80 81 81 82 distclean: clean_include clean_bin clean_lib clean_etc 82 @-( cd src && $(MAKE) distclean )83 @-( cd src && $(MAKE) $(MAKEOPTS) distclean ) 83 84 @-$(RM) -f mpe_logging_conf.h 84 85 @-$(RM) -f Makefile -
mpich2/trunk/src/mpe2/src/logging/src/Makefile.in
r621 r5077 108 108 # 109 109 default: 110 $(MAKE) $ {libbuild_dir}/lib$(PROF_LIBNAME)_nompi.a111 $(MAKE) $ {libbuild_dir}/lib$(PROF_LIBNAME)_nompi_null.a112 $(MAKE) $ {libbuild_dir}/lib$(PROF_LIBNAME)_null.a113 $(MAKE) $ {libbuild_dir}/lib$(PROF_LIBNAME).a114 $(MAKE) $( EXECS)110 $(MAKE) $(MAKEOPTS) ${libbuild_dir}/lib$(PROF_LIBNAME)_nompi.a 111 $(MAKE) $(MAKEOPTS) ${libbuild_dir}/lib$(PROF_LIBNAME)_nompi_null.a 112 $(MAKE) $(MAKEOPTS) ${libbuild_dir}/lib$(PROF_LIBNAME)_null.a 113 $(MAKE) $(MAKEOPTS) ${libbuild_dir}/lib$(PROF_LIBNAME).a 114 $(MAKE) $(MAKEOPTS) $(EXECS) 115 115 116 116 # … … 129 129 $(AR) $(ARFLAGS) $@ $(MPE_P_COBJECTS) 130 130 @if [ "$(MPE_BUILD_FORTRAN2C)" = "yes" ] ; then \ 131 $(MAKE) $(M PE_P_WOBJECTS) ; \131 $(MAKE) $(MAKEOPTS) $(MPE_P_WOBJECTS) ; \ 132 132 $(AR) $(ARFLAGS) $@ $(MPE_P_WOBJECTS) ; \ 133 133 fi … … 137 137 $(AR) $(ARFLAGS) $@ $(MPE_N_ZOBJECTS) $(MPE_N_COBJECTS) 138 138 @if [ "$(MPE_BUILD_FORTRAN2C)" = "yes" ] ; then \ 139 $(MAKE) $(M PE_N_WOBJECTS) ; \139 $(MAKE) $(MAKEOPTS) $(MPE_N_WOBJECTS) ; \ 140 140 $(AR) $(ARFLAGS) $@ $(MPE_N_WOBJECTS) ; \ 141 141 fi … … 146 146 $(AR) $(ARFLAGS) $@ $(MPE_P_XOBJECTS) 147 147 @if [ "$(MPE_BUILD_FORTRAN2C)" = "yes" ] ; then \ 148 $(MAKE) $(M PE_P_WOBJECTS) ; \148 $(MAKE) $(MAKEOPTS) $(MPE_P_WOBJECTS) ; \ 149 149 $(AR) $(ARFLAGS) $@ $(MPE_P_WOBJECTS) ; \ 150 150 fi … … 155 155 $(AR) $(ARFLAGS) $@ $(MPE_N_ZOBJECTS) $(MPE_N_XOBJECTS) 156 156 @if [ "$(MPE_BUILD_FORTRAN2C)" = "yes" ] ; then \ 157 $(MAKE) $(M PE_N_WOBJECTS) ; \157 $(MAKE) $(MAKEOPTS) $(MPE_N_WOBJECTS) ; \ 158 158 $(AR) $(ARFLAGS) $@ $(MPE_N_WOBJECTS) ; \ 159 159 fi … … 163 163 # as NEC SX-8's cross-compiler refuses to link with *.no 164 164 ${binbuild_dir}/clog2_print@EXEEXT@: clog_print.n@OBJEXT@ 165 $(CP) -f clog_print.n@OBJEXT@ mpe2tmp .@OBJEXT@166 $(CLINKER) $(CC_LDFLAGS) -o $@ mpe2tmp .@OBJEXT@ \165 $(CP) -f clog_print.n@OBJEXT@ mpe2tmp1.@OBJEXT@ 166 $(CLINKER) $(CC_LDFLAGS) -o $@ mpe2tmp1.@OBJEXT@ \ 167 167 -L${libbuild_dir} -l$(PROF_LIBNAME)_nompi 168 @-$(RM) -f mpe2tmp .@OBJEXT@168 @-$(RM) -f mpe2tmp1.@OBJEXT@ 169 169 170 170 ${binbuild_dir}/clog2_join@EXEEXT@: clog_join.n@OBJEXT@ 171 $(CP) -f clog_join.n@OBJEXT@ mpe2tmp .@OBJEXT@172 $(CLINKER) $(CC_LDFLAGS) -o $@ mpe2tmp .@OBJEXT@ \171 $(CP) -f clog_join.n@OBJEXT@ mpe2tmp2.@OBJEXT@ 172 $(CLINKER) $(CC_LDFLAGS) -o $@ mpe2tmp2.@OBJEXT@ \ 173 173 -L${libbuild_dir} -l$(PROF_LIBNAME)_nompi 174 @-$(RM) -f mpe2tmp .@OBJEXT@174 @-$(RM) -f mpe2tmp2.@OBJEXT@ 175 175 176 176 ${binbuild_dir}/clog2_repair@EXEEXT@: clog_repair.n@OBJEXT@ 177 $(CP) -f clog_repair.n@OBJEXT@ mpe2tmp .@OBJEXT@178 $(CLINKER) $(CC_LDFLAGS) -o $@ mpe2tmp .@OBJEXT@ \177 $(CP) -f clog_repair.n@OBJEXT@ mpe2tmp3.@OBJEXT@ 178 $(CLINKER) $(CC_LDFLAGS) -o $@ mpe2tmp3.@OBJEXT@ \ 179 179 -L${libbuild_dir} -l$(PROF_LIBNAME)_nompi 180 @-$(RM) -f mpe2tmp .@OBJEXT@180 @-$(RM) -f mpe2tmp3.@OBJEXT@ 181 181 182 182 # -
mpich2/trunk/src/mpe2/src/misc/Makefile.in
r100 r5077 23 23 MPE_HEADERS = mpe_misc.h 24 24 25 all: build_include build_lib_bin 25 all: build_include 26 $(MAKE) $(MAKEOPTS) build_lib_bin 26 27 27 28 ####### Building from the source … … 40 41 41 42 build_lib_bin: 42 @( cd src && $(MAKE) )43 @( cd src && $(MAKE) $(MAKEOPTS) ) 43 44 44 45 ######## Linkage Tests … … 62 63 63 64 clean: clean_bin clean_lib 64 @( cd src && $(MAKE) clean )65 @( cd src && $(MAKE) $(MAKEOPTS) clean ) 65 66 66 67 distclean: clean_include clean_bin clean_lib 67 @-( cd src && $(MAKE) distclean )68 @-( cd src && $(MAKE) $(MAKEOPTS) distclean ) 68 69 @-$(RM) -f mpe_misc_conf.h 69 70 @-$(RM) -f Makefile -
mpich2/trunk/src/mpe2/src/misc/src/Makefile.in
r621 r5077 100 100 # 101 101 default: 102 $(MAKE) mpe_debug_objs103 $(MAKE) $ {libbuild_dir}/lib$(PROF_LIBNAME)_nompi.a104 $(MAKE) $ {libbuild_dir}/lib$(PROF_LIBNAME).a102 $(MAKE) $(MAKEOPTS) mpe_debug_objs 103 $(MAKE) $(MAKEOPTS) ${libbuild_dir}/lib$(PROF_LIBNAME)_nompi.a 104 $(MAKE) $(MAKEOPTS) ${libbuild_dir}/lib$(PROF_LIBNAME).a 105 105 106 106 # … … 109 109 @-if [ "$(MPEDBG)" = "yes" -a "$(MPI_IMPL)" = "MPICH" ] ; then \ 110 110 echo "Making MPICH's mpedbg" ; \ 111 ( cd ../../../../src/env ; $(MAKE) mpe_debug_objs ) ; \111 ( cd ../../../../src/env ; $(MAKE) $(MAKEOPTS) mpe_debug_objs ) ; \ 112 112 fi 113 113 … … 127 127 $(AR) $(ARFLAGS) $@ $(MPE_P_COBJECTS) 128 128 @if [ "$(MPE_BUILD_FORTRAN2C)" = "yes" ] ; then \ 129 $(MAKE) $ {MPE_P_WOBJECTS} ; \129 $(MAKE) $(MAKEOPTS) ${MPE_P_WOBJECTS} ; \ 130 130 $(AR) $(ARFLAGS) $@ ${MPE_P_WOBJECTS} ; \ 131 131 fi -
mpich2/trunk/src/mpe2/src/slog2sdk/Makefile.in
r649 r5077 11 11 if [ -n "$$pkg" -a -s $$pkg/Makefile ] ; then \ 12 12 echo "Making $$pkg" ; \ 13 ( cd $$pkg && $(MAKE) ) ; \13 ( cd $$pkg && $(MAKE) $(MAKEOPTS) ) ; \ 14 14 fi ; \ 15 15 done … … 28 28 @-for pkg in $(PKGS) ; do \ 29 29 if [ -n "$$pkg" -a -s $$pkg/Makefile ] ; then \ 30 ( cd $$pkg && $(MAKE) clean ) ; \30 ( cd $$pkg && $(MAKE) $(MAKEOPTS) clean ) ; \ 31 31 fi ; \ 32 32 done … … 50 50 @-for pkg in $(PKGS) ; do \ 51 51 if [ -n "$$pkg" -a -s $$pkg/Makefile ] ; then \ 52 ( cd $$pkg && $(MAKE) distclean ) ; \52 ( cd $$pkg && $(MAKE) $(MAKEOPTS) distclean ) ; \ 53 53 fi ; \ 54 54 done … … 57 57 @-for pkg in $(PKGS) ; do \ 58 58 if [ -n "$$pkg" -a -s $$pkg/Makefile ] ; then \ 59 ( cd $$pkg && $(MAKE) maintainer-clean ) ; \59 ( cd $$pkg && $(MAKE) $(MAKEOPTS) maintainer-clean ) ; \ 60 60 fi ; \ 61 61 done … … 64 64 @-for pkg in $(PKGS) ; do \ 65 65 if [ -n "$$pkg" -a -s $$pkg/Makefile ] ; then \ 66 ( cd $$pkg && $(MAKE) owner-clean ) ; \66 ( cd $$pkg && $(MAKE) $(MAKEOPTS) owner-clean ) ; \ 67 67 fi ; \ 68 68 done -
mpich2/trunk/src/mpe2/src/slog2sdk/trace_rlog/Makefile.in
r649 r5077 5 5 6 6 all: 7 cd src && $(MAKE) 7 cd src && $(MAKE) $(MAKEOPTS) 8 8 9 9 install: … … 18 18 19 19 clean: 20 -cd src && $(MAKE) clean20 -cd src && $(MAKE) $(MAKEOPTS) clean 21 21 22 22 rmprog: … … 29 29 30 30 distclean: rmprog 31 @-cd src && $(MAKE) distclean31 @-cd src && $(MAKE) $(MAKEOPTS) distclean 32 32 @-$(RM) sbin/install-package 33 33 @-$(RM) Makefile libtool -
mpich2/trunk/src/mpe2/src/slog2sdk/trace_rlog/src/Makefile.in
r3776 r5077 64 64 $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $< 65 65 66 ALL: $(libbuild_dir)/$(LIB_TRACE) $(binbuild_dir)/$(PGM_PRINT) $(binbuild_dir)/$(PGM_CHECK) 66 ALL: $(libbuild_dir)/$(LIB_TRACE) 67 $(MAKE) $(MAKEOPTS) $(binbuild_dir)/$(PGM_PRINT) 68 $(MAKE) $(MAKEOPTS) $(binbuild_dir)/$(PGM_CHECK) 67 69 68 70 $(libbuild_dir)/$(LIB_TRACE): $(LOBJ) -
mpich2/trunk/src/mpe2/src/wrappers/Makefile.in
r100 r5077 24 24 MPE_HEADERS = "" 25 25 26 all: build_include build_lib_bin build_etc linktest_all 26 all: build_include build_etc 27 $(MAKE) $(MAKEOPTS) build_lib_bin 28 $(MAKE) $(MAKEOPTS) linktest_all 27 29 28 30 ####### Building from the source … … 45 47 46 48 build_lib_bin: 47 @( cd src && $(MAKE) )49 @( cd src && $(MAKE) $(MAKEOPTS) ) 48 50 49 51 build_etc: … … 53 55 54 56 ######## Linkage Tests 55 linktest_all: linktest_C linktest_F77 57 linktest_all: 58 $(MAKE) $(MAKEOPTS) linktest_C 59 $(MAKE) $(MAKEOPTS) linktest_F77 56 60 57 61 linktest_C: 58 62 @if [ "$(MPI_IMPL)" != "MPICH" -a "$(MPI_IMPL)" != "MPICH2" ] ; then \ 59 ( cd test && $(MAKE) linktest_C ) ; \63 ( cd test && $(MAKE) $(MAKEOPTS) linktest_C ) ; \ 60 64 fi 61 65 … … 64 68 if [ "$(MPI_IMPL)" != "MPICH" \ 65 69 -a "$(MPI_IMPL)" != "MPICH2" ] ; then \ 66 ( cd test && $(MAKE) linktest_F77 ) ; \70 ( cd test && $(MAKE) $(MAKEOPTS) linktest_F77 ) ; \ 67 71 fi ; \ 68 72 fi … … 85 89 86 90 clean: clean_bin clean_lib 87 @( cd src && $(MAKE) clean )91 @( cd src && $(MAKE) $(MAKEOPTS) clean ) 88 92 89 93 distclean: clean_include clean_bin clean_lib clean_etc 90 @-( cd src && $(MAKE) distclean )94 @-( cd src && $(MAKE) $(MAKEOPTS) distclean ) 91 95 @-$(RM) -f mpe_wrappers_conf.h 92 96 @-$(RM) -f Makefile test/Makefile -
mpich2/trunk/src/mpe2/src/wrappers/src/Makefile.in
r4813 r5077 100 100 # is needed and all the pre-requisites of libmpe_f2cmpi.a are met. 101 101 default: 102 $(MAKE) $ {libbuild_dir}/lib$(LOG_LIBNAME).a103 $(MAKE) $ {libbuild_dir}/lib$(TRACE_LIBNAME).a102 $(MAKE) $(MAKEOPTS) ${libbuild_dir}/lib$(LOG_LIBNAME).a 103 $(MAKE) $(MAKEOPTS) ${libbuild_dir}/lib$(TRACE_LIBNAME).a 104 104 @if [ "$(MPE_BUILD_FORTRAN2C)" = "yes" \ 105 105 -a "${F2CMPI_LIBS}" = "-l${F2CMPI_LIBNAME}" ] ; then \ 106 $(MAKE) $ {libbuild_dir}/lib$(F2CMPI_LIBNAME).a ; \106 $(MAKE) $(MAKEOPTS) ${libbuild_dir}/lib$(F2CMPI_LIBNAME).a ; \ 107 107 fi 108 $(MAKE) $ {libbuild_dir}/mpe_prof.@OBJEXT@108 $(MAKE) $(MAKEOPTS) ${libbuild_dir}/mpe_prof.@OBJEXT@ 109 109 110 110 #
