Makefile.am 2.72 KB
Newer Older
1 2

grammar_files= \
3
						$(srcdir)/belle_sip_message.g \
4
						$(srcdir)/belle_sdp.g
5 6

generated_src= \
7
	belle_sip_messageParser.c belle_sip_messageParser.h \
8 9 10
	belle_sip_messageLexer.c belle_sip_messageLexer.h \
	belle_sdpParser.c belle_sdpParser.h \
	belle_sdpLexer.c belle_sdpLexer.h
11

12
$(builddir)/generated_src_stamp : $(grammar_files)
jehan's avatar
jehan committed
13
	$(ANTLR)  -make -fo $(builddir) $(grammar_files)
14 15 16 17
	touch $(builddir)/generated_src_stamp

$(generated_src)	:	$(builddir)/generated_src_stamp
	
18 19 20

BUILT_SOURCES=$(generated_src)

jehan's avatar
jehan committed
21
noinst_LTLIBRARIES=libbellesip_generated.la libbellesip_tls.la
22
nodist_libbellesip_generated_la_SOURCES=$(generated_src)
jehan's avatar
jehan committed
23
libbellesip_generated_la_CFLAGS=$(LESS_STRICT_OPTIONS) $(ANTLR_CFLAGS)
24

jehan's avatar
jehan committed
25 26 27 28 29
#to disbale warning introduced by compatibility between polar 1.2 and 1.3
nodist_libbellesip_tls_la_SOURCES= transports/tls_listeningpoint_polarssl.c transports/tls_channel_polarssl.c 
libbellesip_tls_la_CFLAGS=$(LESS_STRICT_OPTIONS) $(TLS_CFLAGS)  $(LIBBELLESIP_CFLAGS)


30 31 32
lib_LTLIBRARIES=libbellesip.la


jehan's avatar
jehan committed
33 34
libbellesip_la_SOURCES=				\
									clock_gettime.c clock_gettime.h \
Simon Morlat's avatar
Simon Morlat committed
35
									port.c port.h \
36
									belle_sip_uri_impl.c \
37
									belle_sip_headers_impl.c \
38
									belle_sip_utils.c belle_sip_internal.h \
Simon Morlat's avatar
Simon Morlat committed
39
									belle_sip_object.c \
Simon Morlat's avatar
Simon Morlat committed
40
									belle_sip_loop.c \
41
									belle_sip_resolver.c \
42
									belle_sip_parameters.c \
43
									belle_sdp_impl.c \
44
									transaction.c \
Simon Morlat's avatar
Simon Morlat committed
45
									listeningpoint.c listeningpoint_internal.h \
46 47
									sipstack.c \
									provider.c \
48
									channel.c channel.h \
jehan's avatar
jehan committed
49
									message.c \
Simon Morlat's avatar
Simon Morlat committed
50
									md5.c md5.h \
Simon Morlat's avatar
Simon Morlat committed
51
									auth_helper.c \
52
									siplistener.c \
jehan's avatar
jehan committed
53
									ict.c \
Simon Morlat's avatar
Simon Morlat committed
54
									ist.c \
Simon Morlat's avatar
Simon Morlat committed
55
									nict.c \
56
									nist.c \
Simon Morlat's avatar
Simon Morlat committed
57
									dialog.c \
58
									auth_event.c \
jehan's avatar
jehan committed
59 60 61
									transports/udp_listeningpoint.c \
									transports/udp_channel.c \
									transports/stream_channel.c \
Simon Morlat's avatar
Simon Morlat committed
62
									transports/stream_channel.h \
jehan's avatar
jehan committed
63
									transports/stream_listeningpoint.c \
jehan's avatar
jehan committed
64
									refresher.c \
65
									dns.c dns.h
66

67 68 69 70 71 72
if BUILD_TUNNEL
libbellesip_la_SOURCES+=						transports/tunnel_listeningpoint.c \
									transports/tunnel_channel.c \
									transports/tunnel_wrapper.cc
endif

73

Ghislain MARY's avatar
Ghislain MARY committed
74
libbellesip_la_CFLAGS=$(STRICT_OPTIONS) $(ANTLR_CFLAGS) $(TLS_CFLAGS) $(TUNNEL_CFLAGS) $(LIBBELLESIP_CFLAGS)
75
libbellesip_la_CXXFLAGS=$(STRICT_OPTIONS) $(TLS_CFLAGS) $(TUNNEL_CFLAGS) $(LIBBELLESIP_CFLAGS)
76

jehan's avatar
jehan committed
77
libbellesip_la_LIBADD=libbellesip_generated.la libbellesip_tls.la $(ANTLR_LIBS) $(TLS_LIBS) $(TUNNEL_LIBS)
78

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

Simon Morlat's avatar
Simon Morlat committed
81

jehan's avatar
jehan committed
82
AM_CPPFLAGS=-I$(top_srcdir)/include
83 84 85

EXTRA_DIST=$(grammar_files)

86
CLEANFILES=$(generated_src) *.tokens generated_src_stamp
jehan's avatar
jehan committed
87 88

discovery:
89 90
	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
91