install libosmo-pfcp

The first user of this is osmo-hnbgw, to implement GTP mapping via a
UPF.

Related: SYS#5895
Change-Id: If4465095000a898296d69d5b725507f909c87aa3
This commit is contained in:
Neels Hofmeyr 2022-04-09 17:38:06 +02:00 committed by Neels Hofmeyr
parent d39783cd17
commit 2f102058ca
5 changed files with 24 additions and 5 deletions

View File

@ -19,6 +19,7 @@ SUBDIRS = \
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = \
libosmo-gtlv.pc \
libosmo-pfcp.pc \
$(NULL)
BUILT_SOURCES = $(top_srcdir)/.version

View File

@ -86,6 +86,7 @@ AM_CONFIG_HEADER(config.h)
AC_OUTPUT(
libosmo-gtlv.pc
libosmo-pfcp.pc
include/Makefile
include/osmocom/Makefile
include/osmocom/gtlv/Makefile

10
libosmo-pfcp.pc.in Normal file
View File

@ -0,0 +1,10 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: Osmocom PFCP library
Description: C Utility Library that implements the PFCP protocol and endpoint
Version: @VERSION@
Libs: -L${libdir} -losmo-pfcp
Cflags: -I${includedir}/

View File

@ -19,11 +19,11 @@ AM_LDFLAGS = \
$(COVERAGE_LDFLAGS) \
$(NULL)
noinst_LIBRARIES = \
libosmo-pfcp.a \
lib_LTLIBRARIES = \
libosmo-pfcp.la \
$(NULL)
libosmo_pfcp_a_SOURCES = \
libosmo_pfcp_la_SOURCES = \
pfcp_endpoint.c \
pfcp_ies_custom.c \
pfcp_msg.c \
@ -32,6 +32,13 @@ libosmo_pfcp_a_SOURCES = \
pfcp_ies_auto.c \
$(NULL)
# 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=1:0:0
libosmo_pfcp_la_LDFLAGS = -version-info $(LIBVERSION) -no-undefined -export-symbols-regex '^osmo_'
BUILT_SOURCES = \
pfcp_ies_auto.c \
$(NULL)

View File

@ -22,9 +22,9 @@ pfcp_test_SOURCES = \
$(NULL)
pfcp_test_LDADD = \
$(top_builddir)/src/libosmo-pfcp/libosmo-pfcp.a \
$(top_builddir)/src/libosmo-gtlv/libosmo-gtlv.la \
$(LIBOSMOCORE_LIBS) \
$(top_builddir)/src/libosmo-gtlv/libosmo-gtlv.la \
$(top_builddir)/src/libosmo-pfcp/libosmo-pfcp.la \
$(NULL)
.PHONY: update_exp