Skip to content

Commit 15f87a2

Browse files
committed
A first pass at the fortran libs
1 parent e2d3a82 commit 15f87a2

File tree

5 files changed

+32
-32
lines changed

5 files changed

+32
-32
lines changed

ompi/mpi/fortran/mpif-h/Makefile.am

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,22 +51,22 @@ CLEANFILES =
5151
# Note that we invoke some OPAL functions directly in libmpi_mpifh.la,
5252
# so we need to link in the OPAL library directly (pulling it in
5353
# indirectly via libmpi.la does not work on all platforms).
54-
libmpi_mpifh_la_LIBADD = \
54+
lib@OMPI_LIBMPI_NAME@_mpifh_la_LIBADD = \
5555
$(top_builddir)/ompi/lib@[email protected] \
5656
$(OMPI_MPIEXT_MPIFH_LIBS) \
5757
$(OMPI_TOP_BUILDDIR)/opal/lib@[email protected]
5858

59-
libmpi_mpifh_la_LDFLAGS = -version-info $(libmpi_mpifh_so_version)
59+
lib@OMPI_LIBMPI_NAME@_mpifh_la_LDFLAGS = -version-info $(libmpi_mpifh_so_version)
6060

6161
# Are we building the mpif.h bindings at all?
6262
if OMPI_BUILD_FORTRAN_MPIFH_BINDINGS
6363
# If yes, then we need to build the installable library and the glue
6464
# convenience library that will be sucked up into the main libmpi.
65-
lib_LTLIBRARIES += libmpi_mpifh.la
65+
lib_LTLIBRARIES += lib@OMPI_LIBMPI_NAME@_mpifh.la
6666
# Do we need to suck in the convenience library from the lower
6767
# directory?
6868
if BUILD_PMPI_FORTRAN_MPIFH_BINDINGS_LAYER
69-
libmpi_mpifh_la_LIBADD += profile/libmpi_mpifh_pmpi.la
69+
lib@OMPI_LIBMPI_NAME@_mpifh_la_LIBADD += profile/libmpi_mpifh_pmpi.la
7070
endif
7171
endif
7272

@@ -78,7 +78,7 @@ headers = \
7878
#
7979
# These files are only built and added to libmpi_mpifh.la in certain cases.
8080
#
81-
libmpi_mpifh_la_SOURCES =
81+
lib@OMPI_LIBMPI_NAME@_mpifh_la_SOURCES =
8282

8383
# sizeof_f.f90 is generated based on some results from configure tests.
8484
CLEANFILES += sizeof_f.f90
@@ -108,7 +108,7 @@ if BUILD_FORTRAN_SIZEOF
108108
noinst_LTLIBRARIES += libmpi_mpifh_sizeof.la
109109
# Do not dist this file; it is generated
110110
nodist_libmpi_mpifh_sizeof_la_SOURCES = sizeof_f.f90
111-
libmpi_mpifh_la_LIBADD += libmpi_mpifh_sizeof.la
111+
lib@OMPI_LIBMPI_NAME@_mpifh_la_LIBADD += libmpi_mpifh_sizeof.la
112112
endif
113113

114114
sizeof_pl = $(top_srcdir)/ompi/mpi/fortran/base/gen-mpi-sizeof.pl
@@ -124,7 +124,7 @@ sizeof_f.f90:
124124
--complex32=$(OMPI_HAVE_FORTRAN_COMPLEX32)
125125

126126
if BUILD_MPI_FORTRAN_MPIFH_BINDINGS_LAYER
127-
libmpi_mpifh_la_SOURCES += \
127+
lib@OMPI_LIBMPI_NAME@_mpifh_la_SOURCES += \
128128
abort_f.c \
129129
add_error_class_f.c \
130130
add_error_code_f.c \
@@ -432,7 +432,7 @@ libmpi_mpifh_la_SOURCES += \
432432
win_flush_local_all_f.c
433433

434434
if OMPI_PROVIDE_MPI_FILE_INTERFACE
435-
libmpi_mpifh_la_SOURCES += \
435+
lib@OMPI_LIBMPI_NAME@_mpifh_la_SOURCES += \
436436
file_call_errhandler_f.c \
437437
file_close_f.c \
438438
file_create_errhandler_f.c \

ompi/mpi/fortran/use-mpi-f08-desc/Makefile.am

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if OMPI_BUILD_FORTRAN_USEMPIF08_BINDINGS
1818
AM_FCFLAGS = -I$(top_builddir)/ompi/include -I$(top_srcdir)/ompi/include \
1919
-I$(top_srcdir) $(FCFLAGS)
2020

21-
lib_LTLIBRARIES = libmpi_usempif08.la
21+
lib_LTLIBRARIES = lib@OMPI_LIBMPI_NAME@_usempif08.la
2222

2323
#
2424
# This list is a subset of the full MPI API used for testing Fortran
@@ -35,7 +35,7 @@ mpi_api_files = \
3535
type_contiguous_f08.f90 \
3636
type_vector_f08.f90
3737

