Fix compiler warnings produced by clang 19.
[valgrind.git] / mpi / Makefile.am
blobe57e5aa85cbc1e9c2e7b40e6b57440348904c284
1 include $(top_srcdir)/Makefile.all.am
3 # HACK WARNING: automake isn't good at supporting non-$(CC) compilers.
4 # But we need to use $(MPI_CC) for the MPI stuff.  So we have this mpi stuff
5 # in its own directory so we can use the following blunt instruments, which
6 # override the C compiler and all the default flags.
7 CC = $(MPI_CC)
8 DEFS =
9 DEFAULT_INCLUDES =
10 CPPFLAGS =
11 CFLAGS =
12 LDFLAGS =
14 EXTRA_DIST = \
15         mpiwrap_type_test.c
17 #----------------------------------------------------------------------------
18 # libmpiwrap-<platform>.so
19 #----------------------------------------------------------------------------
21 # These are really real libraries, so they should go to libdir, not libexec.
22 mpidir = $(pkglibdir)
23 mpi_PROGRAMS  =
24 if BUILD_MPIWRAP_PRI
25 mpi_PROGRAMS += libmpiwrap-@VGCONF_ARCH_PRI@-@VGCONF_OS@.so
26 endif
27 if BUILD_MPIWRAP_SEC
28 mpi_PROGRAMS += libmpiwrap-@VGCONF_ARCH_SEC@-@VGCONF_OS@.so
29 endif
31 if VGCONF_OS_IS_DARWIN
32 mpi_DSYMS = $(mpi_PROGRAMS)
33 endif
36 ## NOTE: this logic, the AM_FLAG_M3264_ logic in ../Makefile.all.am, and the
37 ## mflag_primary/mflag_secondary logic in ../configure.in unfortunately all need
38 ## to be kept in sync with each other
39 if VGCONF_OS_IS_LINUX
40  MPI_FLAG_M3264_PRI = $(AM_FLAG_M3264_PRI)
41  MPI_FLAG_M3264_SEC = $(AM_FLAG_M3264_SEC)
42 endif
43 if VGCONF_OS_IS_FREEBSD
44  MPI_FLAG_M3264_PRI = $(AM_FLAG_M3264_PRI)
45  MPI_FLAG_M3264_SEC = $(AM_FLAG_M3264_SEC)
46 endif
47 if VGCONF_OS_IS_DARWIN
48  MPI_FLAG_M3264_PRI = $(AM_FLAG_M3264_PRI)
49  MPI_FLAG_M3264_SEC = $(AM_FLAG_M3264_SEC)
50 endif
51 if VGCONF_OS_IS_SOLARIS
52  MPI_FLAG_M3264_PRI = $(AM_FLAG_M3264_PRI)
53  MPI_FLAG_M3264_SEC = $(AM_FLAG_M3264_SEC)
54 endif
57 if BUILD_MPIWRAP_PRI
58 libmpiwrap_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_SOURCES  = libmpiwrap.c
59 libmpiwrap_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_CPPFLAGS = -I$(top_builddir)/include
60 libmpiwrap_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_CFLAGS   = \
61         $(CFLAGS_MPI) $(MPI_FLAG_M3264_PRI) -Wno-deprecated-declarations
62 libmpiwrap_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_LDFLAGS  = $(LDFLAGS_MPI)
63 endif
64 if BUILD_MPIWRAP_SEC
65 libmpiwrap_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_SOURCES  = libmpiwrap.c
66 libmpiwrap_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_CPPFLAGS = -I$(top_builddir)/include
67 libmpiwrap_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_CFLAGS   = \
68         $(CFLAGS_MPI) $(MPI_FLAG_M3264_SEC) -Wno-deprecated-declarations
69 libmpiwrap_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_LDFLAGS  = $(LDFLAGS_MPI)
70 endif
72 #----------------------------------------------------------------------------
73 # General stuff
74 #----------------------------------------------------------------------------
76 all-local: inplace-noinst_PROGRAMS inplace-noinst_DSYMS
78 clean-local: clean-noinst_DSYMS
80 install-exec-local: install-noinst_PROGRAMS install-noinst_DSYMS
82 uninstall-local: uninstall-noinst_PROGRAMS uninstall-noinst_DSYMS