pkg-config: Create and install a pkg-config file
Let automake create the openbsc.pc and then install it into the pkg-config directory of ${libdir}. This is done in preparation for the public API that will be added soon. The advertised include directory will be ${incluedir}/openbsc-1.0 to follow userspace practive from glib/gtk/cairo/freetype2 and many more.
This commit is contained in:
parent
b424ecb247
commit
c7aa3c4f79
|
@ -3,5 +3,8 @@ AUTOMAKE_OPTIONS = foreign dist-bzip2 1.6
|
||||||
INCLUDES = $(all_includes) -I$(top_srcdir)/include
|
INCLUDES = $(all_includes) -I$(top_srcdir)/include
|
||||||
SUBDIRS = include src tests
|
SUBDIRS = include src tests
|
||||||
|
|
||||||
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
|
pkgconfig_DATA = openbsc.pc
|
||||||
|
|
||||||
#dist-hook:
|
#dist-hook:
|
||||||
# rm -rf `find $(distdir) -name .svn`
|
# rm -rf `find $(distdir) -name .svn`
|
||||||
|
|
|
@ -19,6 +19,7 @@ AC_HEADER_STDC
|
||||||
dnl Checks for typedefs, structures and compiler characteristics
|
dnl Checks for typedefs, structures and compiler characteristics
|
||||||
|
|
||||||
AC_OUTPUT(
|
AC_OUTPUT(
|
||||||
|
openbsc.pc
|
||||||
include/openbsc/Makefile
|
include/openbsc/Makefile
|
||||||
include/vty/Makefile
|
include/vty/Makefile
|
||||||
include/Makefile
|
include/Makefile
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
prefix=@prefix@
|
||||||
|
exec_prefix=@exec_prefix@
|
||||||
|
libdir=@libdir@
|
||||||
|
includedir=@includedir@/openbsc-1.0
|
||||||
|
|
||||||
|
Name: OpenBSC
|
||||||
|
Description: OpenBSC base station controller
|
||||||
|
Requires:
|
||||||
|
Version: @VERSION@
|
||||||
|
Libs: -L${libdir} -lopenbsc
|
||||||
|
Cflags: -I${includedir}
|
Loading…
Reference in New Issue