2004-09-25 23:31:17 +04:00
|
|
|
#
|
2005-11-05 22:57:48 +03:00
|
|
|
# Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
# University Research and Technology
|
|
|
|
# Corporation. All rights reserved.
|
|
|
|
# Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
# of Tennessee Research Foundation. 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
|
|
|
#
|
|
|
|
|
2006-01-16 04:48:03 +03:00
|
|
|
dist_pkgdata_DATA = help-wrapper.txt \
|
|
|
|
ompicc-wrapper-data.txt \
|
|
|
|
ompic++-wrapper-data.txt \
|
|
|
|
ompif77-wrapper-data.txt \
|
|
|
|
ompif90-wrapper-data.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)
|
2006-01-16 04:48:03 +03:00
|
|
|
mpicc_LDADD = $(libs)
|
|
|
|
mpicc_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)
|
2006-01-16 04:48:03 +03:00
|
|
|
mpic___LDADD = $(libs)
|
|
|
|
mpic___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)
|
2006-01-16 04:48:03 +03:00
|
|
|
mpif77_LDADD = $(libs)
|
|
|
|
mpif77_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)
|
2006-01-16 04:48:03 +03:00
|
|
|
mpif90_LDADD = $(libs)
|
|
|
|
mpif90_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:
|
2005-12-31 15:33:44 +03:00
|
|
|
(cd $(DESTDIR)$(bindir); rm -f hcc$(EXEEXT); $(LN_S) mpicc hcc)
|
|
|
|
(cd $(DESTDIR)$(bindir); rm -f hcp$(EXEEXT); $(LN_S) mpiCC hcp)
|
|
|
|
(cd $(DESTDIR)$(bindir); rm -f hf77$(EXEEXT); $(LN_S) mpif77 hf77)
|
|
|
|
(cd $(DESTDIR)$(bindir); rm -f mpiCC$(EXEEXT); $(LN_S) mpic++ mpiCC)
|
|
|
|
(cd $(DESTDIR)$(bindir); rm -f mpicxx$(EXEEXT); $(LN_S) mpic++ mpicxx)
|
2004-01-12 10:09:31 +03:00
|
|
|
else
|
|
|
|
install-exec-hook:
|
2005-12-31 15:33:44 +03:00
|
|
|
(cd $(DESTDIR)$(bindir); rm -f hcc$(EXEEXT); $(LN_S) mpicc hcc)
|
|
|
|
(cd $(DESTDIR)$(bindir); rm -f hcp$(EXEEXT); $(LN_S) mpic++ hcp)
|
|
|
|
(cd $(DESTDIR)$(bindir); rm -f hf77$(EXEEXT); $(LN_S) mpif77 hf77)
|
|
|
|
(cd $(DESTDIR)$(bindir); rm -f mpicxx$(EXEEXT); $(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:
|
2005-12-31 15:33:44 +03:00
|
|
|
rm -f $(DESTDIR)$(bindir)/hcc$(EXEEXT) \
|
|
|
|
$(DESTDIR)$(bindir)/hcp$(EXEEXT) \
|
|
|
|
$(DESTDIR)$(bindir)/hf77$(EXEEXT) \
|
|
|
|
$(DESTDIR)$(bindir)/mpiCC$(EXEEXT) \
|
|
|
|
$(DESTDIR)$(bindir)/mpicxx$(EXEEXT)
|
2004-01-12 10:09:31 +03:00
|
|
|
else
|
|
|
|
uninstall-local:
|
2005-12-31 15:33:44 +03:00
|
|
|
rm -f $(DESTDIR)$(bindir)/hcc$(EXEEXT) \
|
|
|
|
$(DESTDIR)$(bindir)/hcp$(EXEEXT) \
|
|
|
|
$(DESTDIR)$(bindir)/hf77$(EXEEXT) \
|
|
|
|
$(DESTDIR)$(bindir)/mpicxx$(EXEEXT)
|
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:
|
2005-12-31 15:33:44 +03:00
|
|
|
(cd $(DESTDIR)$(bindir); rm -f mpiCC$(EXEEXT); $(LN_S) mpic++ mpiCC)
|
|
|
|
(cd $(DESTDIR)$(bindir); rm -f mpicxx$(EXEEXT); $(LN_S) mpic++ mpicxx)
|
2006-01-16 04:48:03 +03:00
|
|
|
|
|
|
|
(cd $(DESTDIR)$(bindir); rm -f ompicc$(EXEEXT); $(LN_S) opal_wrapper ompicc)
|
|
|
|
(cd $(DESTDIR)$(bindir); rm -f ompic++$(EXEEXT); $(LN_S) opal_wrapper ompic++)
|
|
|
|
(cd $(DESTDIR)$(bindir); rm -f ompiCC$(EXEEXT); $(LN_S) opal_wrapper ompiCC)
|
|
|
|
(cd $(DESTDIR)$(bindir); rm -f ompicxx$(EXEEXT); $(LN_S) opal_wrapper ompicxx)
|
|
|
|
(cd $(DESTDIR)$(bindir); rm -f ompif77$(EXEEXT); $(LN_S) opal_wrapper ompif77)
|
|
|
|
(cd $(DESTDIR)$(bindir); rm -f ompif90$(EXEEXT); $(LN_S) opal_wrapper ompif90)
|
|
|
|
|
|
|
|
(cd $(DESTDIR)$(pkgdatadir); rm -f ompiCC-wrapper-data.txt; $(LN_S) ompic++-wrapper-data.txt ompiCC-wrapper-data.txt)
|
|
|
|
(cd $(DESTDIR)$(pkgdatadir); rm -f ompicxx-wrapper-data.txt; $(LN_S) ompic++-wrapper-data.txt ompicxx-wrapper-data.txt)
|
2004-08-17 06:34:17 +04:00
|
|
|
else
|
|
|
|
install-exec-hook:
|
2005-12-31 15:33:44 +03:00
|
|
|
(cd $(DESTDIR)$(bindir); rm -f mpicxx$(EXEEXT); $(LN_S) mpic++ mpicxx)
|
2006-01-16 04:48:03 +03:00
|
|
|
|
|
|
|
(cd $(DESTDIR)$(bindir); rm -f ompicc$(EXEEXT); $(LN_S) opal_wrapper ompicc)
|
|
|
|
(cd $(DESTDIR)$(bindir); rm -f ompic++$(EXEEXT); $(LN_S) opal_wrapper ompic++)
|
|
|
|
(cd $(DESTDIR)$(bindir); rm -f ompicxx$(EXEEXT); $(LN_S) opal_wrapper ompicxx)
|
|
|
|
(cd $(DESTDIR)$(bindir); rm -f ompif77$(EXEEXT); $(LN_S) opal_wrapper ompif77)
|
|
|
|
(cd $(DESTDIR)$(bindir); rm -f ompif90$(EXEEXT); $(LN_S) opal_wrapper ompif90)
|
|
|
|
|
|
|
|
(cd $(DESTDIR)$(pkgdatadir); rm -f ompicxx-wrapper-data.txt; $(LN_S) ompic++-wrapper-data.txt ompicxx-wrapper-data.txt)
|
2004-08-17 06:34:17 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
if CASE_SENSITIVE_FS
|
2004-01-12 11:08:20 +03:00
|
|
|
uninstall-local:
|
2005-12-31 15:33:44 +03:00
|
|
|
rm -f $(DESTDIR)$(bindir)/mpiCC$(EXEEXT) \
|
2006-01-16 04:48:03 +03:00
|
|
|
$(DESTDIR)$(bindir)/mpicxx$(EXEEXT) \
|
|
|
|
$(DESTDIR)$(bindir)/ompicc$(EXEEXT) \
|
|
|
|
$(DESTDIR)$(bindir)/ompic++$(EXEEXT) \
|
|
|
|
$(DESTDIR)$(bindir)/ompiCC$(EXEEXT) \
|
|
|
|
$(DESTDIR)$(bindir)/ompicxx$(EXEEXT) \
|
|
|
|
$(DESTDIR)$(bindir)/ompif77$(EXEEXT) \
|
|
|
|
$(DESTDIR)$(bindir)/ompif90$(EXEEXT) \
|
|
|
|
$(DESTDIR)$(pkgdatadir)/ompiCC-wrapper-data.txt \
|
|
|
|
$(DESTDIR)$(pkgdatadir)/ompicxx-wrapper-data.txt
|
|
|
|
|
2004-08-17 06:34:17 +04:00
|
|
|
else
|
|
|
|
uninstall-local:
|
2006-01-16 04:48:03 +03:00
|
|
|
rm -f $(DESTDIR)$(bindir)/mpicxx$(EXEEXT) \
|
|
|
|
$(DESTDIR)$(bindir)/ompicc$(EXEEXT) \
|
|
|
|
$(DESTDIR)$(bindir)/ompic++$(EXEEXT) \
|
|
|
|
$(DESTDIR)$(bindir)/ompicxx$(EXEEXT) \
|
|
|
|
$(DESTDIR)$(bindir)/ompif77$(EXEEXT) \
|
|
|
|
$(DESTDIR)$(bindir)/ompif90$(EXEEXT) \
|
|
|
|
$(DESTDIR)$(pkgdatadir)/ompicxx-wrapper-data.txt
|
2004-08-17 06:34:17 +04:00
|
|
|
endif
|
2004-01-12 10:09:31 +03:00
|
|
|
endif
|