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

inc_HEADERS += \
	common/pkcs11.h \
	common/pkcs11x.h \
	$(NULL)

noinst_LTLIBRARIES += \
	libp11-common.la \
	libp11-library.la \
	libp11-test.la \
	libp11-tool.la \
	$(NULL)

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

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

libp11_test_la_SOURCES = \
	common/mock.c common/mock.h \
	common/test.c common/test.h \
	$(NULL)

libp11_tool_la_SOURCES = \
	common/tool.c common/tool.h \
	$(NULL)

if !OS_WIN32
libp11_tool_la_SOURCES += \
	common/unix-peer.c common/unix-peer.h \
	$(NULL)
endif

# Tests ----------------------------------------------------------------

common_LIBS = \
	libp11-test.la \
	libp11-common.la \
	$(NULL)

check_PROGRAMS += \
	test-tests \
	test-compat \
	test-hash \
	test-dict \
	test-array \
	test-constants \
	test-attrs \
	test-buffer \
	test-url \
	test-path \
	test-lexer \
	test-message \
	test-argv \
	$(NULL)

test_argv_SOURCES = common/test-argv.c
test_argv_LDADD = $(common_LIBS)

test_array_SOURCES = common/test-array.c
test_array_LDADD = $(common_LIBS)

test_attrs_SOURCES = common/test-attrs.c
test_attrs_LDADD = $(common_LIBS)

test_buffer_SOURCES = common/test-buffer.c
test_buffer_LDADD = $(common_LIBS)

test_compat_SOURCES = common/test-compat.c
test_compat_LDADD = $(common_LIBS)

test_constants_SOURCES = common/test-constants.c
test_constants_LDADD = $(common_LIBS)

test_dict_SOURCES = common/test-dict.c
test_dict_LDADD = $(common_LIBS)

test_hash_SOURCES = common/test-hash.c
test_hash_LDADD = $(common_LIBS)

test_lexer_SOURCES = common/test-lexer.c
test_lexer_LDADD = $(common_LIBS)

test_message_SOURCES = common/test-message.c
test_message_LDADD = $(common_LIBS)

test_path_SOURCES = common/test-path.c
test_path_LDADD = $(common_LIBS)

test_tests_SOURCES = common/test-tests.c
test_tests_LDADD = $(common_LIBS)

test_url_SOURCES = common/test-url.c
test_url_LDADD = $(common_LIBS)

noinst_PROGRAMS += \
	frob-getauxval \
	frob-getenv \
	$(NULL)

frob_getauxval_SOURCES = common/frob-getauxval.c
frob_getauxval_LDADD = $(common_LIBS)

frob_getenv_SOURCES = common/frob-getenv.c
frob_getenv_LDADD = $(common_LIBS)