Makefile.am 1.54 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)
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


30 31
libbellesip_la_SOURCES=clock_gettime.h \
									belle_sip_uri_impl.c \
32
									belle_sip_headers_impl.c \
33
									belle_sip_utils.c belle_sip_internal.h \
Simon Morlat's avatar
Simon Morlat committed
34
									belle_sip_object.c \
Simon Morlat's avatar
Simon Morlat committed
35
									belle_sip_loop.c \
36
									belle_sip_resolver.c belle_sip_resolver.h \
37
									belle_sip_parameters.c \
38
									belle_sdp_impl.c \
39 40
									transaction.c \
									listeningpoint.c \
41 42
									sipstack.c \
									provider.c \
43
									channel.c channel.h \
jehan's avatar
jehan committed
44
									message.c \
jehan's avatar
jehan committed
45 46
									md5.c \
									auth_helper.c
47

jehan's avatar
jehan committed
48
libbellesip_la_CFLAGS=$(STRICT_OPTIONS) $(ANTLR_CFLAGS)
49

jehan's avatar
jehan committed
50
libbellesip_la_LIBADD=libbellesip_generated.la $(ANTLR_LIBS)
51

Simon Morlat's avatar
Simon Morlat committed
52

53 54 55 56
INCLUDES=-I$(top_srcdir)/include

EXTRA_DIST=$(grammar_files)

57
CLEANFILES=$(generated_src) *.tokens generated_src_stamp
jehan's avatar
jehan committed
58 59 60 61

discovery:
	touch specs.cpp
	$(CC) $(CFLAGS) $(ANTLR_CFLAGS) $(CUNIT_CFLAGS) -E -P -v -dD specs.cpp