2010-02-20 20:09:24 +00:00
|
|
|
# This is _NOT_ the library release version, it's an API version.
|
2016-12-13 17:41:17 +00:00
|
|
|
# Please read chapter "Library interface versions" of the libtool documentation
|
|
|
|
# before making any modifications: https://www.gnu.org/software/libtool/manual/html_node/Versioning.html
|
|
|
|
LIBVERSION=8:0:0
|
2010-02-20 20:09:24 +00:00
|
|
|
|
2013-06-02 23:59:25 +00:00
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include
|
2015-12-05 22:38:18 +00:00
|
|
|
AM_CFLAGS = -Wall $(TALLOC_CFLAGS)
|
2010-02-20 20:09:24 +00:00
|
|
|
|
2017-05-15 19:37:34 +00:00
|
|
|
if ENABLE_PSEUDOTALLOC
|
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/src/pseudotalloc
|
|
|
|
endif
|
|
|
|
|
2010-02-20 20:09:24 +00:00
|
|
|
lib_LTLIBRARIES = libosmocore.la
|
|
|
|
|
2015-12-05 22:38:18 +00:00
|
|
|
libosmocore_la_LIBADD = $(BACKTRACE_LIB) $(TALLOC_LIBS)
|
2016-09-22 01:58:13 +00:00
|
|
|
libosmocore_la_SOURCES = timer.c timer_gettimeofday.c select.c signal.c msgb.c bits.c \
|
2016-05-29 01:53:17 +00:00
|
|
|
bitvec.c bitcomp.c statistics.c fsm.c \
|
2011-05-21 16:54:32 +00:00
|
|
|
write_queue.c utils.c socket.c \
|
2016-12-02 14:30:02 +00:00
|
|
|
logging.c logging_syslog.c logging_gsmtap.c rate_ctr.c \
|
2011-03-23 17:08:08 +00:00
|
|
|
gsmtap_util.c crc16.c panic.c backtrace.c \
|
2013-02-21 05:16:29 +00:00
|
|
|
conv.c application.c rbtree.c strrb.c \
|
2014-08-18 17:03:40 +00:00
|
|
|
loggingrb.c crc8gen.c crc16gen.c crc32gen.c crc64gen.c \
|
2016-11-24 12:24:32 +00:00
|
|
|
macaddr.c stat_item.c stats.c stats_statsd.c prim.c \
|
2017-05-14 19:48:41 +00:00
|
|
|
viterbi.c viterbi_gen.c sercomm.c
|
2010-06-30 17:43:11 +00:00
|
|
|
|
2012-06-29 20:01:21 +00:00
|
|
|
BUILT_SOURCES = crc8gen.c crc16gen.c crc32gen.c crc64gen.c
|
|
|
|
|
2010-06-30 17:43:11 +00:00
|
|
|
if ENABLE_PLUGIN
|
|
|
|
libosmocore_la_SOURCES += plugin.c
|
2015-12-05 22:38:18 +00:00
|
|
|
libosmocore_la_LDFLAGS = -version-info $(LIBVERSION) $(TALLOC_LIBS) $(LIBRARY_DL) -no-undefined
|
2011-05-08 12:35:40 +00:00
|
|
|
else
|
2015-12-05 22:38:18 +00:00
|
|
|
libosmocore_la_LDFLAGS = -version-info $(LIBVERSION) $(TALLOC_LIBS) -no-undefined
|
2010-03-07 19:24:30 +00:00
|
|
|
endif
|
2010-10-06 16:00:15 +00:00
|
|
|
|
|
|
|
if ENABLE_MSGFILE
|
|
|
|
libosmocore_la_SOURCES += msgfile.c
|
|
|
|
endif
|
2011-09-02 20:18:24 +00:00
|
|
|
|
|
|
|
if ENABLE_SERIAL
|
|
|
|
libosmocore_la_SOURCES += serial.c
|
|
|
|
endif
|
2011-09-16 20:59:18 +00:00
|
|
|
|
|
|
|
crc%gen.c: crcXXgen.c.tpl
|
2012-06-29 20:01:20 +00:00
|
|
|
$(AM_V_GEN)sed -e's/XX/$*/g' $< > $@
|