Makefile.am 1.48 KB
Newer Older
1

2
if ENABLE_TESTS
3

Simon Morlat's avatar
Simon Morlat committed
4
noinst_PROGRAMS=belle_sip_tester belle_sip_object_describe belle_sip_parse belle_http_get belle_sip_resolve
5

jehan's avatar
jehan committed
6 7
EXTRA_DIST= belle_sip_base_uri_tester.c

8 9 10 11
belle_sip_tester_SOURCES= \
				auth_helper_tester.c \
				belle_generic_uri_tester.c \
				belle_http_tester.c \
jehan's avatar
jehan committed
12
				belle_sdp_tester.c \
13 14
				belle_sip_core_tester.c \
				belle_sip_dialog_tester.c \
jehan's avatar
jehan committed
15
				belle_sip_headers_tester.c \
jehan's avatar
jehan committed
16
				belle_sip_message_tester.c \
Ghislain MARY's avatar
Ghislain MARY committed
17
				belle_sip_refresher_tester.c \
18
				belle_sip_register_tester.c \
Simon Morlat's avatar
Simon Morlat committed
19
				belle_sip_resolver_tester.c \
20 21
				belle_sip_tester.c belle_sip_tester.h\
				belle_sip_uri_tester.c \
jehan's avatar
jehan committed
22
				belle_sip_fast_uri_tester.c \
23
				cast_test.c \
24
				register_tester.h
25

26

27 28
belle_sip_tester_CFLAGS=\
	-DBC_CONFIG_FILE=\"config.h\" \
29
	$(BCTOOLBOXTESTER_CFLAGS) \
30 31 32
	$(STRICT_OPTIONS) \
	$(STRICT_OPTIONS_CC) \
	$(TLS_CFLAGS)
jehan's avatar
jehan committed
33

Simon Morlat's avatar
Simon Morlat committed
34
belle_sip_tester_LDADD=$(top_builddir)/src/libbellesip.la $(TLS_LIBS) $(BCTOOLBOXTESTER_LIBS)
35

36 37
belle_sip_object_describe_SOURCES=describe.c

38 39
belle_sip_parse_SOURCES=parse.c

40 41
belle_http_get_SOURCES=get.c

Simon Morlat's avatar
Simon Morlat committed
42
belle_sip_resolve_SOURCES=resolve.c
43
belle_sip_resolve_CFLAGS=$(TLS_CFLAGS)
Simon Morlat's avatar
Simon Morlat committed
44

45
AM_CPPFLAGS=-I$(top_srcdir)/include -I$(top_srcdir)/src
46

Simon Morlat's avatar
Simon Morlat committed
47
LDADD=$(top_builddir)/src/libbellesip.la $(TLS_LIBS)
48

Simon Morlat's avatar
Simon Morlat committed
49

50
AM_LDFLAGS=-no-undefined -export-dynamic
51
#AM_LDFLAGS+=-Wl,-rpath -Wl,$(libdir)
52

Simon Morlat's avatar
Simon Morlat committed
53

54
AM_CFLAGS=$(STRICT_OPTIONS) $(STRICT_OPTIONS_CC)
55

jehan's avatar
jehan committed
56 57

test: belle_sip_tester
58
	./belle_sip_tester $(TEST_OPTIONS)
59 60 61 62

else

test:
63
	@echo "bctoolbox-tester must be installed to be able to run the tests!"
64

65
endif
66