Makefile.am 1.07 KB
Newer Older
1 2 3
ANTLR=antlr3

grammar_files= \
4 5
						$(srcdir)/belle_sip_uri.g \
						$(srcdir)/belle_sip_message.g
6 7 8

generated_src= \
	belle_sip_uriParser.c belle_sip_uriParser.h \
9 10 11
	belle_sip_uriLexer.c belle_sip_uriLexer.h \
	belle_sip_messageParser.c belle_sip_messageParser.h \
	belle_sip_messageLexer.c belle_sip_messageLexer.h
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27

$(generated_src)	:	$(grammar_files)
	$(ANTLR) -make -fo $(builddir) $(grammar_files)

BUILT_SOURCES=$(generated_src)

noinst_LTLIBRARIES=libbellesip_generated.la

nodist_libbellesip_generated_la_SOURCES=$(generated_src)

libbellesip_generated_la_CFLAGS=$(LESS_STRICT_OPTIONS)

lib_LTLIBRARIES=libbellesip.la


libbellesip_la_SOURCES=belle_sip_uri_impl.c \
28
									belle_sip_headers_impl.c \
29
									belle_sip_utils.c belle_sip_internal.h \
Simon Morlat's avatar
Simon Morlat committed
30
									belle_sip_object.c \
Simon Morlat's avatar
Simon Morlat committed
31
									belle_sip_loop.c \
32 33
									belle_sip_resolver.c belle_sip_resolver.h \
									transaction.c
34 35 36 37 38 39 40 41 42 43

libbellesip_la_CFLAGS=$(STRICT_OPTIONS)

libbellesip_la_LIBADD=libbellesip_generated.la -lantlr3c

INCLUDES=-I$(top_srcdir)/include

EXTRA_DIST=$(grammar_files)

CLEANFILES=$(generated_src) *.tokens