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 18:51:53 +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 18:51:53 +04:00
|
|
|
$(RM) -f $(DESTDIR)$(includedir)/ompi_config.h.install
|
|
|
|
chmod 0644 $(DESTDIR)$(includedir)/ompi_config.h
|