summaryrefslogtreecommitdiff
path: root/trust/Makefile.am
blob: 7410f5d84da9fba36c8a0f66e7e4f8ad41acdc0e (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123

include $(top_srcdir)/build/Makefile.decl

SUBDIRS = . tests

COMMON = $(top_srcdir)/common

AM_CPPFLAGS = \
	-I$(top_srcdir) \
	-I$(top_srcdir)/common \
	-DDATADIR=\"$(datadir)\" \
	-DSYSCONFDIR=\"$(sysconfdir)\" \
	-DPRIVATEDIR=\"$(privatedir)\" \
	$(LIBTASN1_CFLAGS) \
	$(NULL)

noinst_LTLIBRARIES = \
	libtrust-testable.la \
	libtrust-data.la

libtrust_data_la_SOURCES = \
	asn1.c asn1.h \
	basic.asn basic.asn.h \
	base64.c base64.h \
	pem.c pem.h \
	pkix.asn pkix.asn.h \
	oid.c oid.h \
	openssl.asn openssl.asn.h \
	utf8.c utf8.h \
	x509.c x509.h \
	$(NULL)

MODULE_SRCS = \
	builder.c builder.h \
	digest.c digest.h \
	index.c index.h \
	parser.c parser.h \
	persist.c persist.h \
	module.c module.h \
	save.c save.h \
	session.c session.h \
	token.c token.h \
	types.h \
	$(NULL)

configdir = $(p11_package_config_modules)
config_DATA = p11-kit-trust.module

moduledir = $(p11_module_path)
module_LTLIBRARIES = \
	p11-kit-trust.la

p11_kit_trust_la_CFLAGS = \
	$(LIBTASN1_CFLAGS)

p11_kit_trust_la_LIBADD = \
	libtrust-data.la \
	$(top_builddir)/common/libp11-library.la \
	$(top_builddir)/common/libp11-common.la \
	$(LIBTASN1_LIBS) \
	$(HASH_LIBS) \
	$(NULL)

p11_kit_trust_la_LDFLAGS = \
	-no-undefined -module -avoid-version \
	-version-info $(P11KIT_LT_RELEASE) \
	-export-symbols-regex 'C_GetFunctionList' \
	$(NULL)

p11_kit_trust_la_SOURCES = $(MODULE_SRCS)

libtrust_testable_la_LDFLAGS = \
	-no-undefined

libtrust_testable_la_SOURCES = $(MODULE_SRCS)

bin_PROGRAMS = \
	trust

trust_LDADD = \
	libtrust-data.la \
	$(top_builddir)/p11-kit/libp11-kit.la \
	$(top_builddir)/common/libp11-common.la \
	$(top_builddir)/common/libp11-tool.la \
	$(LTLIBINTL) \
	$(LIBTASN1_LIBS) \
	$(HASH_LIBS) \
	$(NULL)

trust_CFLAGS = \
	-I$(top_srcdir)/p11-kit \
	-DP11_KIT_FUTURE_UNSTABLE_API \
	$(LIBTASN1_CFLAGS) \
	$(NULL)

trust_SOURCES = \
	anchor.c anchor.h \
	parser.c parser.h \
	persist.c persist.h \
	digest.c digest.h \
	enumerate.c enumerate.h \
	extract.c extract.h \
	extract-jks.c \
	extract-openssl.c \
	extract-pem.c \
	extract-cer.c \
	list.c \
	openssl.asn openssl.asn.h \
	save.c save.h \
	trust.c \
	$(NULL)

externaldir = $(privatedir)
external_SCRIPTS = \
	trust-extract-compat

EXTRA_DIST = \
	p11-kit-trust.module

asn:
	asn1Parser -o pkix.asn.h pkix.asn
	asn1Parser -o openssl.asn.h openssl.asn
	asn1Parser -o basic.asn.h basic.asn