spot/buddy/src/Makefile.am
Alexandre Duret-Lutz 5a9c8aad0d [buddy] execute some of the tests during "make check"
* examples/bddtest/Makefile.am, src/Makefile.am (TESTS):
Add this variable.
* examples/bddtest/bddtest.cxx: Return non-zero on error.
2021-11-04 15:24:10 +01:00

48 lines
1.1 KiB
Makefile

include_HEADERS = bddx.h fddx.h bvecx.h
BUDDY_FLAGS = -I$(top_builddir) -DVERSION=23 -DBUDDY_DLL_EXPORTS -DBUDDY_DLL
lib_LTLIBRARIES = libbddx.la
# See the `Updating version info' node of the Libtool manual before
# changing this.
libbddx_la_LDFLAGS = -no-undefined -version-info 0:0:0 $(SYMBOLIC_LDFLAGS)
libbddx_la_CPPFLAGS = $(BUDDY_FLAGS)
libbddx_la_SOURCES = \
bddio.c \
bddop.c \
bddtree.h \
bvec.c \
cache.c \
cache.h \
cppext.cxx \
fdd.c \
imatrix.c \
imatrix.h \
kernel.c \
kernel.h \
pairs.c \
prime.c \
prime.h \
reorder.c \
tree.c
TESTS = bddtest$(EXEEXT)
check_PROGRAMS = bddtest
bddtest_SOURCES = bddtest.cxx
bddtest_CPPFLAGS = -I$(top_builddir)
bddtest_LDADD = ./libbddx.la
EXTRA_DIST = $(srcdir)/libbddx.pc.in
pkgconfigdir = $(libdir)/pkgconfig
nodist_pkgconfig_DATA = libbddx.pc
libbddx.pc: $(srcdir)/libbddx.pc.in Makefile
sed -e 's![@]prefix[@]!$(prefix)!g' \
-e 's![@]exec_prefix[@]!$(exec_prefix)!g' \
-e 's![@]includedir[@]!$(includedir)!g' \
-e 's![@]libdir[@]!$(libdir)!g' \
-e 's![@]PACKAGE_VERSION[@]!$(PACKAGE_VERSION)!g' \
$(srcdir)/libbddx.pc.in >$@.tmp && mv $@.tmp $@
CLEANFILES = libbddx.pc