# This is _NOT_ the library release version, it's an API version.
# Please read Chapter 6 "Library interface versions" of the libtool documentation before making any modification
LIBVERSION=14:0:3

AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)
AM_CFLAGS= -fPIC -Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS) \
	$(LIBOSMOVTY_CFLAGS) $(COVERAGE_CFLAGS) $(LIBSCTP_CFLAGS)
AM_LDFLAGS = $(COVERAGE_LDFLAGS)

lib_LTLIBRARIES = libosmonetif.la

libosmonetif_la_LIBADD = $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) \
	$(LIBOSMOVTY_LIBS) $(LIBSCTP_LIBS)
libosmonetif_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBVERSION) -no-undefined

libosmonetif_la_SOURCES = amr.c			\
			  datagram.c		\
			  ipa.c			\
			  ipa_keepalive.c	\
			  ipa_unit.c		\
			  jibuf.c		\
			  osmux.c		\
			  osmux_input.c		\
			  osmux_output.c	\
			  prim.c		\
			  rs232.c		\
			  rtp.c			\
			  stream.c		\
			  stream_cli.c		\
			  stream_srv.c		\
			  twjit.c		\
			  twjit_conf.c		\
			  twrtp.c		\
			  $(NULL)

if ENABLE_LIBSCTP
libosmonetif_la_SOURCES += sctp.c
endif
