Skip to content

Commit 7f2cd9a

Browse files
committed
makefile fixes
Signed-off-by: Howard Pritchard <howardp@lanl.gov>
1 parent ef656f2 commit 7f2cd9a

File tree

2 files changed

+34
-35
lines changed

2 files changed

+34
-35
lines changed

ompi/mpi/c/Makefile.am

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,8 @@ if BUILD_MPI_BINDINGS_LAYER
516516
libmpi_c_la_LIBADD += libmpi_c_noprofile.la
517517
endif
518518

519+
nobase_include_HEADERS = abi.h standard_abi/mpi.h
520+
519521
#
520522
# List of all C files that have profile versions (*_generated.c files were
521523
# generated from prototype_sources above).
@@ -573,8 +575,38 @@ if OMPI_GENERATE_BINDINGS
573575
source \
574576
ompi \
575577
$<
578+
abi.h: $(prototype_sources)
579+
$(OMPI_V_GEN) $(PYTHON) $(top_srcdir)/ompi/mpi/bindings/bindings.py \
580+
--builddir $(abs_top_builddir) \
581+
--srcdir $(abs_top_srcdir) \
582+
--output $@ \
583+
c \
584+
header \
585+
--srcdir $(srcdir) \
586+
$(prototype_sources)
587+
standard_abi/mpi.h: $(prototype_sources)
588+
mkdir -p standard_abi
589+
$(OMPI_V_GEN) $(PYTHON) $(top_srcdir)/ompi/mpi/bindings/bindings.py \
590+
--builddir $(abs_top_builddir) \
591+
--srcdir $(abs_top_srcdir) \
592+
--output $@ \
593+
c \
594+
header \
595+
--srcdir $(srcdir) \
596+
--external \
597+
$(prototype_sources)
598+
%_abi_generated.c: %.c.in
599+
$(OMPI_V_GEN) $(PYTHON) $(top_srcdir)/ompi/mpi/bindings/bindings.py \
600+
--builddir $(abs_top_builddir) \
601+
--srcdir $(abs_top_srcdir) \
602+
--output $@ \
603+
c \
604+
source \
605+
standard \
606+
$<
576607
endif
577608

609+
MAINTAINERCLEANFILES = *_generated.c abi.h
578610
if OMPI_STANDARD_ABI
579611
include Makefile_abi.include
580612
endif

ompi/mpi/c/Makefile_abi.include

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,15 @@
2929

3030
# ABI specific make components
3131

32+
if OMPI_STANDARD_ABI
33+
3234
noinst_LTLIBRARIES += libmpi_c_abi.la libmpi_c_abi_profile.la
3335
if BUILD_MPI_BINDINGS_LAYER
3436
noinst_LTLIBRARIES += libmpi_c_abi_noprofile.la
3537
endif
3638

3739
BUILT_SOURCES = abi.h standard_abi/mpi.h
3840

39-
4041
libmpi_c_abi_la_SOURCES = \
4142
attr_fn.c \
4243
abi_details.c \
@@ -57,38 +58,4 @@ libmpi_c_abi_profile_la_CPPFLAGS = -DOMPI_NO_MPI_PROTOTYPES -DOMPI_BUILD_MPI_PRO
5758
libmpi_c_abi_noprofile_la_SOURCES = $(abi_interface_profile_sources)
5859
libmpi_c_abi_noprofile_la_CPPFLAGS = -DOMPI_NO_MPI_PROTOTYPES -DOMPI_BUILD_MPI_PROFILING=0
5960

60-
nobase_include_HEADERS = abi.h standard_abi/mpi.h
61-
62-
if OMPI_GENERATE_BINDINGS
63-
%_abi_generated.c: %.c.in
64-
$(OMPI_V_GEN) $(PYTHON) $(top_srcdir)/ompi/mpi/bindings/bindings.py \
65-
--builddir $(abs_top_builddir) \
66-
--srcdir $(abs_top_srcdir) \
67-
--output $@ \
68-
c \
69-
source \
70-
standard \
71-
$<
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)
81-
standard_abi/mpi.h: $(prototype_sources)
82-
mkdir -p standard_abi
83-
$(OMPI_V_GEN) $(PYTHON) $(top_srcdir)/ompi/mpi/bindings/bindings.py \
84-
--builddir $(abs_top_builddir) \
85-
--srcdir $(abs_top_srcdir) \
86-
--output $@ \
87-
c \
88-
header \
89-
--srcdir $(srcdir) \
90-
--external \
91-
$(prototype_sources)
9261
endif
93-
# Delete generated files on maintainer-clean
94-
MAINTAINERCLEANFILES = *_generated.c abi.h standard_abi/

0 commit comments

Comments
 (0)