3838include $(top_srcdir ) /Makefile.ompi-rules
3939
4040noinst_LTLIBRARIES = libmpi_c.la libmpi_c_profile.la
41- if OMPI_STANDARD_ABI
42- noinst_LTLIBRARIES += libmpi_c_abi.la libmpi_c_abi_profile.la
43- endif
4441if BUILD_MPI_BINDINGS_LAYER
45- noinst_LTLIBRARIES += libmpi_c_noprofile.la libmpi_c_abi_noprofile.la
42+ noinst_LTLIBRARIES += libmpi_c_noprofile.la
4643endif
4744
4845headers = bindings.h
@@ -486,7 +483,6 @@ prototype_sources = \
486483 wtime.c.in
487484
488485EXTRA_DIST = $(prototype_sources )
489- BUILT_SOURCES = abi.h standard_abi/mpi.h
490486
491487# attr_fn.c contains attribute manipulation functions which do not
492488# profiling implications, and so are always built.
@@ -504,25 +500,12 @@ if BUILD_MPI_BINDINGS_LAYER
504500libmpi_c_la_LIBADD += libmpi_c_noprofile.la
505501endif
506502
507- libmpi_c_abi_la_SOURCES = \
508- attr_fn.c \
509- abi_details.c \
510- abi_supported.c \
511- abi_version.c
512-
513- libmpi_c_abi_la_CPPFLAGS = -DOMPI_NO_MPI_PROTOTYPES
514- libmpi_c_abi_la_LIBADD = libmpi_c_abi_profile.la
515- if BUILD_MPI_BINDINGS_LAYER
516- libmpi_c_abi_la_LIBADD += libmpi_c_abi_noprofile.la
517- endif
518-
519503#
520504# List of all C files that have profile versions (*_generated.c files were
521505# generated from prototype_sources above).
522506#
523507#
524508interface_profile_sources = $(prototype_sources:.c.in=_ompi_generated.c )
525- abi_interface_profile_sources = $(prototype_sources:.c.in=_abi_generated.c )
526509
527510
528511# Conditionally install the header files
@@ -564,15 +547,6 @@ libmpi_c_profile_la_CPPFLAGS = -DOMPI_BUILD_MPI_PROFILING=1
564547libmpi_c_noprofile_la_SOURCES = $(interface_profile_sources ) $(extra_interface_profile_sources ) $(deprecated_interface_profile_sources )
565548libmpi_c_noprofile_la_CPPFLAGS = -DOMPI_BUILD_MPI_PROFILING=0
566549
567- libmpi_c_abi_profile_la_SOURCES = $(abi_interface_profile_sources )
568- libmpi_c_abi_profile_la_CPPFLAGS = -DOMPI_NO_MPI_PROTOTYPES -DOMPI_BUILD_MPI_PROFILING=1
569-
570- libmpi_c_abi_noprofile_la_SOURCES = $(abi_interface_profile_sources )
571- libmpi_c_abi_noprofile_la_CPPFLAGS = -DOMPI_NO_MPI_PROTOTYPES -DOMPI_BUILD_MPI_PROFILING=0
572-
573- nobase_include_HEADERS = standard_abi/mpi.h
574-
575- # ABI generation rules
576550if OMPI_GENERATE_BINDINGS
577551% _ompi_generated.c : % .c.in
578552 $(OMPI_V_GEN ) $(PYTHON ) $(top_srcdir ) /ompi/mpi/bindings/bindings.py \
@@ -583,36 +557,8 @@ if OMPI_GENERATE_BINDINGS
583557 source \
584558 ompi \
585559 $<
560+ endif
586561
587- % _abi_generated.c : % .c.in
588- $(OMPI_V_GEN ) $(PYTHON ) $(top_srcdir ) /ompi/mpi/bindings/bindings.py \
589- --builddir $(abs_top_builddir ) \
590- --srcdir $(abs_top_srcdir ) \
591- --output $@ \
592- c \
593- source \
594- standard \
595- $<
596- abi.h : $(prototype_sources )
597- $(OMPI_V_GEN ) $(PYTHON ) $(top_srcdir ) /ompi/mpi/bindings/bindings.py \
598- --builddir $(abs_top_builddir ) \
599- --srcdir $(abs_top_srcdir ) \
600- --output $@ \
601- c \
602- header \
603- --srcdir $(srcdir) \
604- $(prototype_sources)
605- standard_abi/mpi.h : $(prototype_sources )
606- mkdir -p standard_abi
607- $(OMPI_V_GEN ) $(PYTHON ) $(top_srcdir ) /ompi/mpi/bindings/bindings.py \
608- --builddir $(abs_top_builddir ) \
609- --srcdir $(abs_top_srcdir ) \
610- --output $@ \
611- c \
612- header \
613- --srcdir $(srcdir) \
614- --external \
615- $(prototype_sources)
562+ if OMPI_STANDARD_ABI
563+ include Makefile_abi.include
616564endif
617- # Delete generated files on maintainer-clean
618- MAINTAINERCLEANFILES = *_generated.c abi.h standard_abi/
0 commit comments