pkglib_LTLIBRARIES = libsimplepgp.la
pkginclude_HEADERS = src/simplepgp.h
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = simplepgp.pc
+
libsimplepgp_la_LDFLAGS = -version-info 0:1:0
libsimplepgp_la_SOURCES = \
src/packet.c \
AC_CONFIG_SRCDIR([src/packet.c])
AC_CONFIG_HEADERS([config.h])
-AC_CONFIG_FILES([Makefile])
+AC_CONFIG_FILES([Makefile simplepgp.pc])
AM_INIT_AUTOMAKE([subdir-objects foreign])
AC_PROG_LIBTOOL
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libsimplepgp
+Description: Simple implementation of OpenPGP
+Requires.private: zlib
+Version: @PACKAGE_VERSION@
+Libs: -L${libdir} -lsimplepgp
+Libs.private: `libgcrypt-config --libs` `gpg-error-config --libs`
+Cflags: -I${includedir}/simplepgp
+Cflags.private: `libgcrypt-config --cflags` `gpg-error-config --cflags`