From 5e6f52f15ac337599dd7f0971e906da8c162f219 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 12 Feb 2010 12:31:11 +0100 Subject: [PATCH] [sccp] Install the static sccp library and the headers --- openbsc/Makefile.am | 2 +- openbsc/configure.in | 1 + openbsc/include/sccp/Makefile.am | 3 ++- openbsc/libsccp.pc.in | 10 ++++++++++ openbsc/src/Makefile.am | 4 ++-- 5 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 openbsc/libsccp.pc.in diff --git a/openbsc/Makefile.am b/openbsc/Makefile.am index eda3e90b1..7dcd956df 100644 --- a/openbsc/Makefile.am +++ b/openbsc/Makefile.am @@ -4,7 +4,7 @@ INCLUDES = $(all_includes) -I$(top_srcdir)/include SUBDIRS = include src tests pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = openbsc.pc liblaf0rge1.pc +pkgconfig_DATA = openbsc.pc liblaf0rge1.pc libsccp.pc #dist-hook: # rm -rf `find $(distdir) -name .svn` diff --git a/openbsc/configure.in b/openbsc/configure.in index de16c01a8..88a3f61f4 100644 --- a/openbsc/configure.in +++ b/openbsc/configure.in @@ -39,6 +39,7 @@ AM_CONFIG_HEADER(bscconfig.h) AC_OUTPUT( openbsc.pc liblaf0rge1.pc + libsccp.pc include/openbsc/Makefile include/vty/Makefile include/sccp/Makefile diff --git a/openbsc/include/sccp/Makefile.am b/openbsc/include/sccp/Makefile.am index 42fd31047..6c8a51714 100644 --- a/openbsc/include/sccp/Makefile.am +++ b/openbsc/include/sccp/Makefile.am @@ -1 +1,2 @@ -noinst_HEADERS = sccp_types.h sccp.h +sccp_HEADERS = sccp_types.h sccp.h +sccpdir = $(includedir)/sccp diff --git a/openbsc/libsccp.pc.in b/openbsc/libsccp.pc.in new file mode 100644 index 000000000..eda8d499c --- /dev/null +++ b/openbsc/libsccp.pc.in @@ -0,0 +1,10 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: OpenBSC SCCP Lib +Description: OpenBSC SCCP Lib +Version: @VERSION@ +Libs: -L${libdir} -lsccp +Cflags: -I${includedir}/ diff --git a/openbsc/src/Makefile.am b/openbsc/src/Makefile.am index 941509837..d17a4be3f 100644 --- a/openbsc/src/Makefile.am +++ b/openbsc/src/Makefile.am @@ -3,11 +3,11 @@ AM_CFLAGS=-Wall sbin_PROGRAMS = bsc_hack bs11_config ipaccess-find ipaccess-config \ isdnsync bsc_mgcp ipaccess-proxy -noinst_LIBRARIES = libbsc.a libmsc.a libvty.a libsccp.a +noinst_LIBRARIES = libbsc.a libmsc.a libvty.a noinst_HEADERS = vty/cardshell.h bscdir = $(libdir) -bsc_LIBRARIES = liblaf0rge1.a +bsc_LIBRARIES = liblaf0rge1.a libsccp.a liblaf0rge1_a_SOURCES = msgb.c timer.c talloc.c select.c signal.c