diff options
author | Holger Freyther <zecke@selfish.org> | 2009-06-08 10:32:39 +0000 |
---|---|---|
committer | Holger Freyther <zecke@selfish.org> | 2009-06-08 10:32:39 +0000 |
commit | c7aa3c4f799dfd847ebfecb752ededa9d2f8ed1f (patch) | |
tree | a11101e258ede55333d2e7a77f7531e363bce33c | |
parent | b424ecb2477026ae3896e12dd1244b5bca3a40ef (diff) |
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.
-rw-r--r-- | Makefile.am | 3 | ||||
-rw-r--r-- | configure.in | 1 | ||||
-rw-r--r-- | openbsc.pc.in | 11 |
3 files changed, 15 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 1ba06046d..deaba0fa1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,5 +3,8 @@ AUTOMAKE_OPTIONS = foreign dist-bzip2 1.6 INCLUDES = $(all_includes) -I$(top_srcdir)/include SUBDIRS = include src tests +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = openbsc.pc + #dist-hook: # rm -rf `find $(distdir) -name .svn` diff --git a/configure.in b/configure.in index 69fa1b594..7bc8b63a4 100644 --- a/configure.in +++ b/configure.in @@ -19,6 +19,7 @@ AC_HEADER_STDC dnl Checks for typedefs, structures and compiler characteristics AC_OUTPUT( + openbsc.pc include/openbsc/Makefile include/vty/Makefile include/Makefile diff --git a/openbsc.pc.in b/openbsc.pc.in new file mode 100644 index 000000000..0d00831a2 --- /dev/null +++ b/openbsc.pc.in @@ -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} |