Makefile.am 774 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
ANTLR=antlr3

grammar_files= \
						$(srcdir)/belle_sip_uri.g

generated_src= \
	belle_sip_uriParser.c belle_sip_uriParser.h \
	belle_sip_uriLexer.c belle_sip_uriLexer.h

$(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 \
									belle_sip_utils.c belle_sip_utils.h

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