summaryrefslogtreecommitdiff
path: root/p11-kit/Makefile.am
blob: dc9f8ab942519916a06cd5fece59c5296c52d532 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58

INCLUDES = \
	-I$(top_srcdir) \
	-DP11_KIT_FUTURE_UNSTABLE_API

incdir = $(includedir)/p11-kit-1/p11-kit

inc_HEADERS = \
	p11-kit.h \
	pin.h \
	uri.h \
	pkcs11.h

MODULE_SRCS = \
	util.c util.h \
	conf.c conf.h \
	debug.c debug.h \
	hashmap.c hashmap.h \
	modules.c \
	pin.c \
	proxy.c \
	private.h \
	ptr-array.c ptr-array.h \
	messages.c \
	uri.c \
	$(inc_HEADERS)

lib_LTLIBRARIES = \
	libp11-kit.la

noinst_LTLIBRARIES = \
	libp11-kit-testable.la

libp11_kit_la_LDFLAGS = \
	-no-undefined \
	-version-info $(P11KIT_LT_RELEASE) \
	-export-symbols-regex '^C_GetFunctionList|^p11_kit_'

libp11_kit_la_SOURCES = $(MODULE_SRCS)

libp11_kit_testable_la_LDFLAGS = \
	-no-undefined

libp11_kit_testable_la_SOURCES = $(MODULE_SRCS)

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = p11-kit-1.pc

exampledir = $(p11_system_config)
example_DATA = pkcs11.conf.example

EXTRA_DIST = \
	p11-kit-1.pc.in \
	pkcs11.conf.example.in

# Proxy module is actually same as library, so install a link
install-exec-hook:
	$(LN_S) -f `readlink $(DESTDIR)$(libdir)/libp11-kit.so` $(DESTDIR)$(libdir)/p11-kit-proxy.so