# Makefile.in generated automatically by automake 1.4-p4 from Makefile.am # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. # $Source: runtime/gasnet/other/ammpi/Makefile.am $ # $Date: Sat, 28 May 2005 02:53:07 -0700 $ # $Revision: 1.16.1.10 $ # Description: Makefile for AMMPI/GASNet # Copyright 2004, Dan Bonachea # Terms of use are as specified in license.txt # NOTE: This Makefile is used to tie in with the GASNet build infrastructure # the stand-alone AMMPI product doesn't currently provide an automake framework SHELL = @SHELL@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ sbindir = @sbindir@ libexecdir = @libexecdir@ datadir = @datadir@ sysconfdir = @sysconfdir@ sharedstatedir = @sharedstatedir@ localstatedir = @localstatedir@ libdir = @libdir@ infodir = @infodir@ mandir = @mandir@ includedir = @includedir@ oldincludedir = /usr/include DESTDIR = pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. ACLOCAL = @ACLOCAL@ AUTOCONF = @AUTOCONF@ AUTOMAKE = @AUTOMAKE@ AUTOHEADER = @AUTOHEADER@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ transform = @program_transform_name@ NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_alias = @build_alias@ build_triplet = @build@ host_alias = @host_alias@ host_triplet = @host@ target_alias = @target_alias@ target_triplet = @target@ ALLOCA = @ALLOCA@ AR = @AR@ AWK = @AWK@ BASENAME = @BASENAME@ BOURNE_SHELL = @BOURNE_SHELL@ BUILDCONFIG_DEFINES = @BUILDCONFIG_DEFINES@ BUILD_ID = @BUILD_ID@ BUILD_IS_SRC = @BUILD_IS_SRC@ COMPLETE_ = @COMPLETE_@ CONDUITS = @CONDUITS@ CONFIGURE_ARGS = @CONFIGURE_ARGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CROSS_COMPILING = @CROSS_COMPILING@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXCPPFLAGS = @CXXCPPFLAGS@ CXXFLAGS = @CXXFLAGS@ DIRNAME = @DIRNAME@ ELAN_INCLUDE = @ELAN_INCLUDE@ ELAN_LIBS = @ELAN_LIBS@ ENVCMD = @ENVCMD@ EXESUFFIX = @EXESUFFIX@ GASNET_INSTALL_CMD = @GASNET_INSTALL_CMD@ GASNET_MACHINE_DEFINES = @GASNET_MACHINE_DEFINES@ GASNET_PERL_BYTESFLAG = @GASNET_PERL_BYTESFLAG@ GASNET_REXEC_DEFINES = @GASNET_REXEC_DEFINES@ GASNET_THREAD_DEFINES = @GASNET_THREAD_DEFINES@ GASNET_THREAD_LIBS = @GASNET_THREAD_LIBS@ GASNET_UDP_LIBS = @GASNET_UDP_LIBS@ GASNET_VAPI_SPAWNER = @GASNET_VAPI_SPAWNER@ GMAKE = @GMAKE@ GM_INCLUDE = @GM_INCLUDE@ GM_LIB = @GM_LIB@ GM_MPI_COMPAT = @GM_MPI_COMPAT@ GM_NO_ALIAS = @GM_NO_ALIAS@ HAVE_ = @HAVE_@ HOST_CC = @HOST_CC@ HOST_CFLAGS = @HOST_CFLAGS@ INTTYPES_DEFINES = @INTTYPES_DEFINES@ LAPI_LD = @LAPI_LD@ LIBGCC = @LIBGCC@ LIBM = @LIBM@ LIBS = @LIBS@ LN_S = @LN_S@ MAKEINFO = @MAKEINFO@ MISC_CFLAGS = @MISC_CFLAGS@ MISC_CPPFLAGS = @MISC_CPPFLAGS@ MISC_CXXFLAGS = @MISC_CXXFLAGS@ MPIRUN_CMD = @MPIRUN_CMD@ MPI_CC = @MPI_CC@ MPI_CFLAGS = @MPI_CFLAGS@ MPI_DEFINES = @MPI_DEFINES@ MPI_LIBS = @MPI_LIBS@ NM = @NM@ PACKAGE = @PACKAGE@ PATH_ = @PATH_@ PERL = @PERL@ PTHREADS = @PTHREADS@ RANLIB = @RANLIB@ READLINK = @READLINK@ REXEC = @REXEC@ SCI_INCLUDES = @SCI_INCLUDES@ SCI_LIBS = @SCI_LIBS@ SHMEM_FLAGS = @SHMEM_FLAGS@ SHMEM_INCLUDE = @SHMEM_INCLUDE@ SHMEM_LIBDIR = @SHMEM_LIBDIR@ SHMEM_LIBS = @SHMEM_LIBS@ SIG = @SIG@ SIZEOF_ = @SIZEOF_@ SYSTEM_NAME = @SYSTEM_NAME@ SYSTEM_TUPLE = @SYSTEM_TUPLE@ TIMECMD = @TIMECMD@ TOOL_PREFIX = @TOOL_PREFIX@ TOP_BUILDDIR = @TOP_BUILDDIR@ TOP_SRCDIR = @TOP_SRCDIR@ VAPI_INCLUDE = @VAPI_INCLUDE@ VAPI_LIBCFLAGS = @VAPI_LIBCFLAGS@ VAPI_LIBDIR = @VAPI_LIBDIR@ VAPI_LIBS = @VAPI_LIBS@ VAPI_NO_ALIAS = @VAPI_NO_ALIAS@ VERSION = @VERSION@ cv_prefix = @cv_prefix@ gm_board_info = @gm_board_info@ have_mpcc_r = @have_mpcc_r@ scibench2 = @scibench2@ AUTOMAKE_OPTIONS = foreign 1.4 no-dependencies CC = @MPI_CC@ CFLAGS = @MPI_CFLAGS@ $(MANUAL_CFLAGS) $(apputils_flags) LDFLAGS = @LDFLAGS@ $(MANUAL_LDFLAGS) platform_defines = @GASNET_MACHINE_DEFINES@ @INTTYPES_DEFINES@ -DAMMPI_DISABLE_AMTAGS $(MANUAL_DEFINES) platform_libraries = @LIBS@ @MPI_LIBS@ VPATH = $(srcdir) testdir = $(srcdir)/../amxtests altincdir = $(srcdir)/.. INCLUDES = -I$(srcdir) -I$(altincdir) $(platform_defines) compile = $(CC) $(CFLAGS) $(INCLUDES) link = $(CC) $(CFLAGS) $(LDFLAGS) $(platform_defines) $(INCLUDES) linkend = $(platform_libraries) $(MANUAL_LIBS) @USE_MPI_CONDUIT_TRUE@lib_LIBRARIES = libammpi.a headers = ammpi.h ammpi_internal.h ammpi_spmd.h libammpi_a_SOURCES = $(headers) ammpi_ep.c ammpi_reqrep.c ammpi_spmd.c libammpi_a_DEPENDENCIES = $(libammpi_a_SOURCES:%.c=%.o) EXTRA_DIST = Makefile.common Makefile.standalone Makefile.tests Makefile.titanium.in license.txt testprograms = testam testbounce testbulk testlatency testlatencyM testping testreduce $(testprograms_ILP32only) AMMPI_RUNCMD = '@MPIRUN_CMD@' TEST_NODES = 2 TESTLOG = `pwd`/.test-results TEST_LINE = ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ AMMPI_RUNCMD_EXP = TEST_RUN_P=`echo "$$TEST_RUN" | sed 's/ .*$$//'` TEST_RUN_A=`echo "$$TEST_RUN" | sed 's/^[^ ]* //'` TEST_RUN_D=`pwd` TEST_DOIT=`echo $(AMMPI_RUNCMD) | sed 's/%N/$(TEST_NODES)/;s@%C@'"$$TEST_RUN"'@;s@%P@'"$$TEST_RUN_P"'@;s@%A@'"$$TEST_RUN_A"'@;s@%D@'"$$TEST_RUN_D"'@;s@%H@'"$${GASNET_NODEFILE:-$$PBS_NODEFILE}"'@;s/%V//'` TEST_RUNCMD = ; $(AMMPI_RUNCMD_EXP) ; testname=`basename $$TEST_RUN_P` ; faildesc="ammpi/$$testname" ; if test -x "$$TEST_RUN_P" ; then echo " **** $$testname **** "; echo $$TEST_DOIT ; ( eval $$TEST_DOIT || echo "ERROR: Test exited with failure code=$$?" 2>&1 ) | tee .test-output ; failure=`grep -e ERROR -e 'fatal signal' .test-output` ; if test "$$failure" != "" ; then echo " " >> $(TESTLOG) ; echo " *-* $$faildesc *-*" >> $(TESTLOG) ; echo " " >> $(TESTLOG) ; echo "$$failure" >> $(TESTLOG) ; fi ; rm -f .test-output ; echo $(TEST_LINE) ; fi TEST_ITERS = 100 TEST_MODE = P TEST_DEPTH = 32 TEST_DUPLEX = H AMMPI_NETWORKDEPTH = $(TEST_DEPTH) @USE_MPI_CONDUIT_TRUE@clean_local_files = libammpi.a *.o core .test-results @USE_MPI_CONDUIT_FALSE@clean_local_files = CLEANFILES = $(clean_local_files) mkinstalldirs = $(SHELL) $(top_srcdir)/config-aux/mkinstalldirs CONFIG_HEADER = ../../gasnet_config.h CONFIG_CLEAN_FILES = LIBRARIES = $(lib_LIBRARIES) DEFS = @DEFS@ -I. -I$(srcdir) -I../.. libammpi_a_LIBADD = libammpi_a_OBJECTS = ammpi_ep.o ammpi_reqrep.o ammpi_spmd.o COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ DIST_COMMON = Makefile.am Makefile.in DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = gtar GZIP_ENV = --best SOURCES = $(libammpi_a_SOURCES) OBJECTS = $(libammpi_a_OBJECTS) all: all-redirect .SUFFIXES: .SUFFIXES: .S .c .o .s $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(srcdir)/Makefile.tests cd $(top_srcdir) && $(AUTOMAKE) --foreign other/ammpi/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status mostlyclean-libLIBRARIES: clean-libLIBRARIES: -test -z "$(lib_LIBRARIES)" || rm -f $(lib_LIBRARIES) distclean-libLIBRARIES: maintainer-clean-libLIBRARIES: install-libLIBRARIES: $(lib_LIBRARIES) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(libdir) @list='$(lib_LIBRARIES)'; for p in $$list; do \ if test -f $$p; then \ echo " $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p"; \ $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p; \ else :; fi; \ done @$(POST_INSTALL) @list='$(lib_LIBRARIES)'; for p in $$list; do \ if test -f $$p; then \ echo " $(RANLIB) $(DESTDIR)$(libdir)/$$p"; \ $(RANLIB) $(DESTDIR)$(libdir)/$$p; \ else :; fi; \ done uninstall-libLIBRARIES: @$(NORMAL_UNINSTALL) list='$(lib_LIBRARIES)'; for p in $$list; do \ rm -f $(DESTDIR)$(libdir)/$$p; \ done .c.o: $(COMPILE) -c $< .s.o: $(COMPILE) -c $< .S.o: $(COMPILE) -c $< mostlyclean-compile: -rm -f *.o core *.core clean-compile: distclean-compile: -rm -f *.tab.c maintainer-clean-compile: libammpi.a: $(libammpi_a_OBJECTS) $(libammpi_a_DEPENDENCIES) -rm -f libammpi.a $(AR) cru libammpi.a $(libammpi_a_OBJECTS) $(libammpi_a_LIBADD) $(RANLIB) libammpi.a tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ here=`pwd` && cd $(srcdir) \ && mkid -f$$here/ID $$unique $(LISP) TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) mostlyclean-tags: clean-tags: distclean-tags: -rm -f TAGS ID maintainer-clean-tags: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = other/ammpi distdir: $(DISTFILES) @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$d/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done info-am: info: info-am dvi-am: dvi: dvi-am check-am: all-am check: check-am installcheck-am: installcheck: installcheck-am install-exec-am: install-libLIBRARIES install-exec: install-exec-am install-data-am: install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-am uninstall-am: uninstall-libLIBRARIES uninstall: uninstall-am all-am: Makefile $(LIBRARIES) all-redirect: all-am install-strip: $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install installdirs: $(mkinstalldirs) $(DESTDIR)$(libdir) mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: mostlyclean-am: mostlyclean-libLIBRARIES mostlyclean-compile \ mostlyclean-tags mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-libLIBRARIES clean-compile clean-tags clean-generic \ mostlyclean-am clean-local clean: clean-am distclean-am: distclean-libLIBRARIES distclean-compile distclean-tags \ distclean-generic clean-am distclean: distclean-am maintainer-clean-am: maintainer-clean-libLIBRARIES \ maintainer-clean-compile maintainer-clean-tags \ maintainer-clean-generic distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-am .PHONY: mostlyclean-libLIBRARIES distclean-libLIBRARIES \ clean-libLIBRARIES maintainer-clean-libLIBRARIES uninstall-libLIBRARIES \ install-libLIBRARIES mostlyclean-compile distclean-compile \ clean-compile maintainer-clean-compile tags mostlyclean-tags \ distclean-tags clean-tags maintainer-clean-tags distdir info-am info \ dvi-am dvi check check-am installcheck-am installcheck install-exec-am \ install-exec install-data-am install-data install-am install \ uninstall-am uninstall all-redirect all-am all installdirs \ mostlyclean-generic distclean-generic clean-generic \ maintainer-clean-generic clean mostlyclean distclean maintainer-clean @PLATFORM_ILP32_TRUE@ apputils_flags = @PLATFORM_ILP32_FALSE@ apputils_flags = -DAPPUTILS_OMIT_READWRITE # ---------- test programs ------------- # all the test executables @PLATFORM_ILP32_TRUE@ testprograms_ILP32only = \ @PLATFORM_ILP32_TRUE@ testgetput \ @PLATFORM_ILP32_TRUE@ testreadwrite @PLATFORM_ILP32_FALSE@ testprograms_ILP32only = tests: apputils.o $(testprograms) test%.o : $(testdir)/test%.c $(testdir)/*.h $(headers) $(compile) -DAMMPI -I$(testdir) -c $< -o $@ apputils.o : $(testdir)/apputils.c $(testdir)/apputils.h $(headers) $(compile) -DAMMPI -I$(testdir) -c $(testdir)/apputils.c -o apputils.o test%: test%.o apputils.o libammpi.a $(link) -o $@ $< apputils.o -L. -lammpi $(linkend) tests-clean: rm -f $(testprograms) run-tests: tests @rm -f .test-results ; touch $(TESTLOG) @echo $(TEST_LINE) @echo Running AMMPI tests... @echo If this fails to spawn a job, you may need to re-run with a @echo command like: gmake run-tests AMMPI_RUNCMD=\"$(AMMPI_RUNCMD)\" @echo $(TEST_LINE) @TEST_RUN="./testping $(TEST_ITERS) $(TEST_MODE)" $(TEST_RUNCMD) @TEST_RUN="./testlatency $(TEST_ITERS) $(TEST_MODE)" $(TEST_RUNCMD) @TEST_RUN="./testlatencyM $(TEST_ITERS) $(TEST_MODE) 64" $(TEST_RUNCMD) @TEST_RUN="./testbulk $(TEST_ITERS) 1048576 $(TEST_MODE) $(TEST_DUPLEX)" $(TEST_RUNCMD) @TEST_RUN="./testam $(TEST_ITERS) $(TEST_MODE)" $(TEST_RUNCMD) @TEST_RUN="./testbounce $(TEST_ITERS) $(TEST_MODE)" $(TEST_RUNCMD) @TEST_RUN="./testreduce " $(TEST_RUNCMD) @TEST_RUN="./testgetput $(TEST_ITERS)" $(TEST_RUNCMD) @TEST_RUN="./testreadwrite $(TEST_ITERS)" $(TEST_RUNCMD) @echo TESTS COMPLETE %.o: %.c ammpi.h ammpi_spmd.h ammpi_internal.h $(compile) -DAMMPI -o $@ -c $< @USE_MPI_CONDUIT_TRUE@@GNU_NM_TRUE@check-exports: libammpi.a @USE_MPI_CONDUIT_TRUE@@GNU_NM_TRUE@ @echo Checking libammpi exports... @USE_MPI_CONDUIT_TRUE@@GNU_NM_TRUE@ @lib=libammpi.a ; \ @USE_MPI_CONDUIT_TRUE@@GNU_NM_TRUE@ @NM@ --defined-only $$lib | \ @USE_MPI_CONDUIT_TRUE@@GNU_NM_TRUE@ grep -v -e ' [\._]*ammpi_' -e ' [\._]*AMMPI_' -e ' [\._]*AM_' \ @USE_MPI_CONDUIT_TRUE@@GNU_NM_TRUE@ -e ' [\._]*gasnett_' -e ' [\._]*gasneti_' \ @USE_MPI_CONDUIT_TRUE@@GNU_NM_TRUE@ -e __FUNCTION__ -e __PRETTY_FUNCTION__ -e debug_info_seg | \ @USE_MPI_CONDUIT_TRUE@@GNU_NM_TRUE@ @PERL@ -n -e 'print if /^[0-9a-fA-F]+\s+[A-Z]\s+/' > .$$lib.exp; \ @USE_MPI_CONDUIT_TRUE@@GNU_NM_TRUE@ if test -s .$$lib.exp ; then \ @USE_MPI_CONDUIT_TRUE@@GNU_NM_TRUE@ cat .$$lib.exp ; \ @USE_MPI_CONDUIT_TRUE@@GNU_NM_TRUE@ echo FAILED ; \ @USE_MPI_CONDUIT_TRUE@@GNU_NM_TRUE@ failed=1 ; \ @USE_MPI_CONDUIT_TRUE@@GNU_NM_TRUE@ else \ @USE_MPI_CONDUIT_TRUE@@GNU_NM_TRUE@ echo PASSED ; \ @USE_MPI_CONDUIT_TRUE@@GNU_NM_TRUE@ fi ; \ @USE_MPI_CONDUIT_TRUE@@GNU_NM_TRUE@ rm -f .$$lib.exp ; \ @USE_MPI_CONDUIT_TRUE@@GNU_NM_TRUE@ exit $$failed @USE_MPI_CONDUIT_TRUE@@GNU_NM_FALSE@check-exports: libammpi.a @USE_MPI_CONDUIT_TRUE@@GNU_NM_FALSE@ @echo check-exports test SKIPPED @USE_MPI_CONDUIT_TRUE@check: check-exports tests @USE_MPI_CONDUIT_TRUE@clean-local: @USE_MPI_CONDUIT_TRUE@ @for f in $(testprograms); do \ @USE_MPI_CONDUIT_TRUE@ cmd="rm -f '$$f$(EXESUFFIX)'"; echo "$$cmd"; eval "$$cmd" || exit $$? ; \ @USE_MPI_CONDUIT_TRUE@ done; @USE_MPI_CONDUIT_FALSE@clean-local: @USE_MPI_CONDUIT_FALSE@ @: #empty rule force: .PHONY: force tests run-tests # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: