move gprs/oap.c to libcommon/oap_client.c
This is in preparation for libvlr.
Related: OS#1592
Change-Id: Ib526df6d9de55a1e59a379d5e2c8541ed0ef67e3
diff --git a/openbsc/src/gprs/Makefile.am b/openbsc/src/gprs/Makefile.am
index ab2517e..d059aee 100644
--- a/openbsc/src/gprs/Makefile.am
+++ b/openbsc/src/gprs/Makefile.am
@@ -92,7 +92,6 @@
sgsn_cdr.c \
sgsn_ares.c \
slhc.c \
- oap.c \
gprs_llc_xid.c \
v42bis.c \
$(NULL)
@@ -137,9 +136,9 @@
gsup_test_client_SOURCES = \
gprs_gsup_client.c \
gsup_test_client.c \
- oap.c \
$(NULL)
gsup_test_client_LDADD = \
+ $(top_builddir)/src/libcommon/libcommon.a \
$(LIBOSMOCORE_LIBS) \
$(LIBOSMOGSM_LIBS) \
$(LIBOSMOVTY_LIBS) \
diff --git a/openbsc/src/libcommon/Makefile.am b/openbsc/src/libcommon/Makefile.am
index 6cfebc2..6582d1e 100644
--- a/openbsc/src/libcommon/Makefile.am
+++ b/openbsc/src/libcommon/Makefile.am
@@ -23,6 +23,7 @@
debug.c \
gsm_data.c \
gsm_data_shared.c \
+ oap_client.c \
socket.c \
talloc_ctx.c \
gsm_subscriber_base.c \
diff --git a/openbsc/src/gprs/oap.c b/openbsc/src/libcommon/oap_client.c
similarity index 100%
rename from openbsc/src/gprs/oap.c
rename to openbsc/src/libcommon/oap_client.c