2010-02-20 20:09:24 +00:00
|
|
|
# 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
|
2013-06-06 05:33:54 +00:00
|
|
|
LIBVERSION=5: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
|
|
|
|
AM_CFLAGS = -Wall
|
2010-02-20 20:09:24 +00:00
|
|
|
|
|
|
|
lib_LTLIBRARIES = libosmocore.la
|
|
|
|
|
2014-04-17 21:19:10 +00:00
|
|
|
libosmocore_la_LIBADD = $(BACKTRACE_LIB)
|
2011-03-23 17:08:08 +00:00
|
|
|
libosmocore_la_SOURCES = timer.c select.c signal.c msgb.c bits.c \
|
|
|
|
bitvec.c statistics.c \
|
2011-05-21 16:54:32 +00:00
|
|
|
write_queue.c utils.c socket.c \
|
2011-03-23 17:08:08 +00:00
|
|
|
logging.c logging_syslog.c rate_ctr.c \
|
|
|
|
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 \
|
|
|
|
macaddr.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
|
2013-03-03 09:07:16 +00:00
|
|
|
libosmocore_la_LDFLAGS = -version-info $(LIBVERSION) $(LIBRARY_DL) -no-undefined
|
2011-05-08 12:35:40 +00:00
|
|
|
else
|
2013-03-03 09:07:16 +00:00
|
|
|
libosmocore_la_LDFLAGS = -version-info $(LIBVERSION) -no-undefined
|
2010-06-30 17:43:11 +00:00
|
|
|
endif
|
2010-03-07 19:24:30 +00:00
|
|
|
|
|
|
|
if ENABLE_TALLOC
|
|
|
|
libosmocore_la_SOURCES += talloc.c
|
2011-10-10 13:16:36 +00:00
|
|
|
else
|
2014-04-17 21:19:10 +00:00
|
|
|
libosmocore_la_LIBADD += -ltalloc
|
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' $< > $@
|