38-
libmpi_usempif08_la_SOURCES = \
38+
lib@OMPI_LIBMPI_NAME@_usempif08_la_SOURCES = \
3939
$(mpi_api_files) \
4040
mpi-f08-types.f90 \
4141
mpi-f08-interfaces.F90 \

ompi/mpi/fortran/use-mpi-f08/Makefile.am

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ MOSTLYCLEANFILES = *.mod
3434

3535
CLEANFILES += *.i90
3636

37-
lib_LTLIBRARIES = libmpi_usempif08.la
37+
lib_LTLIBRARIES = lib@OMPI_LIBMPI_NAME@_usempif08.la
3838

3939
module_sentinel_file = \
4040
libforce_usempif08_internal_modules_to_be_built.la
@@ -794,7 +794,7 @@ pmpi_api_files += \
794794
profile/pregister_datarep_f08.F90
795795
endif
796796

797-
libmpi_usempif08_la_SOURCES = \
797+
lib@OMPI_LIBMPI_NAME@_usempif08_la_SOURCES = \
798798
$(mpi_api_files) \
799799
$(pmpi_api_files) \
800800
mpi-f-interfaces-bind.h \
@@ -805,11 +805,11 @@ libmpi_usempif08_la_SOURCES = \
805805
constants.c
806806

807807
# These are generated; do not ship them
808-
nodist_libmpi_usempif08_la_SOURCES =
808+
nodist_lib@OMPI_LIBMPI_NAME@_usempif08_la_SOURCES =
809809

810810
if BUILD_FORTRAN_SIZEOF
811811
SIZEOF_H = sizeof_f08.h
812-
nodist_libmpi_usempif08_la_SOURCES += \
812+
nodist_lib@OMPI_LIBMPI_NAME@_usempif08_la_SOURCES += \
813813
sizeof_f08.h \
814814
sizeof_f08.f90 \
815815
profile/psizeof_f08.f90
@@ -819,13 +819,13 @@ endif
819819
# Include the mpi_f08-based MPI extensions in libmpi_usempif08, too.
820820
#
821821

822-
libmpi_usempif08_la_LIBADD = \
822+
lib@OMPI_LIBMPI_NAME@_usempif08_la_LIBADD = \
823823
$(module_sentinel_file) \
824824
$(OMPI_MPIEXT_USEMPIF08_LIBS) \
825-
$(top_builddir)/ompi/mpi/fortran/mpif-h/libmpi_mpifh.la \
825+
$(top_builddir)/ompi/mpi/fortran/mpif-h/lib@OMPI_LIBMPI_NAME@_mpifh.la \
826826
$(top_builddir)/ompi/lib@[email protected]
827-
libmpi_usempif08_la_DEPENDENCIES = $(module_sentinel_file)
828-
libmpi_usempif08_la_LDFLAGS = -version-info $(libmpi_usempif08_so_version)
827+
lib@OMPI_LIBMPI_NAME@_usempif08_la_DEPENDENCIES = $(module_sentinel_file)
828+
lib@OMPI_LIBMPI_NAME@_usempif08_la_LDFLAGS = -version-info $(libmpi_usempif08_so_version)
829829

830830
#
831831
# Automake doesn't do Fortran dependency analysis, so must list them

ompi/mpi/fortran/use-mpi-ignore-tkr/Makefile.am

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ AM_CPPFLAGS = -DOMPI_PROFILE_LAYER=0 -DOMPI_COMPILING_FORTRAN_WRAPPERS=1
2222
AM_FCFLAGS = -I$(top_builddir)/ompi/include -I$(top_srcdir)/ompi/include \
2323
-I$(top_builddir) -I$(top_srcdir) $(FCFLAGS_f90)
2424

25-
lib_LTLIBRARIES = libmpi_usempi_ignore_tkr.la
25+
lib_LTLIBRARIES = lib@OMPI_LIBMPI_NAME@_usempi_ignore_tkr.la
2626

2727
mpi-ignore-tkr-interfaces.h: mpi-ignore-tkr-interfaces.h.in
2828
mpi-ignore-tkr-file-interfaces.h: mpi-ignore-tkr-file-interfaces.h.in
@@ -35,15 +35,15 @@ mpi-ignore-tkr.lo: mpi-ignore-tkr-sizeof.h
3535
mpi-ignore-tkr.lo: mpi-ignore-tkr-sizeof.f90
3636
mpi-ignore-tkr.lo: mpi-ignore-tkr.F90
3737

38-
libmpi_usempi_ignore_tkr_la_SOURCES = \
38+
lib@OMPI_LIBMPI_NAME@_usempi_ignore_tkr_la_SOURCES = \
3939
mpi-ignore-tkr.F90
40-
nodist_libmpi_usempi_ignore_tkr_la_SOURCES = \
40+
nodist_lib@OMPI_LIBMPI_NAME@_usempi_ignore_tkr_la_SOURCES = \
4141
mpi-ignore-tkr-interfaces.h \
4242
mpi-ignore-tkr-file-interfaces.h
4343

