2004-09-25 23:31:17 +04:00
|
|
|
#
|
2004-11-22 04:38:40 +03:00
|
|
|
# Copyright (c) 2004-2005 The Trustees of Indiana University.
|
|
|
|
# All rights reserved.
|
|
|
|
# Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
|
|
|
|
# All rights reserved.
|
2004-11-28 23:09:25 +03:00
|
|
|
# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
# University of Stuttgart. All rights reserved.
|
2005-03-24 15:43:37 +03:00
|
|
|
# Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
# All rights reserved.
|
2004-11-22 04:38:40 +03:00
|
|
|
# $COPYRIGHT$
|
|
|
|
#
|
|
|
|
# Additional copyrights may follow
|
|
|
|
#
|
2004-01-07 18:07:14 +03:00
|
|
|
# $HEADER$
|
2003-11-22 19:36:58 +03:00
|
|
|
#
|
|
|
|
|
2005-09-30 17:32:39 +04:00
|
|
|
dist_pkgdata_DATA = help-wrapper.txt
|
2003-11-22 19:36:58 +03:00
|
|
|
|
|
|
|
# This is ugly, but we need it so that people can change things at
|
|
|
|
# "make" time (e.g., "make sysconfdir=/foo/bar all") as documented in
|
|
|
|
# autoconf.
|
|
|
|
|
2004-01-12 10:09:31 +03:00
|
|
|
AM_CPPFLAGS = \
|
2004-06-07 19:33:53 +04:00
|
|
|
-DOMPI_PREFIX="\"$(prefix)\"" \
|
|
|
|
-DOMPI_INCDIR="\"$(includedir)\"" \
|
2005-04-13 15:54:36 +04:00
|
|
|
-DOMPI_LIBDIR="\"$(libdir)\"" \
|
|
|
|
-DOMPI_FC_MODULE_FLAG="\"$(OMPI_FC_MODULE_FLAG)\""
|
2004-01-12 10:09:31 +03:00
|
|
|
|
2005-07-08 22:26:01 +04:00
|
|
|
if WANT_INSTALL_HEADERS
|
|
|
|
AM_CPPFLAGS += -DOMPI_WANT_DEVEL_HEADERS=1
|
2005-07-09 01:50:21 +04:00
|
|
|
else
|
|
|
|
AM_CPPFLAGS += -DOMPI_WANT_DEVEL_HEADERS=0
|
2005-07-08 22:26:01 +04:00
|
|
|
endif
|
|
|
|
|
2005-09-30 17:32:39 +04:00
|
|
|
EXTRA_DIST = wrap.cc wrap_engine.cc
|
2004-01-12 10:09:31 +03:00
|
|
|
|
2004-09-25 23:31:17 +04:00
|
|
|
bin_PROGRAMS = mpicc mpic++ mpif77 mpif90
|
2004-01-12 10:09:31 +03:00
|
|
|
|
2005-07-02 19:06:47 +04:00
|
|
|
libs = \
|
|
|
|
$(top_builddir)/opal/libopal.la
|
2004-01-12 10:09:31 +03:00
|
|
|
|
2005-01-28 04:25:10 +03:00
|
|
|
wrap_sources = wrap.cc wrap_engine.cc ompi_wrap.h
|
2004-09-25 23:31:17 +04:00
|
|
|
|
2005-01-28 04:25:10 +03:00
|
|
|
mpicc_SOURCES = mpicc.cc ompi_wrap.h $(wrap_sources)
|
2005-02-08 08:06:15 +03:00
|
|
|
mpicc_LDADD = $(libs) $(LIBMPI_EXTRA_LIBS)
|
|
|
|
mpicc_LDFLAGS = $(LIBMPI_EXTRA_LDFLAGS)
|
2004-01-12 10:09:31 +03:00
|
|
|
mpicc_DEPENDENCIES = $(libs)
|
|
|
|
|
2005-01-28 04:25:10 +03:00
|
|
|
mpic___SOURCES = mpicxx.cc ompi_wrap.h $(wrap_sources)
|
2005-02-08 08:06:15 +03:00
|
|
|
mpic___LDADD = $(libs) $(LIBMPI_EXTRA_LIBS)
|
|
|
|
mpic___LDFLAGS = $(LIBMPI_EXTRA_LDFLAGS)
|
2004-01-12 10:09:31 +03:00
|
|
|
mpic___DEPENDENCIES = $(libs)
|
|
|
|
|
2005-01-28 04:25:10 +03:00
|
|
|
mpif77_SOURCES = mpif77.cc ompi_wrap.h $(wrap_sources)
|
2005-02-08 08:06:15 +03:00
|
|
|
mpif77_LDADD = $(libs) $(LIBMPI_EXTRA_LIBS)
|
|
|
|
mpif77_LDFLAGS = $(LIBMPI_EXTRA_LDFLAGS)
|
2004-01-12 10:09:31 +03:00
|
|
|
mpif77_DEPENDENCIES = $(libs)
|
|
|
|
|
2005-01-28 04:25:10 +03:00
|
|
|
mpif90_SOURCES = mpif90.cc ompi_wrap.h $(wrap_sources)
|
2005-02-08 08:06:15 +03:00
|
|
|
mpif90_LDADD = $(libs) $(LIBMPI_EXTRA_LIBS)
|
|
|
|
mpif90_LDFLAGS = $(LIBMPI_EXTRA_LDFLAGS)
|
2004-01-12 10:09:31 +03:00
|
|
|
mpif90_DEPENDENCIES = $(libs)
|
2003-11-22 19:36:58 +03:00
|
|
|
|
2004-01-12 10:09:31 +03:00
|
|
|
# Since this is C++ and we use templates (the STL), also ditch the
|
|
|
|
# template repository directory
|
|
|
|
|
|
|
|
clean-local:
|
2004-06-07 19:33:53 +04:00
|
|
|
test -z "$(OMPI_CXX_TEMPLATE_REPOSITORY)" || $(RM) -rf $(OMPI_CXX_TEMPLATE_REPOSITORY)
|
2004-01-12 10:09:31 +03:00
|
|
|
|
|
|
|
if WANT_DEPRECATED_EXECUTABLE_NAMES
|
|
|
|
if CASE_SENSITIVE_FS
|
|
|
|
install-exec-hook:
|
|
|
|
(cd $(DESTDIR)$(bindir); rm -f hcc; ln -s mpicc hcc)
|
|
|
|
(cd $(DESTDIR)$(bindir); rm -f hcp; ln -s mpiCC hcp)
|
|
|
|
(cd $(DESTDIR)$(bindir); rm -f hf77; ln -s mpif77 hf77)
|
|
|
|
(cd $(DESTDIR)$(bindir); rm -f mpiCC; ln -s mpic++ mpiCC)
|
2005-06-15 02:41:54 +04:00
|
|
|
(cd $(DESTDIR)$(bindir); rm -f mpicxx; ln -s mpic++ mpicxx)
|
2004-01-12 10:09:31 +03:00
|
|
|
else
|
|
|
|
install-exec-hook:
|
|
|
|
(cd $(DESTDIR)$(bindir); rm -f hcc; ln -s mpicc hcc)
|
|
|
|
(cd $(DESTDIR)$(bindir); rm -f hcp; ln -s mpic++ hcp)
|
|
|
|
(cd $(DESTDIR)$(bindir); rm -f hf77; ln -s mpif77 hf77)
|
2005-06-15 02:41:54 +04:00
|
|
|
(cd $(DESTDIR)$(bindir); rm -f mpicxx; ln -s mpic++ mpicxx)
|
2004-01-12 10:09:31 +03:00
|
|
|
endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# mpiCC might be a symlink we created, so be nice....
|
|
|
|
#
|
|
|
|
if CASE_SENSITIVE_FS
|
|
|
|
uninstall-local:
|
|
|
|
rm -f $(DESTDIR)$(bindir)/hcc \
|
|
|
|
$(DESTDIR)$(bindir)/hcp \
|
|
|
|
$(DESTDIR)$(bindir)/hf77 \
|
2005-06-15 02:41:54 +04:00
|
|
|
$(DESTDIR)$(bindir)/mpiCC \
|
|
|
|
$(DESTDIR)$(bindir)/mpicxx
|
2004-01-12 10:09:31 +03:00
|
|
|
else
|
|
|
|
uninstall-local:
|
|
|
|
rm -f $(DESTDIR)$(bindir)/hcc \
|
|
|
|
$(DESTDIR)$(bindir)/hcp \
|
2005-06-15 02:41:54 +04:00
|
|
|
$(DESTDIR)$(bindir)/hf77 \
|
|
|
|
$(DESTDIR)$(bindir)/mpicxx
|
2004-01-12 10:09:31 +03:00
|
|
|
endif
|
2004-08-18 17:52:24 +04:00
|
|
|
|
2004-01-12 11:08:20 +03:00
|
|
|
else
|
2004-08-18 17:52:24 +04:00
|
|
|
#
|
|
|
|
# If we don't have deprecated names, just do the mpiCC / mpic++ stuff.
|
|
|
|
# If we are on a non-case sensitive file system, don't do anything
|
|
|
|
# with mpiCC, since that is the same as mpicc, and there is no way
|
|
|
|
# that can end good.
|
|
|
|
#
|
2004-08-17 06:34:17 +04:00
|
|
|
if CASE_SENSITIVE_FS
|
2004-01-12 11:08:20 +03:00
|
|
|
install-exec-hook:
|
2004-08-17 06:34:17 +04:00
|
|
|
(cd $(DESTDIR)$(bindir); rm -f mpiCC; ln -s mpic++ mpiCC)
|
2005-06-15 02:41:54 +04:00
|
|
|
(cd $(DESTDIR)$(bindir); rm -f mpicxx; ln -s mpic++ mpicxx)
|
2004-08-17 06:34:17 +04:00
|
|
|
else
|
|
|
|
install-exec-hook:
|
2005-06-15 02:41:54 +04:00
|
|
|
(cd $(DESTDIR)$(bindir); rm -f mpicxx; ln -s mpic++ mpicxx)
|
2004-08-17 06:34:17 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
if CASE_SENSITIVE_FS
|
2004-01-12 11:08:20 +03:00
|
|
|
uninstall-local:
|
2005-06-15 02:41:54 +04:00
|
|
|
rm -f $(DESTDIR)$(bindir)/mpiCC \
|
|
|
|
$(DESTDIR)$(bindir)/mpicxx
|
2004-08-17 06:34:17 +04:00
|
|
|
else
|
|
|
|
uninstall-local:
|
2005-06-15 02:41:54 +04:00
|
|
|
rm -f $(DESTDIR)$(bindir)/mpicxx
|
2004-08-17 06:34:17 +04:00
|
|
|
endif
|
2004-01-12 10:09:31 +03:00
|
|
|
endif
|