2004-09-25 19:31:17 +00:00
|
|
|
#
|
2004-11-22 01:38:40 +00: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 20:09:25 +00:00
|
|
|
# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
# University of Stuttgart. All rights reserved.
|
2005-03-24 12:43:37 +00:00
|
|
|
# Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
# All rights reserved.
|
2004-11-22 01:38:40 +00:00
|
|
|
# $COPYRIGHT$
|
|
|
|
#
|
|
|
|
# Additional copyrights may follow
|
|
|
|
#
|
2004-01-07 15:07:14 +00:00
|
|
|
# $HEADER$
|
2003-11-22 16:36:58 +00:00
|
|
|
#
|
|
|
|
|
2005-09-07 05:54:53 +00:00
|
|
|
|
2003-11-22 16:36:58 +00: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 07:09:31 +00:00
|
|
|
AM_CPPFLAGS = \
|
2004-06-07 15:33:53 +00:00
|
|
|
-DOMPI_PREFIX="\"$(prefix)\"" \
|
|
|
|
-DOMPI_INCDIR="\"$(includedir)\"" \
|
2005-04-13 11:54:36 +00:00
|
|
|
-DOMPI_LIBDIR="\"$(libdir)\"" \
|
|
|
|
-DOMPI_FC_MODULE_FLAG="\"$(OMPI_FC_MODULE_FLAG)\""
|
2004-01-12 07:09:31 +00:00
|
|
|
|
2005-07-08 18:26:01 +00:00
|
|
|
if WANT_INSTALL_HEADERS
|
|
|
|
AM_CPPFLAGS += -DOMPI_WANT_DEVEL_HEADERS=1
|
2005-07-08 21:50:21 +00:00
|
|
|
else
|
|
|
|
AM_CPPFLAGS += -DOMPI_WANT_DEVEL_HEADERS=0
|
2005-07-08 18:26:01 +00:00
|
|
|
endif
|
|
|
|
|
2004-09-25 19:31:17 +00:00
|
|
|
EXTRA_DIST = wrap.cc wrap_engine.cc $(pkgdata_DATA)
|
|
|
|
|
|
|
|
pkgdata_DATA = help-wrapper.txt
|
2004-01-12 07:09:31 +00:00
|
|
|
|
2004-09-25 19:31:17 +00:00
|
|
|
bin_PROGRAMS = mpicc mpic++ mpif77 mpif90
|
2004-01-12 07:09:31 +00:00
|
|
|
|
2005-07-02 15:06:47 +00:00
|
|
|
libs = \
|
|
|
|
$(top_builddir)/opal/libopal.la
|
2004-01-12 07:09:31 +00:00
|
|
|
|
2005-01-28 01:25:10 +00:00
|
|
|
wrap_sources = wrap.cc wrap_engine.cc ompi_wrap.h
|
2004-09-25 19:31:17 +00:00
|
|
|
|
2005-01-28 01:25:10 +00:00
|
|
|
mpicc_SOURCES = mpicc.cc ompi_wrap.h $(wrap_sources)
|
2005-02-08 05:06:15 +00:00
|
|
|
mpicc_LDADD = $(libs) $(LIBMPI_EXTRA_LIBS)
|
|
|
|
mpicc_LDFLAGS = $(LIBMPI_EXTRA_LDFLAGS)
|
2004-01-12 07:09:31 +00:00
|
|
|
mpicc_DEPENDENCIES = $(libs)
|
|
|
|
|
2005-01-28 01:25:10 +00:00
|
|
|
mpic___SOURCES = mpicxx.cc ompi_wrap.h $(wrap_sources)
|
2005-02-08 05:06:15 +00:00
|
|
|
mpic___LDADD = $(libs) $(LIBMPI_EXTRA_LIBS)
|
|
|
|
mpic___LDFLAGS = $(LIBMPI_EXTRA_LDFLAGS)
|
2004-01-12 07:09:31 +00:00
|
|
|
mpic___DEPENDENCIES = $(libs)
|
|
|
|
|
2005-01-28 01:25:10 +00:00
|
|
|
mpif77_SOURCES = mpif77.cc ompi_wrap.h $(wrap_sources)
|
2005-02-08 05:06:15 +00:00
|
|
|
mpif77_LDADD = $(libs) $(LIBMPI_EXTRA_LIBS)
|
|
|
|
mpif77_LDFLAGS = $(LIBMPI_EXTRA_LDFLAGS)
|
2004-01-12 07:09:31 +00:00
|
|
|
mpif77_DEPENDENCIES = $(libs)
|
|
|
|
|
2005-01-28 01:25:10 +00:00
|
|
|
mpif90_SOURCES = mpif90.cc ompi_wrap.h $(wrap_sources)
|
2005-02-08 05:06:15 +00:00
|
|
|
mpif90_LDADD = $(libs) $(LIBMPI_EXTRA_LIBS)
|
|
|
|
mpif90_LDFLAGS = $(LIBMPI_EXTRA_LDFLAGS)
|
2004-01-12 07:09:31 +00:00
|
|
|
mpif90_DEPENDENCIES = $(libs)
|
2003-11-22 16:36:58 +00:00
|
|
|
|
2004-01-12 07:09:31 +00:00
|
|
|
# Since this is C++ and we use templates (the STL), also ditch the
|
|
|
|
# template repository directory
|
|
|
|
|
|
|
|
clean-local:
|
2004-06-07 15:33:53 +00:00
|
|
|
test -z "$(OMPI_CXX_TEMPLATE_REPOSITORY)" || $(RM) -rf $(OMPI_CXX_TEMPLATE_REPOSITORY)
|
2004-01-12 07:09:31 +00: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-14 22:41:54 +00:00
|
|
|
(cd $(DESTDIR)$(bindir); rm -f mpicxx; ln -s mpic++ mpicxx)
|
2004-01-12 07:09:31 +00: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-14 22:41:54 +00:00
|
|
|
(cd $(DESTDIR)$(bindir); rm -f mpicxx; ln -s mpic++ mpicxx)
|
2004-01-12 07:09:31 +00: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-14 22:41:54 +00:00
|
|
|
$(DESTDIR)$(bindir)/mpiCC \
|
|
|
|
$(DESTDIR)$(bindir)/mpicxx
|
2004-01-12 07:09:31 +00:00
|
|
|
else
|
|
|
|
uninstall-local:
|
|
|
|
rm -f $(DESTDIR)$(bindir)/hcc \
|
|
|
|
$(DESTDIR)$(bindir)/hcp \
|
2005-06-14 22:41:54 +00:00
|
|
|
$(DESTDIR)$(bindir)/hf77 \
|
|
|
|
$(DESTDIR)$(bindir)/mpicxx
|
2004-01-12 07:09:31 +00:00
|
|
|
endif
|
2004-08-18 13:52:24 +00:00
|
|
|
|
2004-01-12 08:08:20 +00:00
|
|
|
else
|
2004-08-18 13:52:24 +00: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 02:34:17 +00:00
|
|
|
if CASE_SENSITIVE_FS
|
2004-01-12 08:08:20 +00:00
|
|
|
install-exec-hook:
|
2004-08-17 02:34:17 +00:00
|
|
|
(cd $(DESTDIR)$(bindir); rm -f mpiCC; ln -s mpic++ mpiCC)
|
2005-06-14 22:41:54 +00:00
|
|
|
(cd $(DESTDIR)$(bindir); rm -f mpicxx; ln -s mpic++ mpicxx)
|
2004-08-17 02:34:17 +00:00
|
|
|
else
|
|
|
|
install-exec-hook:
|
2005-06-14 22:41:54 +00:00
|
|
|
(cd $(DESTDIR)$(bindir); rm -f mpicxx; ln -s mpic++ mpicxx)
|
2004-08-17 02:34:17 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
if CASE_SENSITIVE_FS
|
2004-01-12 08:08:20 +00:00
|
|
|
uninstall-local:
|
2005-06-14 22:41:54 +00:00
|
|
|
rm -f $(DESTDIR)$(bindir)/mpiCC \
|
|
|
|
$(DESTDIR)$(bindir)/mpicxx
|
2004-08-17 02:34:17 +00:00
|
|
|
else
|
|
|
|
uninstall-local:
|
2005-06-14 22:41:54 +00:00
|
|
|
rm -f $(DESTDIR)$(bindir)/mpicxx
|
2004-08-17 02:34:17 +00:00
|
|
|
endif
|
2004-01-12 07:09:31 +00:00
|
|
|
endif
|