|
Packit Service |
c5cf8c |
# -*- Mode: Makefile; -*-
|
|
Packit Service |
c5cf8c |
#
|
|
Packit Service |
c5cf8c |
# (C) 2008 by Argonne National Laboratory.
|
|
Packit Service |
c5cf8c |
# See COPYRIGHT in top-level directory.
|
|
Packit Service |
c5cf8c |
#
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
ACLOCAL_AMFLAGS = -I confdb
|
|
Packit Service |
c5cf8c |
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
lib@MPLLIBNAME@_la_SOURCES =
|
|
Packit Service |
c5cf8c |
lib@MPLLIBNAME@_la_LDFLAGS = ${lib@MPLLIBNAME@_so_versionflags}
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
include src/Makefile.mk
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
MPL_TESTS = strsep
|
|
Packit Service |
c5cf8c |
TESTS = $(MPL_TESTS)
|
|
Packit Service |
c5cf8c |
check_PROGRAMS = $(MPL_TESTS)
|
|
Packit Service |
c5cf8c |
strsep_SOURCES = test/strsep.c
|
|
Packit Service |
c5cf8c |
strsep_LDADD = lib@MPLLIBNAME@.la
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
mpl_headers = \
|
|
Packit Service |
c5cf8c |
include/mpl.h \
|
|
Packit Service |
c5cf8c |
include/mpl_base.h \
|
|
Packit Service |
c5cf8c |
include/mpl_math.h \
|
|
Packit Service |
c5cf8c |
include/mplconfig.h \
|
|
Packit Service |
c5cf8c |
include/utlist.h \
|
|
Packit Service |
c5cf8c |
include/mpl_valgrind.h \
|
|
Packit Service |
c5cf8c |
include/mpl_env.h \
|
|
Packit Service |
c5cf8c |
include/mpl_str.h \
|
|
Packit Service |
c5cf8c |
include/mpl_trmem.h \
|
|
Packit Service |
c5cf8c |
include/mpl_msg.h \
|
|
Packit Service |
c5cf8c |
include/mpl_sock.h \
|
|
Packit Service |
c5cf8c |
include/mpl_sockaddr.h \
|
|
Packit Service |
c5cf8c |
include/mpl_iov.h \
|
|
Packit Service |
c5cf8c |
include/mpl_bt.h \
|
|
Packit Service |
c5cf8c |
include/mpl_shm.h
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
if MPL_EMBEDDED_MODE
|
|
Packit Service |
c5cf8c |
noinst_HEADERS = $(mpl_headers)
|
|
Packit Service |
c5cf8c |
noinst_LTLIBRARIES = lib@MPLLIBNAME@.la
|
|
Packit Service |
c5cf8c |
else !MPL_EMBEDDED_MODE
|
|
Packit Service |
c5cf8c |
include_HEADERS = $(mpl_headers)
|
|
Packit Service |
c5cf8c |
lib_LTLIBRARIES = lib@MPLLIBNAME@.la
|
|
Packit Service |
c5cf8c |
endif !MPL_EMBEDDED_MODE
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
# --------------------------------------------------------------------------
|
|
Packit Service |
c5cf8c |
.PHONY: coverage
|
|
Packit Service |
c5cf8c |
gcov_sources = $(libmpl_la_SOURCES)
|
|
Packit Service |
c5cf8c |
# assumes that these sources were compiled appropriately ("-fprofile-arcs"
|
|
Packit Service |
c5cf8c |
# and "-ftest-coverage")
|
|
Packit Service |
c5cf8c |
coverage:
|
|
Packit Service |
c5cf8c |
@for file in $(gcov_sources) ; do \
|
|
Packit Service |
c5cf8c |
dir=`dirname $$file` ; \
|
|
Packit Service |
c5cf8c |
bname=`basename $$file` ; \
|
|
Packit Service |
c5cf8c |
aux=`echo $$bname | sed -e 's,\.*$$,,'` ; \
|
|
Packit Service |
c5cf8c |
echo "( $(GCOV) -b -f -o $$file $$file && mv $${bname}.gcov $$dir )" ; \
|
|
Packit Service |
c5cf8c |
( $(GCOV) -b -f -o $$file $$file && mv $${bname}.gcov $$dir ) ; \
|
|
Packit Service |
c5cf8c |
rm -f *.gcov ; \
|
|
Packit Service |
c5cf8c |
done
|
|
Packit Service |
c5cf8c |
for subdir in $(SUBDIRS) - ; do \
|
|
Packit Service |
c5cf8c |
if test $$subdir = "-" ; then break ; fi ; \
|
|
Packit Service |
c5cf8c |
( cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) coverage ) ; \
|
|
Packit Service |
c5cf8c |
done
|
|
Packit Service |
c5cf8c |
# --------------------------------------------------------------------------
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
# files that automake doesn't know about by default that should be included in
|
|
Packit Service |
c5cf8c |
# the distribution
|
|
Packit Service |
c5cf8c |
EXTRA_DIST = VERSION
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
DISTCLEANFILES = _configs.sed include/mplconfig.h
|