Makefile.am 2.77 KB
Newer Older
jehan's avatar
jehan committed
1
AUTOMAKE_OPTIONS = subdir-objects
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)
13
	$(ANTLR)  -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
#to disbale warning introduced by compatibility between polar 1.2 and 1.3
26
libbellesip_tls_la_SOURCES= transports/tls_listeningpoint_polarssl.c transports/tls_channel_polarssl.c 
jehan's avatar
jehan committed
27 28 29
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 66
									dns.c dns.h \
									belle_sip_dict.c
67

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

74

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

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

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

Simon Morlat's avatar
Simon Morlat committed
82

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

EXTRA_DIST=$(grammar_files)

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

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