## Process this file with automake to produce Makefile.in -*- makefile -*- # $Source: /var/local/cvs/gasnet/lapi-conduit/Makefile.am,v $ # $Date: 2007/10/31 18:32:58 $ # $Revision: 1.37 $ # Description: Makefile for GASNet lapi conduit # Copyright 2002, Dan Bonachea # Terms of use are as specified in license.txt AUTOMAKE_OPTIONS = foreign 1.4 CONDUIT_NAME=lapi ## From VAPI conduit ## ## Firehose ## fh_srcdir = $(top_srcdir)/other/firehose if HAVE_LAPI_RDMA # Some Firehose source files need extra CFLAGS do disable strict/ANSI aliasing # optimizations. By building them separately we can avoid disabling these # useful optimizations for the entire conduit. fh_special_objs = \ $(builddir)/firehose-$(THREAD_MODEL).o \ $(builddir)/firehose_region-$(THREAD_MODEL).o fh_install_hdrs = $(fh_srcdir)/firehose_trace.h $(builddir)/firehose-$(THREAD_MODEL).o: force @CC@ $(LIBCFLAGS) $(FH_CFLAGS) -o $@ -c $(fh_srcdir)/firehose.c $(builddir)/firehose_region-$(THREAD_MODEL).o: force @CC@ $(LIBCFLAGS) $(FH_CFLAGS) -o $@ -c $(fh_srcdir)/firehose_region.c # These source files, flags, etc. are only needed when building for RDMA fh_srclist = \ $(srcdir)/gasnet_firehose.c \ $(fh_srcdir)/firehose_hash.c fh_extralibcflags = -I$(fh_srcdir) fh_extradeps = $(fh_srcdir)/*.[ch] endif # any conduit-specific subdirectories containing Makefile.am's SUBDIRS = . # complete list of files in the conduit directory # include all headers, documentation, etc. # and any subdirectories not containing Makefile.am's CONDUIT_FILELIST = \ gasnet_core.c \ gasnet_core.h \ gasnet_core_fwd.h \ gasnet_core_help.h \ gasnet_core_internal.h \ gasnet_extended.c \ gasnet_extended_fwd.h \ gasnet_extended_internal.h \ gasnet_firehose.c \ firehose_fwd.h \ README-RDMA \ STATUS \ license.txt # list of conduit core and extended .c source files # to be compiled into libgasnet on the compiler command line CONDUIT_SOURCELIST = \ $(srcdir)/gasnet_core.c \ $(srcdir)/gasnet_extended.c \ $(fh_srclist) # additional -I or -D directives needed by this specific conduit # other than the standard GASNet includes and flags CONDUIT_EXTRALIBCFLAGS = $(fh_extralibcflags) # additional conduit header files to install from external, non-standard directories CONDUIT_EXTRAHEADERS = $(fh_install_hdrs) # additional file dependencies not mentioned elsewhere # that should force libgasnet rebuild on update CONDUIT_EXTRADEPS = $(fh_extradeps) # additional object files to be included in libgasnet that need to be compiled # using a special, conduit-specific command. These should also be included as # forced targets in this file, and should probably use LIBINCLUDES/LIBDEFINES CONDUIT_SPECIAL_OBJS = $(fh_special_objs) # the default job spawn command to be used for "make run-tests" # The following substitutions are performed: # %P = program executable name # %N = requested node count # %A = program arguments # %Q: Bug1039 - poe requires overquoting CONDUIT_RUNCMD = @ENVCMD@ MP_FENCE=-- poe %P -nodes %N -tasks_per_node 1 -rmpool 1 -msg_api LAPI -euilib us -retry 1 -retrycount 10000 @POE_RDMA_ARGS@ -- %Q # conduit-specific tests in ../tests directory CONDUIT_TESTS = if HAVE_LAPI_RDMA # conduit-specific hook to install README-RDMA # stadard uninstall rules are sufficient conduit_has_install_data_hook = yes do-install-data-conduit: $(INSTALL_DATA) $(srcdir)/README-RDMA $(DESTDIR)$(docdir)/README-lapi_rdma endif # -------- Do not modify anything below this line -------- if BUILD_SEQ_LIBS libgasnet_lapi_seq_a_SOURCES = libraries_seq = libgasnet-lapi-seq.a endif if BUILD_PAR_LIBS libgasnet_lapi_par_a_SOURCES = libraries_par = libgasnet-lapi-par.a endif if BUILD_PARSYNC_LIBS libgasnet_lapi_parsync_a_SOURCES = libraries_parsync = libgasnet-lapi-parsync.a endif libraries = $(libraries_seq) $(libraries_par) $(libraries_parsync) include $(top_builddir)/other/Makefile-conduit.mak libgasnet-lapi-seq.a: $(libgasnet_dependencies) @$(MAKE) do-libgasnet-seq libgasnet-lapi-par.a: $(libgasnet_dependencies) @$(MAKE) do-libgasnet-par libgasnet-lapi-parsync.a: $(libgasnet_dependencies) @$(MAKE) do-libgasnet-parsync if USE_LAPI_CONDUIT lib_LIBRARIES = $(libraries) all-local: $(lib_LIBRARIES) $(makefile_fragments) clean-local: do-clean-local install-data-local: do-install-data-local uninstall-local: do-uninstall-local else $(top_srcdir)/gasnet.h: do-error endif