libproc-ng: add pkg-config support

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2011-11-05 13:54:28 +01:00
parent 901e381256
commit 64b420936e
4 changed files with 16 additions and 0 deletions

1
.gitignore vendored
View File

@ -29,6 +29,7 @@ pmap
procps-ng-*.tar.gz procps-ng-*.tar.gz
proc/.depend proc/.depend
proc/libproc-ng.la proc/libproc-ng.la
proc/libproc-ng.pc
proc/Makefile proc/Makefile
proc/Makefile.in proc/Makefile.in
ps/Makefile ps/Makefile

View File

@ -138,6 +138,7 @@ fi
AC_CONFIG_FILES([ AC_CONFIG_FILES([
Makefile Makefile
proc/Makefile proc/Makefile
proc/libproc-ng.pc
ps/Makefile ps/Makefile
]) ])
AC_OUTPUT AC_OUTPUT

View File

@ -11,6 +11,9 @@ libproc_ng_la_LDFLAGS = \
-no-undefined \ -no-undefined \
-Wl,--version-script=$(top_srcdir)/proc/library.map -Wl,--version-script=$(top_srcdir)/proc/library.map
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libproc-ng.pc
libproc_ng_la_SOURCES = \ libproc_ng_la_SOURCES = \
alloc.c \ alloc.c \
alloc.h \ alloc.h \

11
proc/libproc-ng.pc.in Normal file
View File

@ -0,0 +1,11 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: libproc-ng
Description: Library to control and query process state
Version: @VERSION@
Libs: -L${libdir} -lproc-ng
Libs.private:
Cflags: -I${includedir}