Makefile.am 2.19 KB
Newer Older
1
SUBDIRS=grammars
2 3


4
noinst_LTLIBRARIES=libbellesip_tls.la
5

6
#to disable warning introduced by compatibility between polar 1.2 and 1.3
Simon Morlat's avatar
Simon Morlat committed
7
libbellesip_tls_la_SOURCES= transports/tls_listeningpoint_polarssl.c transports/tls_channel_polarssl.c
jehan's avatar
jehan committed
8 9 10
libbellesip_tls_la_CFLAGS=$(LESS_STRICT_OPTIONS) $(TLS_CFLAGS)  $(LIBBELLESIP_CFLAGS)


11 12 13
lib_LTLIBRARIES=libbellesip.la


jehan's avatar
jehan committed
14 15
libbellesip_la_SOURCES=				\
									clock_gettime.c clock_gettime.h \
Simon Morlat's avatar
Simon Morlat committed
16
									port.c port.h \
Simon Morlat's avatar
Simon Morlat committed
17
									parserutils.h \
18
									belle_sip_uri_impl.c \
19
									belle_sip_headers_impl.c \
20
									belle_sip_utils.c belle_sip_internal.h \
Simon Morlat's avatar
Simon Morlat committed
21
									belle_sip_object.c \
Simon Morlat's avatar
Simon Morlat committed
22
									belle_sip_loop.c \
23
									belle_sip_resolver.c \
24
									belle_sip_parameters.c \
25
									belle_sdp_impl.c \
26
									transaction.c \
Simon Morlat's avatar
Simon Morlat committed
27
									listeningpoint.c listeningpoint_internal.h \
28 29
									sipstack.c \
									provider.c \
30
									channel.c channel.h \
jehan's avatar
jehan committed
31
									message.c \
Simon Morlat's avatar
Simon Morlat committed
32
									md5.c md5.h \
Simon Morlat's avatar
Simon Morlat committed
33
									auth_helper.c \
34
									siplistener.c \
jehan's avatar
jehan committed
35
									ict.c \
Simon Morlat's avatar
Simon Morlat committed
36
									ist.c \
Simon Morlat's avatar
Simon Morlat committed
37
									nict.c \
38
									nist.c \
Simon Morlat's avatar
Simon Morlat committed
39
									dialog.c \
40
									auth_event.c \
jehan's avatar
jehan committed
41 42 43
									transports/udp_listeningpoint.c \
									transports/udp_channel.c \
									transports/stream_channel.c \
Simon Morlat's avatar
Simon Morlat committed
44
									transports/stream_channel.h \
jehan's avatar
jehan committed
45
									transports/stream_listeningpoint.c \
jehan's avatar
jehan committed
46
									refresher.c \
Simon Morlat's avatar
Simon Morlat committed
47
									dns.c dns.h \
48
									belle_sip_dict.c \
49
									generic-uri.c \
Simon Morlat's avatar
Simon Morlat committed
50
									http-provider.c \
Simon Morlat's avatar
Simon Morlat committed
51 52
									http-message.c \
									http-listener.c
53
									
54

55
if BUILD_TUNNEL
56
libbellesip_la_SOURCES+=			transports/tunnel_listeningpoint.c \
57 58 59 60
									transports/tunnel_channel.c \
									transports/tunnel_wrapper.cc
endif

61

62
libbellesip_la_CFLAGS=$(STRICT_OPTIONS) $(ANTLR_CFLAGS) $(TLS_CFLAGS) $(TUNNEL_CFLAGS) $(LIBBELLESIP_CFLAGS) 
63
libbellesip_la_CXXFLAGS=$(STRICT_OPTIONS) $(TLS_CFLAGS) $(TUNNEL_CFLAGS) $(LIBBELLESIP_CFLAGS)
64

65
libbellesip_la_LIBADD=grammars/libbellesip_generated.la libbellesip_tls.la $(ANTLR_LIBS) $(TLS_LIBS) $(TUNNEL_LIBS)
66

Ghislain MARY's avatar
Ghislain MARY committed
67
libbellesip_la_LDFLAGS=-no-undefined $(LDFLAGS)
Simon Morlat's avatar
Simon Morlat committed
68

Simon Morlat's avatar
Simon Morlat committed
69

70
AM_CPPFLAGS=-I$(top_srcdir)/include -I$(builddir)/grammars 
jehan's avatar
jehan committed
71 72

discovery:
73 74
	touch specs.c
	$(CC) $(CFLAGS) -include $(top_builddir)/config.h $(ANTLR_CFLAGS) $(CUNIT_CFLAGS) $(TLS_CFLAGS) -E -P -v -dD specs.c
Simon Morlat's avatar
Simon Morlat committed
75