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
|
2011-11-24 16:53:53 +00:00
|
|
|
LIBVERSION=4:0:0
|
2010-02-20 20:09:24 +00:00
|
|
|
|
2011-10-21 19:23:05 +00:00
|
|
|
INCLUDES = $(all_includes) -I$(top_srcdir)/include -I$(top_builddir)/include
|
2010-02-20 20:09:24 +00:00
|
|
|
AM_CFLAGS = -fPIC -Wall
|
|
|
|
|
|
|
|
lib_LTLIBRARIES = libosmocore.la
|
|
|
|
|
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 \
|
2011-09-26 09:44:57 +00:00
|
|
|
conv.c application.c rbtree.c \
|
2011-09-16 20:59:18 +00:00
|
|
|
crc8gen.c crc16gen.c crc32gen.c crc64gen.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
|
2011-11-09 10:26:15 +00:00
|
|
|
libosmocore_la_LDFLAGS = -version-info $(LIBVERSION) $(LIBRARY_DL)
|
2011-05-08 12:35:40 +00:00
|
|
|
else
|
|
|
|
libosmocore_la_LDFLAGS = -version-info $(LIBVERSION)
|
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
|
|
|
|
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' $< > $@
|