4444
if BUILD_FORTRAN_SIZEOF
4545
# These files are generated; do not distribute them
46-
nodist_libmpi_usempi_ignore_tkr_la_SOURCES += \
46+
nodist_lib@OMPI_LIBMPI_NAME@_usempi_ignore_tkr_la_SOURCES += \
4747
mpi-ignore-tkr-sizeof.h \
4848
mpi-ignore-tkr-sizeof.f90
4949
endif
@@ -52,9 +52,9 @@ endif
5252
# libmpi_usempi_ignore_tkr.la, so we need to link in the OPAL library
5353
# directly (pulling it in indirectly via libmpi.la does not work on
5454
# all platforms).
55-
libmpi_usempi_ignore_tkr_la_LIBADD = \
55+
lib@OMPI_LIBMPI_NAME@_usempi_ignore_tkr_la_LIBADD = \
5656
$(OMPI_TOP_BUILDDIR)/opal/lib@[email protected]
57-
libmpi_usempi_ignore_tkr_la_LDFLAGS = \
57+
lib@OMPI_LIBMPI_NAME@_usempi_ignore_tkr_la_LDFLAGS = \
5858
-version-info $(libmpi_usempi_ignore_tkr_so_version) \
5959
$(OMPI_FORTRAN_EXTRA_SHARED_LIBRARY_FLAGS)
6060

ompi/mpi/fortran/use-mpi-tkr/Makefile.am

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ lib_LTLIBRARIES =
4949

5050
# Add the f90 library to the list of libraries to build
5151

52-
lib_LTLIBRARIES += libmpi_usempi.la
52+
lib_LTLIBRARIES += lib@OMPI_LIBMPI_NAME@_usempi.la
5353

5454
# Automake doesn't know how to do F90 dependency analysis, so manually
5555
# list this here (i.e., "mpi-f90-interfaces.h" is included in
@@ -65,7 +65,7 @@ mpi.lo: mpi-f90-cptr-interfaces.F90
6565
# buffer dummy argument. We therefore really only need to build a
6666
# handful of subroutines.
6767

68-
libmpi_usempi_la_SOURCES = \
68+
lib@OMPI_LIBMPI_NAME@_usempi_la_SOURCES = \
6969
mpi.F90 \
7070
mpi_aint_add_f90.f90 \
7171
mpi_aint_diff_f90.f90 \
@@ -79,9 +79,9 @@ libmpi_usempi_la_SOURCES = \
7979

8080
# Don't distribute mpi-tkr-sizeof-*; they're generated.
8181

82-
nodist_libmpi_usempi_la_SOURCES =
82+
nodist_lib@OMPI_LIBMPI_NAME@_usempi_la_SOURCES =
8383
if BUILD_FORTRAN_SIZEOF
84-
nodist_libmpi_usempi_la_SOURCES += \
84+
nodist_lib@OMPI_LIBMPI_NAME@_usempi_la_SOURCES += \
8585
mpi-tkr-sizeof.h \
8686
mpi-tkr-sizeof.f90
8787
endif
@@ -90,11 +90,11 @@ endif
9090
# libmpi_usempi.la, so we need to link in the OPAL library directly
9191
# (pulling it in indirectly via libmpi.la does not work on all
9292
# platforms).
93-
libmpi_usempi_la_LIBADD = \
94-
$(top_builddir)/ompi/mpi/fortran/mpif-h/libmpi_mpifh.la \
93+
lib@OMPI_LIBMPI_NAME@_usempi_la_LIBADD = \
94+
$(top_builddir)/ompi/mpi/fortran/mpif-h/lib@OMPI_LIBMPI_NAME@_mpifh.la \
9595
$(OMPI_TOP_BUILDDIR)/opal/lib@[email protected]
9696
# Set the library version
97-
libmpi_usempi_la_LDFLAGS = \
97+
lib@OMPI_LIBMPI_NAME@_usempi_la_LDFLAGS = \
9898
-version-info $(libmpi_usempi_tkr_so_version) \
9999
$(OMPI_FORTRAN_EXTRA_SHARED_LIBRARY_FLAGS)
100100

@@ -131,7 +131,7 @@ mpi-tkr-sizeof.f90:
131131

132132
CLEANFILES += mpi-tkr-sizeof.h mpi-tkr-sizeof.f90
133133
MOSTLYCLEANFILES = *.mod
134-
DISTCLEANFILES = $(nodist_libmpi_usempi_la_SOURCES)
134+
DISTCLEANFILES = $(nodist_lib@OMPI_LIBMPI_NAME@_usempi_la_SOURCES)
135135

136136
#
137137
# Install the generated .mod files. Unfortunately, each F90 compiler

0 commit comments

Comments
 (0)