summaryrefslogtreecommitdiff
path: root/common/Makefile.am
blob: b583a5ca5d7a846fcd62994a7ae50196946ccc57 (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

include $(top_srcdir)/build/Makefile.decl

SUBDIRS = . tests

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

inc_HEADERS = \
	pkcs11.h \
	$(NULL)

noinst_LTLIBRARIES = \
	libp11-common.la \
	libp11-library.la \
	libp11-mock.la \
	$(NULL)

libp11_common_la_SOURCES = \
	attrs.c attrs.h \
	array.c array.h \
	buffer.c buffer.h \
	compat.c compat.h \
	constants.c constants.h \
	debug.c debug.h \
	dict.c dict.h \
	hash.c hash.h \
	lexer.c lexer.h \
	message.c message.h \
	path.c path.h \
	pkcs11.h pkcs11x.h \
	url.c url.h \
	$(NULL)

libp11_library_la_SOURCES = \
	library.c library.h \
	$(NULL)

libp11_mock_la_SOURCES = \
	mock.c mock.h \
	$(NULL)

if WITH_ASN1

noinst_LTLIBRARIES += \
	libp11-data.la \
	$(NULL)

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

libp11_data_la_CFLAGS = \
	$(LIBTASN1_CFLAGS)

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

endif # WITH_ASN1