Makefile.am 673 Bytes
Newer Older
1 2 3 4
#
# Tests using check
#

5
EXTRA_DIST = check_sofia.h check_sofia.c suite_for_nua.c
6 7

TESTS =
8 9
tests_PROGRAMS =
testsdir := ${libdir}/tests/libsofia-sip-ua-tests
10 11 12 13 14 15 16 17

include $(top_srcdir)/rules/sofia.am

INCLUDES = ${INTERNAL_INCLUDES}

AM_CFLAGS += @CHECK_CFLAGS@

if HAVE_CHECK
18

19
TESTS += check_sofia
20
tests_PROGRAMS += check_sofia
21 22 23 24

check_sofia_SOURCES = check_sofia.c check_sofia.h \
	suite_for_nua.c

25
CHECKLIBS = ${sofiabuilddir}/nua/libtestnua.la \
26
	${sofiabuilddir}/nua/libtestproxy.la \
27 28 29
	${sofiabuilddir}/nua/libtestnat.la

$(CHECKLIBS):
30 31
	cd ${sofiabuilddir}/nua && make checklib

32
check_sofia_LDADD = \
33 34
	$(CHECKLIBS) ${sofiabuilddir}/libsofia-sip-ua.la \
	@CHECK_LIBS@
35
endif