summaryrefslogtreecommitdiff
path: root/tools/Makefile.am
blob: 92c2644799cf7ca227be3b694af05078344d1dc9 (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

include $(top_srcdir)/build/Makefile.decl

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 = \
	$(NULL)

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

if WITH_ASN1

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

p11_kit_CFLAGS += \
	$(LIBTASN1_CFLAGS)

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