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.
|
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
|
|
|
#
|
|
|
|
|
|
|
|
include $(top_srcdir)/config/Makefile.options
|
|
|
|
|
|
|
|
# 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)\"" \
|
|
|
|
-DOMPI_LIBDIR="\"$(libdir)\""
|
2004-01-12 10:09:31 +03:00
|
|
|
|
2004-09-25 23:31:17 +04:00
|
|
|
EXTRA_DIST = wrap.cc wrap_engine.cc $(pkgdata_DATA)
|
|
|
|
|
|
|
|
pkgdata_DATA = help-wrapper.txt
|
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-01-28 04:25:10 +03:00
|
|
|
libs = $(top_builddir)/src/libmpi.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)
|
|
|
|
mpicc_LDADD = $(libs) $(LIBOMPI_EXTRA_LIBS)
|
2004-06-07 19:33:53 +04:00
|
|
|
mpicc_LDFLAGS = $(LIBOMPI_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)
|
2004-06-07 19:33:53 +04:00
|
|
|
mpic___LDADD = $(libs) $(LIBOMPI_EXTRA_LIBS)
|
|
|
|
mpic___LDFLAGS = $(LIBOMPI_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)
|
2004-06-07 19:33:53 +04:00
|
|
|
mpif77_LDADD = $(libs) $(LIBOMPI_EXTRA_LIBS)
|
|
|
|
mpif77_LDFLAGS = $(LIBOMPI_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)
|
2004-06-07 19:33:53 +04:00
|
|
|
mpif90_LDADD = $(libs) $(LIBOMPI_EXTRA_LIBS)
|
|
|
|
mpif90_LDFLAGS = $(LIBOMPI_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)
|
|
|
|
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)
|
|
|
|
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 \
|
|
|
|
$(DESTDIR)$(bindir)/mpiCC
|
|
|
|
else
|
|
|
|
uninstall-local:
|
|
|
|
rm -f $(DESTDIR)$(bindir)/hcc \
|
|
|
|
$(DESTDIR)$(bindir)/hcp \
|
|
|
|
$(DESTDIR)$(bindir)/hf77
|
|
|
|
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)
|
|
|
|
else
|
|
|
|
install-exec-hook:
|
|
|
|
endif
|
|
|
|
|
|
|
|
if CASE_SENSITIVE_FS
|
2004-01-12 11:08:20 +03:00
|
|
|
uninstall-local:
|
2004-08-18 17:52:24 +04:00
|
|
|
rm -f $(DESTDIR)$(bindir)/mpiCC
|
2004-08-17 06:34:17 +04:00
|
|
|
else
|
|
|
|
uninstall-local:
|
|
|
|
endif
|
2004-01-12 10:09:31 +03:00
|
|
|
endif
|