summaryrefslogtreecommitdiffstats
path: root/Makefile.tests
blob: e1b7e0e046e8ff9b9041e926fb62a5fe5d7d8ef7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Hey Emacs, this is -*- makefile-automake -*- file!
# vim: filetype=automake

unit-local: check

if HAVE_CMOCKA
TESTS = $(check_PROGRAMS)
endif HAVE_CMOCKA

LOG_COMPILER = $(top_builddir)/tests/unit-test-driver.sh

AM_CFLAGS +=					\
	-I$(top_srcdir)/tests/include		\
	$(TEST_CFLAGS)

AM_CPPFLAGS +=					\
	$(CMOCKA_CFLAGS)			\
	-DNAMED_PLUGINDIR=\"$(pkglibdir)\"	\
	-DTESTS_DIR=\"$(abs_srcdir)\"

LDADD +=						\
	$(top_builddir)/tests/libtest/libtest.la	\
	$(CMOCKA_LIBS)