Makefile.am 2.49 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 21 22 23 24

BUILT_SOURCES=$(generated_src)

noinst_LTLIBRARIES=libbellesip_generated.la

nodist_libbellesip_generated_la_SOURCES=$(generated_src)

jehan's avatar
jehan committed
25
libbellesip_generated_la_CFLAGS=$(LESS_STRICT_OPTIONS) $(ANTLR_CFLAGS)
26 27 28 29

lib_LTLIBRARIES=libbellesip.la


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

69

Ghislain MARY's avatar
Ghislain MARY committed
70
libbellesip_la_CFLAGS=$(STRICT_OPTIONS) $(ANTLR_CFLAGS) $(TLS_CFLAGS) $(TUNNEL_CFLAGS) $(LIBBELLESIP_CFLAGS)
71
libbellesip_la_CXXFLAGS=$(STRICT_OPTIONS) $(TLS_CFLAGS) $(TUNNEL_CFLAGS) $(LIBBELLESIP_CFLAGS)
72

Ghislain MARY's avatar
Ghislain MARY committed
73
libbellesip_la_LIBADD=libbellesip_generated.la $(ANTLR_LIBS) $(TLS_LIBS) $(TUNNEL_LIBS)
74

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

Simon Morlat's avatar
Simon Morlat committed
77

jehan's avatar
jehan committed
78
AM_CPPFLAGS=-I$(top_srcdir)/include
79 80 81

EXTRA_DIST=$(grammar_files)

82
CLEANFILES=$(generated_src) *.tokens generated_src_stamp
jehan's avatar
jehan committed
83 84

discovery:
85 86
	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
87