2004-09-25 23:31:17 +04:00
|
|
|
#
|
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
|
|
|
|
2004-09-25 23:31:17 +04:00
|
|
|
noinst_LIBRARIES = libompi_wrap.a
|
2004-01-12 10:09:31 +03:00
|
|
|
|
2004-09-25 23:31:17 +04:00
|
|
|
libs = $(noinst_LIBRARIES) $(top_builddir)/src/libmpi.la
|
|
|
|
|
|
|
|
libompi_wrap_a_SOURCES = wrap.cc wrap_engine.cc ompi_wrap.h
|
|
|
|
|
|
|
|
mpicc_SOURCES = mpicc.cc ompi_wrap.h
|
2004-06-07 19:33:53 +04:00
|
|
|
mpicc_LDADD = $(libs) $(LIBOMPI_EXTRA_LIBS)
|
|
|
|
mpicc_LDFLAGS = $(LIBOMPI_EXTRA_LDFLAGS)
|
2004-01-12 10:09:31 +03:00
|
|
|
mpicc_DEPENDENCIES = $(libs)
|
|
|
|
|
2004-09-25 23:31:17 +04:00
|
|
|
mpic___SOURCES = mpicxx.cc ompi_wrap.h
|
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)
|
|
|
|
|
2004-09-25 23:31:17 +04:00
|
|
|
mpif77_SOURCES = mpif77.cc ompi_wrap.h
|
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)
|
|
|
|
|
2004-09-25 23:31:17 +04:00
|
|
|
mpif90_SOURCES = mpif90.cc ompi_wrap.h
|
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
|