Skip to content

Commit d127224

Browse files
committed
makefile fixes
Signed-off-by: Howard Pritchard <howardp@lanl.gov>
1 parent 49f042c commit d127224

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

ompi/mpi/c/Makefile.am

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,8 @@ if BUILD_MPI_BINDINGS_LAYER
497497
libmpi_c_la_LIBADD += libmpi_c_noprofile.la
498498
endif
499499

500+
nobase_include_HEADERS = abi.h
501+
500502
#
501503
# List of all C files that have profile versions (*_generated.c files were
502504
# generated from prototype_sources above).
@@ -554,8 +556,18 @@ if OMPI_GENERATE_BINDINGS
554556
source \
555557
ompi \
556558
$<
559+
abi.h: $(prototype_sources)
560+
$(OMPI_V_GEN) $(PYTHON) $(top_srcdir)/ompi/mpi/bindings/bindings.py \
561+
--builddir $(abs_top_builddir) \
562+
--srcdir $(abs_top_srcdir) \
563+
--output $@ \
564+
c \
565+
header \
566+
--srcdir $(srcdir) \
567+
$(prototype_sources)
557568
endif
558569

570+
MAINTAINERCLEANFILES = *_generated.c abi.h
559571
if OMPI_STANDARD_ABI
560572
include Makefile_abi.include
561573
endif

ompi/mpi/c/Makefile_abi.include

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ libmpi_c_abi_profile_la_CPPFLAGS = -DOMPI_NO_MPI_PROTOTYPES -DOMPI_BUILD_MPI_PRO
5757
libmpi_c_abi_noprofile_la_SOURCES = $(abi_interface_profile_sources)
5858
libmpi_c_abi_noprofile_la_CPPFLAGS = -DOMPI_NO_MPI_PROTOTYPES -DOMPI_BUILD_MPI_PROFILING=0
5959

60-
nobase_include_HEADERS = abi.h standard_abi/mpi.h
60+
nobase_include_HEADERS ?=
61+
nobase_include_HEADERS += standard_abi/mpi.h
6162

6263
if OMPI_GENERATE_BINDINGS
6364
%_abi_generated.c: %.c.in
@@ -69,15 +70,6 @@ if OMPI_GENERATE_BINDINGS
6970
source \
7071
standard \
7172
$<
72-
abi.h: $(prototype_sources)
73-
$(OMPI_V_GEN) $(PYTHON) $(top_srcdir)/ompi/mpi/bindings/bindings.py \
74-
--builddir $(abs_top_builddir) \
75-
--srcdir $(abs_top_srcdir) \
76-
--output $@ \
77-
c \
78-
header \
79-
--srcdir $(srcdir) \
80-
$(prototype_sources)
8173
standard_abi/mpi.h: $(prototype_sources)
8274
mkdir -p standard_abi
8375
$(OMPI_V_GEN) $(PYTHON) $(top_srcdir)/ompi/mpi/bindings/bindings.py \
@@ -91,4 +83,5 @@ standard_abi/mpi.h: $(prototype_sources)
9183
$(prototype_sources)
9284
endif
9385
# Delete generated files on maintainer-clean
94-
MAINTAINERCLEANFILES = *_generated.c abi.h standard_abi/
86+
MAINTAINERCLEANFILES ?=
87+
MAINTAINERCLEANFILES += standard_abi/

0 commit comments

Comments
 (0)