diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-10-21 13:50:20 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-10-22 15:42:27 +0200 |
commit | 35f2bd60ae44b9e01f3f842b83f648f7db7c366c (patch) | |
tree | 717fd557f30fb5b14bfdf4c3aa306ff4ed50b53f /src | |
parent | 2127a71515fcfb1e2cf74495e24b42ac597a35c7 (diff) |
Provide libosmo-hnbap as a public shared library
It is needed by the new osmo-hnodeb project.
Related: SYS#5516
Change-Id: I0d0862e9d59d3b206f3f7dfae4b39ae4032bb762
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 15 | ||||
-rw-r--r-- | src/hnbap/Makefile.am | 6 | ||||
-rw-r--r-- | src/tests/Makefile.am | 10 |
3 files changed, 19 insertions, 12 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 524f7b2..3414a01 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -61,9 +61,15 @@ AM_CFLAGS = -Wall -I$(top_srcdir)/include -I$(top_builddir)/include \ # build the shared RANAP + SABP library # +HNBAP_LIBVERSION=0:0:0 RANAP_LIBVERSION=4:0:1 SABP_LIBVERSION=0:0:0 -lib_LTLIBRARIES = libosmo-ranap.la libosmo-sabp.la +lib_LTLIBRARIES = libosmo-hnbap.la libosmo-ranap.la libosmo-sabp.la +libosmo_hnbap_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(HNBAP_LIBVERSION) +libosmo_hnbap_la_LIBADD = $(OSMOCORE_LIBS) $(OSMOGSM_LIBS) $(OSMOVTY_LIBS) $(OSMOSIGTRAN_LIBS) \ + $(ASN1C_LIBS) hnbap/libosmo-asn1-hnbap.la +libosmo_hnbap_la_SOURCES = hnbap_common.c hnbap_encoder.c hnbap_decoder.c + libosmo_ranap_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(RANAP_LIBVERSION) libosmo_ranap_la_LIBADD = $(OSMOCORE_LIBS) $(OSMOGSM_LIBS) $(OSMOVTY_LIBS) $(OSMOSIGTRAN_LIBS) \ $(ASN1C_LIBS) ranap/libosmo-asn1-ranap.la @@ -80,8 +86,7 @@ libosmo_sabp_la_SOURCES = sabp_common.c sabp_encoder.c sabp_decoder.c # bin_PROGRAMS = osmo-hnbgw -osmo_hnbgw_SOURCES = hnbap_encoder.c hnbap_decoder.c hnbap_common.c \ - rua_encoder.c rua_decoder.c rua_common.c \ +osmo_hnbgw_SOURCES = rua_encoder.c rua_decoder.c rua_common.c \ rua_msg_factory.c \ hnbgw.c hnbgw_hnbap.c hnbgw_rua.c hnbgw_ranap.c \ hnbgw_vty.c \ @@ -90,8 +95,8 @@ osmo_hnbgw_SOURCES = hnbap_encoder.c hnbap_decoder.c hnbap_common.c \ osmo_hnbgw_LDADD = $(OSMOCORE_LIBS) $(OSMOGSM_LIBS) $(OSMOVTY_LIBS) $(OSMOCTRL_LIBS) \ $(ASN1C_LIBS) $(OSMOSIGTRAN_LIBS) \ $(OSMONETIF_LIBS) \ - hnbap/libosmo-asn1-hnbap.a rua/libosmo-asn1-rua.a \ - libosmo-ranap.la + rua/libosmo-asn1-rua.a \ + libosmo-hnbap.la libosmo-ranap.la regen: regenerate-from-asn1-source diff --git a/src/hnbap/Makefile.am b/src/hnbap/Makefile.am index 8a2c56a..c4a8c29 100644 --- a/src/hnbap/Makefile.am +++ b/src/hnbap/Makefile.am @@ -236,9 +236,9 @@ AM_CFLAGS = -I$(top_srcdir)/include $(ASN1C_CFLAGS) $(OSMOCORE_CFLAGS) HNBAP_ASN1 = $(top_srcdir)/asn1/hnbap -noinst_LIBRARIES=libosmo-asn1-hnbap.a -libosmo_asn1_hnbap_a_SOURCES=$(ASN_MODULE_SOURCES) -libosmo_asn1_hnbap_a_LIBADD=$(ASN1C_LDADD) +noinst_LTLIBRARIES=libosmo-asn1-hnbap.la +libosmo_asn1_hnbap_la_SOURCES=$(ASN_MODULE_SOURCES) +libosmo_asn1_hnbap_la_LIBADD=$(ASN1C_LDADD) regen: regenerate-from-asn1-source diff --git a/src/tests/Makefile.am b/src/tests/Makefile.am index 003ea51..dfc8fe6 100644 --- a/src/tests/Makefile.am +++ b/src/tests/Makefile.am @@ -11,17 +11,16 @@ check_PROGRAMS = test-ranap test-helpers test-hnbap hnb-test #dummy-cn noinst_HEADERS = test_common.h hnb-test.h hnb-test-layers.h -HNBAP_FILES = $(top_srcdir)/src/hnbap_common.c $(top_builddir)/src/hnbap_decoder.c $(top_builddir)/src/hnbap_encoder.c RUA_FILES = $(top_srcdir)/src/rua_common.c $(top_builddir)/src/rua_decoder.c $(top_builddir)/src/rua_encoder.c $(top_srcdir)/src/rua_msg_factory.c test_helpers_SOURCES = test-helpers.c test_common.c test_helpers_LDADD = $(COMMON_LIBS) $(top_builddir)/src/libosmo-ranap.la test_hnbap_SOURCES = $(top_srcdir)/src/hnbap_common.c $(top_builddir)/src/hnbap_decoder.c test-hnbap.c test_common.c -test_hnbap_LDADD = $(COMMON_LIBS) $(top_builddir)/src/hnbap/libosmo-asn1-hnbap.a $(top_builddir)/src/libosmo-ranap.la +test_hnbap_LDADD = $(COMMON_LIBS) $(top_builddir)/src/libosmo-hnbap.la $(top_builddir)/src/libosmo-ranap.la -hnb_test_SOURCES = $(HNBAP_FILES) $(RUA_FILES) hnb-test.c test_common.c hnb-test-ranap.c hnb-test-rua.c -hnb_test_LDADD = $(COMMON_LIBS) $(top_builddir)/src/hnbap/libosmo-asn1-hnbap.a $(top_builddir)/src/rua/libosmo-asn1-rua.a $(top_builddir)/src/libosmo-ranap.la +hnb_test_SOURCES = $(RUA_FILES) hnb-test.c test_common.c hnb-test-ranap.c hnb-test-rua.c +hnb_test_LDADD = $(COMMON_LIBS) $(top_builddir)/src/libosmo-hnbap.la $(top_builddir)/src/rua/libosmo-asn1-rua.a $(top_builddir)/src/libosmo-ranap.la test_ranap_SOURCES = test-ranap.c test_common.c test_ranap_LDADD = $(COMMON_LIBS) $(top_builddir)/src/libosmo-ranap.la @@ -30,6 +29,9 @@ test_ranap_LDADD = $(COMMON_LIBS) $(top_builddir)/src/libosmo-ranap.la #dummy_cn_SOURCES = test_common.c dummy_cn_sua.c #dummy_cn_LDADD = $(COMMON_LIBS) $(top_builddir)/src/libosmo-ranap.la +$(top_builddir)/src/libosmo-hnbap.la: + $(MAKE) -C $(top_builddir)/src libosmo-hnbap.la + $(top_builddir)/src/libosmo-ranap.la: $(MAKE) -C $(top_builddir)/src libosmo-ranap.la |