summaryrefslogtreecommitdiff
path: root/tools/Makefile.am
blob: e28f15fd6eb7c3c9310e07ced28a5c9c4c0e718e (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
NULL =

SUBDIRS = . tests

COMMON = $(top_srcdir)/common

INCLUDES = \
	-I$(top_srcdir) \
	-I$(top_srcdir)/common \
	-I$(top_srcdir)/p11-kit \
	-DSRCDIR=\"$(srcdir)\" \
	-DPKGDATADIR=\"$(pkgdatadir)\" \
	-DP11_KIT_FUTURE_UNSTABLE_API \
	$(NULL)

bin_PROGRAMS = \
	p11-kit

p11_kit_SOURCES = \
	list.c \
	tool.c tool.h \
	$(NULL)

p11_kit_CFLAGS = \
	$(LIBTASN1_CFLAGS) \
	$(NULL)

p11_kit_LDADD = \
	$(top_builddir)/p11-kit/libp11-kit.la \
	$(top_builddir)/common/libp11-library.la \
	$(top_builddir)/common/libp11-compat.la \
	$(LTLIBINTL) \
	$(NULL)

if WITH_ASN1

p11_kit_LDADD += \
	$(top_builddir)/common/libp11-data.la \
	$(LIBTASN1_LIBS)

p11_kit_SOURCES += \
	extract.c extract.h \
	extract-info.c \
	extract-jks.c \
	extract-openssl.c \
	extract-pem.c \
	extract-x509.c \
	save.c save.h \
	$(NULL)

externaldir = $(pkgdatadir)
external_SCRIPTS = \
	p11-kit-extract-trust

endif # WITH_ASN1