aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-12-20 19:00:49 +0100
committerHarald Welte <laforge@osmocom.org>2020-12-20 19:00:49 +0100
commit0ac0fc6ccc333f6b26023947ed40b562fdb5fbb8 (patch)
tree8b6bedc41f4eefefb4acdf3f34a9935a2ff5a6d6
parent1922bee5576721df016107dd60048bcee4ad1a86 (diff)
generate libosmogb-test.la without the use of libosmogb.maplaforge/gb-test
-rw-r--r--src/gb/Makefile.am6
-rw-r--r--tests/Makefile.am17
2 files changed, 8 insertions, 15 deletions
diff --git a/src/gb/Makefile.am b/src/gb/Makefile.am
index ea1cfde7..ffb17c8d 100644
--- a/src/gb/Makefile.am
+++ b/src/gb/Makefile.am
@@ -28,6 +28,12 @@ libosmogb_la_SOURCES = gprs_ns.c gprs_ns_frgre.c gprs_ns_vty.c gprs_ns_sns.c \
gprs_ns2_message.c gprs_ns2_vty.c \
gprs_bssgp2.c bssgp_bvc_fsm.c \
common_vty.c frame_relay.c
+
+# convenience library for testing with access to all non-static symbols
+noinst_LTLIBRARIES = libosmogb-test.la
+libosmogb_test_la_LIBADD = $(libosmogb_la_LIBADD)
+libosmogb_test_la_SOURCES= $(libosmogb_la_SOURCES)
+
endif
EXTRA_DIST = libosmogb.map
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 49ae86f4..ea60fd98 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -180,22 +180,9 @@ gb_gprs_ns_test_LDADD = $(LDADD) $(top_builddir)/src/gb/libosmogb.la $(LIBRARY_D
$(top_builddir)/src/vty/libosmovty.la \
$(top_builddir)/src/gsm/libosmogsm.la
-gb_gprs_ns2_test_SOURCES = gb/gprs_ns2_test.c \
- $(top_srcdir)/src/gb/gprs_ns2.c \
- $(top_srcdir)/src/gb/gprs_ns2_udp.c \
- $(top_srcdir)/src/gb/gprs_ns2_frgre.c \
- $(top_srcdir)/src/gb/gprs_ns2_fr.c \
- $(top_srcdir)/src/gb/gprs_ns2_vc_fsm.c \
- $(top_srcdir)/src/gb/gprs_ns2_sns.c \
- $(top_srcdir)/src/gb/gprs_ns2_message.c \
- $(top_srcdir)/src/gb/gprs_ns2_vty.c \
- $(top_srcdir)/src/gb/gprs_ns.c \
- $(top_srcdir)/src/gb/gprs_ns_frgre.c \
- $(top_srcdir)/src/gb/gprs_ns_vty.c \
- $(top_srcdir)/src/gb/gprs_ns_sns.c \
- $(top_srcdir)/src/gb/frame_relay.c \
- $(top_srcdir)/src/gb/common_vty.c
+gb_gprs_ns2_test_SOURCES = gb/gprs_ns2_test.c
gb_gprs_ns2_test_LDADD = $(LDADD) $(LIBRARY_DLSYM) \
+ $(top_builddir)/src/gb/libosmogb-test.la \
$(top_builddir)/src/vty/libosmovty.la \
$(top_builddir)/src/gsm/libosmogsm.la \
$(top_builddir)/src/libosmocore.la