2004-03-19 00:35:28 +03: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-03-19 00:35:28 +03:00
|
|
|
# $HEADER$
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(top_srcdir)/config/Makefile.options
|
|
|
|
|
|
|
|
include_HEADERS = \
|
2004-06-07 19:33:53 +04:00
|
|
|
ompi_config.h \
|
|
|
|
ompi_config_bottom.h \
|
2004-07-18 16:41:52 +04:00
|
|
|
ompi_stdint.h \
|
2004-03-19 00:35:28 +03:00
|
|
|
mpi.h \
|
|
|
|
mpif.h
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
# Add a hook to run *after* the file ompi_config.h has been installed
|
2004-03-19 00:35:28 +03:00
|
|
|
# out to the target location. It changes the pesky PACKAGE_* macros
|
|
|
|
# that autoconf automatically generates (and there is no way of
|
2004-06-07 19:33:53 +04:00
|
|
|
# turning off) into OMPI_MPI_PACKAGE_* in order to make <mpi.h> safe to
|
2004-03-19 00:35:28 +03:00
|
|
|
# include with other files.
|
|
|
|
|
|
|
|
install-data-hook:
|
2004-06-07 19:33:53 +04:00
|
|
|
sed -e 's/define PACKAGE/define OMPI_MPI_PACKAGE/' \
|
|
|
|
$(DESTDIR)$(includedir)/ompi_config.h \
|
|
|
|
> $(DESTDIR)$(includedir)/ompi_config.h.install
|
2004-07-22 21:15:08 +04:00
|
|
|
cp $(DESTDIR)$(includedir)/ompi_config.h.install \
|
2004-06-07 19:33:53 +04:00
|
|
|
$(DESTDIR)$(includedir)/ompi_config.h
|
2004-07-22 21:15:08 +04:00
|
|
|
rm -f $(DESTDIR)$(includedir)/ompi_config.h.install
|
2004-07-22 18:51:53 +04:00
|
|
|
chmod 0644 $(DESTDIR)$(includedir)/ompi_config.h
|