4040include $(top_srcdir ) /Makefile.ompi-rules
4141
4242noinst_LTLIBRARIES = libmpi_c.la libmpi_c_profile.la
43- if OMPI_STANDARD_ABI
44- noinst_LTLIBRARIES += libmpi_c_abi.la libmpi_c_abi_profile.la
45- endif
4643if BUILD_MPI_BINDINGS_LAYER
47- noinst_LTLIBRARIES += libmpi_c_noprofile.la libmpi_c_abi_noprofile.la
44+ noinst_LTLIBRARIES += libmpi_c_noprofile.la
4845endif
4946
5047headers = bindings.h
@@ -502,7 +499,6 @@ prototype_sources = \
502499 wtime.c.in
503500
504501EXTRA_DIST = $(prototype_sources )
505- BUILT_SOURCES = abi.h standard_abi/mpi.h
506502
507503# attr_fn.c contains attribute manipulation functions which do not
508504# profiling implications, and so are always built.
@@ -520,25 +516,12 @@ if BUILD_MPI_BINDINGS_LAYER
520516libmpi_c_la_LIBADD += libmpi_c_noprofile.la
521517endif
522518
523- libmpi_c_abi_la_SOURCES = \
524- attr_fn.c \
525- abi_details.c \
526- abi_supported.c \
527- abi_version.c
528-
529- libmpi_c_abi_la_CPPFLAGS = -DOMPI_NO_MPI_PROTOTYPES
530- libmpi_c_abi_la_LIBADD = libmpi_c_abi_profile.la
531- if BUILD_MPI_BINDINGS_LAYER
532- libmpi_c_abi_la_LIBADD += libmpi_c_abi_noprofile.la
533- endif
534-
535519#
536520# List of all C files that have profile versions (*_generated.c files were
537521# generated from prototype_sources above).
538522#
539523#
540524interface_profile_sources = $(prototype_sources:.c.in=_ompi_generated.c )
541- abi_interface_profile_sources = $(prototype_sources:.c.in=_abi_generated.c )
542525
543526
544527# Conditionally install the header files
@@ -580,15 +563,6 @@ libmpi_c_profile_la_CPPFLAGS = -DOMPI_BUILD_MPI_PROFILING=1
580563libmpi_c_noprofile_la_SOURCES = $(interface_profile_sources ) $(extra_interface_profile_sources ) $(deprecated_interface_profile_sources )
581564libmpi_c_noprofile_la_CPPFLAGS = -DOMPI_BUILD_MPI_PROFILING=0
582565
583- libmpi_c_abi_profile_la_SOURCES = $(abi_interface_profile_sources )
584- libmpi_c_abi_profile_la_CPPFLAGS = -DOMPI_NO_MPI_PROTOTYPES -DOMPI_BUILD_MPI_PROFILING=1
585-
586- libmpi_c_abi_noprofile_la_SOURCES = $(abi_interface_profile_sources )
587- libmpi_c_abi_noprofile_la_CPPFLAGS = -DOMPI_NO_MPI_PROTOTYPES -DOMPI_BUILD_MPI_PROFILING=0
588-
589- nobase_include_HEADERS = standard_abi/mpi.h
590-
591- # ABI generation rules
592566if OMPI_GENERATE_BINDINGS
593567% _ompi_generated.c : % .c.in
594568 $(OMPI_V_GEN ) $(PYTHON ) $(top_srcdir ) /ompi/mpi/bindings/bindings.py \
@@ -599,36 +573,8 @@ if OMPI_GENERATE_BINDINGS
599573 source \
600574 ompi \
601575 $<
576+ endif
602577
603- % _abi_generated.c : % .c.in
604- $(OMPI_V_GEN ) $(PYTHON ) $(top_srcdir ) /ompi/mpi/bindings/bindings.py \
605- --builddir $(abs_top_builddir ) \
606- --srcdir $(abs_top_srcdir ) \
607- --output $@ \
608- c \
609- source \
610- standard \
611- $<
612- abi.h : $(prototype_sources )
613- $(OMPI_V_GEN ) $(PYTHON ) $(top_srcdir ) /ompi/mpi/bindings/bindings.py \
614- --builddir $(abs_top_builddir ) \
615- --srcdir $(abs_top_srcdir ) \
616- --output $@ \
617- c \
618- header \
619- --srcdir $(srcdir) \
620- $(prototype_sources)
621- standard_abi/mpi.h : $(prototype_sources )
622- mkdir -p standard_abi
623- $(OMPI_V_GEN ) $(PYTHON ) $(top_srcdir ) /ompi/mpi/bindings/bindings.py \
624- --builddir $(abs_top_builddir ) \
625- --srcdir $(abs_top_srcdir ) \
626- --output $@ \
627- c \
628- header \
629- --srcdir $(srcdir) \
630- --external \
631- $(prototype_sources)
578+ if OMPI_STANDARD_ABI
579+ include Makefile_abi.include
632580endif
633- # Delete generated files on maintainer-clean
634- MAINTAINERCLEANFILES = *_generated.c abi.h standard_abi/
0 commit comments