Makefile.am 1.54 KB
Newer Older
1
#
2
# Makefile.am for Sofia SIP tests
3
#
4 5 6 7 8 9
# Copyright (C) 2007,2008 Nokia Corporation
# Contact: Pekka Pessi <pekka.pessi@nokia.com>
# Licensed under LGPL. See file COPYING.

TESTS = test_nua
check_PROGRAMS = test_nua
10

11
EXTRA_DIST = check_sofia.h check_sofia.c suite_for_nua.c
12

13
test_nua_SOURCES = 	test_nua.c
14

15 16 17
LDADD = 		${sofiabuilddir}/libsofia-sip-ua.la

test_nua_LDADD =	$(check_LIBRARIES) $(LDADD)
18

19
check_LIBRARIES =   	libtestnua.a libtestproxy.a libtestnat.a
20

21 22 23 24 25 26 27 28 29 30
libtestnua_a_SOURCES =	test_nua.h test_ops.c \
			test_init.c \
			test_nua_api.c test_nua_params.c \
			test_register.c test_basic_call.c \
			test_offer_answer.c \
			test_call_reject.c test_cancel_bye.c \
			test_call_hold.c test_session_timer.c \
			test_refer.c test_100rel.c \
			test_simple.c test_sip_events.c \
			test_extension.c
31

32
libtestproxy_a_SOURCES = test_proxy.h test_proxy.c
33

34
libtestnat_a_SOURCES =	test_nat.h test_nat.c test_nat_tags.c
35

36
if HAVE_CHECK
37 38
TESTS += check_dlopen_sofia check_sofia
check_PROGRAMS += check_dlopen_sofia check_sofia
39 40 41
endif

check_sofia_CFLAGS = @CHECK_CFLAGS@
42

43 44 45
check_sofia_SOURCES = check_sofia.c check_sofia.h \
	suite_for_nua.c

46 47
check_sofia_LDADD = 	$(check_LIBRARIES) $(LDADD) \
			@CHECK_LIBS@ 
48

49
check_dlopen_sofia_CFLAGS = -I$(top_srcdir)/s2check @CHECK_CFLAGS@
50 51 52
check_dlopen_sofia_LDADD = \
			${top_builddir}/s2check/libs2.a $(LDADD) -ldl \
			@CHECK_LIBS@
53

54
CLEANFILES =            tmp_sippasswd.??????
55

56 57 58 59 60 61
# ----------------------------------------------------------------------
# Sofia specific rules

include $(top_srcdir)/rules/sofia.am

INCLUDES = ${INTERNAL_INCLUDES}