fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmocom-bb/+/30105 )
Change subject: trxcon: turn libtrxcon into shared library libosmo-trxcon ......................................................................
trxcon: turn libtrxcon into shared library libosmo-trxcon
Change-Id: I508292e76c81ba7bc0c35db391a8622c46bdbe41 Related: OS#5599 --- M src/host/trxcon/include/osmocom/bb/trxcon/Makefile.am M src/host/trxcon/src/Makefile.am 2 files changed, 21 insertions(+), 6 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/05/30105/1
diff --git a/src/host/trxcon/include/osmocom/bb/trxcon/Makefile.am b/src/host/trxcon/include/osmocom/bb/trxcon/Makefile.am index 1310a43..e39d07a 100644 --- a/src/host/trxcon/include/osmocom/bb/trxcon/Makefile.am +++ b/src/host/trxcon/include/osmocom/bb/trxcon/Makefile.am @@ -1,9 +1,14 @@ +trxcon_HEADERS = \ + trxcon.h \ + phyif.h \ + $(NULL) + noinst_HEADERS = \ l1ctl_proto.h \ l1ctl_server.h \ l1ctl.h \ - phyif.h \ trx_if.h \ logging.h \ - trxcon.h \ $(NULL) + +trxcondir = $(includedir)/osmocom/trxcon diff --git a/src/host/trxcon/src/Makefile.am b/src/host/trxcon/src/Makefile.am index 34b7a3c..c9355ac 100644 --- a/src/host/trxcon/src/Makefile.am +++ b/src/host/trxcon/src/Makefile.am @@ -1,3 +1,8 @@ +# 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=0:0:0 + AM_CPPFLAGS = \ $(all_includes) \ -I$(top_srcdir)/include \ @@ -35,21 +40,26 @@ $(NULL)
-noinst_LTLIBRARIES += libtrxcon.la +lib_LTLIBRARIES = libosmo-trxcon.la
-libtrxcon_la_SOURCES = \ +libosmo_trxcon_la_SOURCES = \ trxcon_inst.c \ trxcon_fsm.c \ trxcon_shim.c \ l1ctl.c \ $(NULL)
-libtrxcon_la_LIBADD = \ +libosmo_trxcon_la_LIBADD = \ libl1sched.la \ $(LIBOSMOCORE_LIBS) \ $(LIBOSMOGSM_LIBS) \ $(NULL)
+libosmo_trxcon_la_LDFLAGS = \ + -export-symbols-regex '^osmo_' \ + -version-info $(LIBVERSION) \ + $(NULL) +
bin_PROGRAMS = trxcon
@@ -61,5 +71,5 @@ $(NULL)
trxcon_LDADD = \ - libtrxcon.la \ + libosmo-trxcon.la \ $(NULL)