diff options
author | Stef Walter <stefw@collabora.co.uk> | 2011-02-17 22:24:16 +0100 |
---|---|---|
committer | Stef Walter <stefw@collabora.co.uk> | 2011-02-17 22:24:16 +0100 |
commit | 80fe1806941d555433f3a1c97ab116dd281041e0 (patch) | |
tree | 4f0e5ab650f4396a8af67bf66cbaba0331773f81 /module | |
parent | c03b1023835887569315fbec6295be3cc0f4cf42 (diff) |
Add a proper pkg-config file.
Diffstat (limited to 'module')
-rw-r--r-- | module/Makefile.am | 10 | ||||
-rw-r--r-- | module/p11-kit.pc.in | 17 |
2 files changed, 22 insertions, 5 deletions
diff --git a/module/Makefile.am b/module/Makefile.am index 6103485..23589d2 100644 --- a/module/Makefile.am +++ b/module/Makefile.am @@ -1,8 +1,4 @@ -INCLUDES = \ - -DPKCS11_CONFIG_FILE=\"$(sysconfdir)/pkcs11.conf\" \ - -DPKCS11_CONFIG_LIBS=\"$(sysconfdir)/pkcs11/libs\" - MODULE_SRCS = \ conf.c conf.h \ hash.c hash.h \ @@ -26,5 +22,9 @@ libp11_kit_testable_la_LDFLAGS = \ libp11_kit_testable_la_SOURCES = $(MODULE_SRCS) +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = p11-kit.pc + EXTRA_DIST = \ - pkcs11.h
\ No newline at end of file + pkcs11.h \ + p11-kit.pc.in
\ No newline at end of file diff --git a/module/p11-kit.pc.in b/module/p11-kit.pc.in new file mode 100644 index 0000000..d80167e --- /dev/null +++ b/module/p11-kit.pc.in @@ -0,0 +1,17 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ +datarootdir=@datarootdir@ +datadir=@datadir@ +sysconfdir=@sysconfdir@ +p11_system_conf=@p11_system_conf@ +p11_system_modules=@p11_system_modules@ +p11_user_conf=@p11_user_conf@ +p11_user_modules=@p11_user_modules@ + +Name: p11-kit +Description: Library and proxy module for properly loading and sharing PKCS#11 modules. +Version: @VERSION@ +Libs: -L${libdir} -lp11-kit +Cflags: -I${includedir}/p11-kit |