mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
The paths to these files need to be fully specified in the out of tree build case. glibc-2.X.supp is a generated file so the full path is deliberately not specified in that case. Also adjust the mpi include dir location as valgrind.h is generated as well and needs to be taken out of build dir. Also adjust the location of generated xml file. And the search paths for the xmllint, xsltproc and xmlto programs. Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
84 lines
2.7 KiB
Makefile
84 lines
2.7 KiB
Makefile
include $(top_srcdir)/Makefile.all.am
|
|
|
|
# HACK WARNING: automake isn't good at supporting non-$(CC) compilers.
|
|
# But we need to use $(MPI_CC) for the MPI stuff. So we have this mpi stuff
|
|
# in its own directory so we can use the following blunt instruments, which
|
|
# override the C compiler and all the default flags.
|
|
CC = $(MPI_CC)
|
|
DEFS =
|
|
DEFAULT_INCLUDES =
|
|
CPPFLAGS =
|
|
CFLAGS =
|
|
LDFLAGS =
|
|
|
|
EXTRA_DIST = \
|
|
mpiwrap_type_test.c
|
|
|
|
#----------------------------------------------------------------------------
|
|
# libmpiwrap-<platform>.so
|
|
#----------------------------------------------------------------------------
|
|
|
|
# These are really real libraries, so they should go to libdir, not libexec.
|
|
mpidir = $(pkglibdir)
|
|
mpi_PROGRAMS =
|
|
if BUILD_MPIWRAP_PRI
|
|
mpi_PROGRAMS += libmpiwrap-@VGCONF_ARCH_PRI@-@VGCONF_OS@.so
|
|
endif
|
|
if BUILD_MPIWRAP_SEC
|
|
mpi_PROGRAMS += libmpiwrap-@VGCONF_ARCH_SEC@-@VGCONF_OS@.so
|
|
endif
|
|
|
|
if VGCONF_OS_IS_DARWIN
|
|
mpi_DSYMS = $(mpi_PROGRAMS)
|
|
endif
|
|
|
|
|
|
## NOTE: this logic, the AM_FLAG_M3264_ logic in ../Makefile.all.am, and the
|
|
## mflag_primary/mflag_secondary logic in ../configure.in unfortunately all need
|
|
## to be kept in sync with each other
|
|
if VGCONF_OS_IS_LINUX
|
|
MPI_FLAG_M3264_PRI = $(AM_FLAG_M3264_PRI)
|
|
MPI_FLAG_M3264_SEC = $(AM_FLAG_M3264_SEC)
|
|
endif
|
|
if VGCONF_OS_IS_FREEBSD
|
|
MPI_FLAG_M3264_PRI = $(AM_FLAG_M3264_PRI)
|
|
MPI_FLAG_M3264_SEC = $(AM_FLAG_M3264_SEC)
|
|
endif
|
|
if VGCONF_OS_IS_DARWIN
|
|
MPI_FLAG_M3264_PRI = $(AM_FLAG_M3264_PRI)
|
|
MPI_FLAG_M3264_SEC = $(AM_FLAG_M3264_SEC)
|
|
endif
|
|
if VGCONF_OS_IS_SOLARIS
|
|
MPI_FLAG_M3264_PRI = $(AM_FLAG_M3264_PRI)
|
|
MPI_FLAG_M3264_SEC = $(AM_FLAG_M3264_SEC)
|
|
endif
|
|
|
|
|
|
if BUILD_MPIWRAP_PRI
|
|
libmpiwrap_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_SOURCES = libmpiwrap.c
|
|
libmpiwrap_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_CPPFLAGS = -I$(top_builddir)/include
|
|
libmpiwrap_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_CFLAGS = \
|
|
$(CFLAGS_MPI) $(MPI_FLAG_M3264_PRI) -Wno-deprecated-declarations
|
|
libmpiwrap_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_LDFLAGS = $(LDFLAGS_MPI)
|
|
endif
|
|
if BUILD_MPIWRAP_SEC
|
|
libmpiwrap_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_SOURCES = libmpiwrap.c
|
|
libmpiwrap_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_CPPFLAGS = -I$(top_builddir)/include
|
|
libmpiwrap_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_CFLAGS = \
|
|
$(CFLAGS_MPI) $(MPI_FLAG_M3264_SEC) -Wno-deprecated-declarations
|
|
libmpiwrap_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_LDFLAGS = $(LDFLAGS_MPI)
|
|
endif
|
|
|
|
#----------------------------------------------------------------------------
|
|
# General stuff
|
|
#----------------------------------------------------------------------------
|
|
|
|
all-local: inplace-noinst_PROGRAMS inplace-noinst_DSYMS
|
|
|
|
clean-local: clean-noinst_DSYMS
|
|
|
|
install-exec-local: install-noinst_PROGRAMS install-noinst_DSYMS
|
|
|
|
uninstall-local: uninstall-noinst_PROGRAMS uninstall-noinst_DSYMS
|
|
|