Makefile.am 1.9 KB
Newer Older
1
SUBDIRS=grammars
jehan's avatar
jehan committed
2
AUTOMAKE_OPTIONS = subdir-objects
3 4 5

lib_LTLIBRARIES=libbellesip.la

jehan's avatar
jehan committed
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 37 38 39 40 41 42 43 44 45 46 47
libbellesip_la_SOURCES=	\
			clock_gettime.c clock_gettime.h \
			port.c port.h \
			parserutils.h \
			belle_sip_uri_impl.c \
			belle_sip_headers_impl.c \
			belle_sip_utils.c belle_sip_internal.h \
			belle_sip_object.c \
			belle_sip_loop.c \
			belle_sip_resolver.c \
			belle_sip_parameters.c \
			belle_sdp_impl.c \
			transaction.c \
			listeningpoint.c listeningpoint_internal.h \
			sipstack.c \
			provider.c \
			channel.c channel.h \
			message.c \
			md5.c md5.h \
			auth_helper.c \
			siplistener.c \
			ict.c \
			ist.c \
			nict.c \
			nist.c \
			dialog.c \
			auth_event.c \
			transports/udp_listeningpoint.c \
			transports/udp_channel.c \
			transports/stream_channel.c \
			transports/stream_channel.h \
			transports/stream_listeningpoint.c \
			transports/tls_listeningpoint_polarssl.c \
			transports/tls_channel_polarssl.c \
			refresher.c \
			dns.c dns.h \
			belle_sip_dict.c \
			generic-uri.c \
			http-provider.c \
			http-message.c \
			http-listener.c \
			bodyhandler.c
48

49

50
if BUILD_APPLE
51 52
libbellesip_la_SOURCES+=backgroundtask.m
endif
53

54
if BUILD_TUNNEL
jehan's avatar
jehan committed
55 56 57
libbellesip_la_SOURCES+=transports/tunnel_listeningpoint.c \
			transports/tunnel_channel.c \
			transports/tunnel_wrapper.cc
58 59
endif

60

61 62
libbellesip_la_CFLAGS=$(STRICT_OPTIONS) $(STRICT_OPTIONS_CC) $(ANTLR_CFLAGS) $(TLS_CFLAGS) $(TUNNEL_CFLAGS) $(LIBBELLESIP_CFLAGS)
libbellesip_la_CXXFLAGS=$(STRICT_OPTIONS) $(STRICT_OPTIONS_CXX) $(TLS_CFLAGS) $(TUNNEL_CFLAGS) $(LIBBELLESIP_CFLAGS)
63

jehan's avatar
jehan committed
64
libbellesip_la_LIBADD=grammars/libbellesip_generated.la $(ANTLR_LIBS) $(TLS_LIBS) $(TUNNEL_LIBS)
65

66
libbellesip_la_LDFLAGS=-no-undefined -version-info $(BELLESIP_SO_VERSION) $(LDFLAGS)
67

68

69
AM_CPPFLAGS=-I$(top_srcdir)/include -I$(builddir)/grammars
jehan's avatar
jehan committed
70 71

discovery:
72 73
	touch specs.c
	$(CC) $(CFLAGS) -include $(top_builddir)/config.h $(ANTLR_CFLAGS) $(CUNIT_CFLAGS) $(TLS_CFLAGS) -E -P -v -dD specs.c
74