forked from intel/qatlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Samples.am
436 lines (406 loc) · 26.7 KB
/
Samples.am
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
################################################################
# BSD LICENSE
#
# Copyright(c) 2007-2022 Intel Corporation. All rights reserved.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
# * Neither the name of Intel Corporation nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
################################################################
###################
# QAT Sample Code #
###################
if SAMPLES
COMMON_SAMPLE_CFLAGS = -D USER_SPACE \
-D_GNU_SOURCE \
-DSC_ENABLE_DYNAMIC_COMPRESSION \
-DSC_SM2_ENABLED \
-DWITH_CMDRV \
-DSC_WITH_QAT20_UPSTREAM \
-DDO_CRYPTO \
-DINCLUDE_COMPRESSION \
-DSC_CHAINING_ENABLED \
-Wno-deprecated-declarations
COMMON_SAMPLE_INCLUDES = -I$(srcdir)/quickassist/lookaside/access_layer/src/sample_code/performance/framework \
-I$(srcdir)/quickassist/lookaside/access_layer/src/sample_code/performance/framework/linux/user_space \
-I$(srcdir)/quickassist/lookaside/access_layer/src/sample_code/performance/compression \
-I$(srcdir)/quickassist/lookaside/access_layer/src/sample_code/performance/common \
-I$(srcdir)/quickassist/lookaside/access_layer/src/sample_code/functional/include \
-I$(srcdir)/quickassist/utilities/libusdm_drv \
-I$(srcdir)/quickassist/lookaside/access_layer/include \
-I$(srcdir)/quickassist/include \
-I$(srcdir)/quickassist/include/lac \
-I$(srcdir)/quickassist/include/dc \
-I$(srcdir)/quickassist/lookaside/access_layer/src/sample_code/busy_loop \
-I$(srcdir)/quickassist/lookaside/access_layer/src/common/include \
-I$(srcdir)/quickassist/lookaside/access_layer/src/common/compression/include
COMMON_SAMPLE_LDFLAGS = -lpthread -lcrypto -lz -lc lib@LIBUSDMNAME@.la lib@LIBQATNAME@.la
noinst_PROGRAMS = cpa_sample_code
cpa_sample_code_SOURCES = \
quickassist/lookaside/access_layer/src/sample_code/performance/framework/linux/user_space/cpa_sample_code_utils.c \
quickassist/lookaside/access_layer/src/sample_code/performance/framework/cpa_sample_code_framework.c \
quickassist/lookaside/access_layer/src/sample_code/performance/common/qat_perf_utils.c \
quickassist/lookaside/access_layer/src/sample_code/performance/common/qat_perf_sleeptime.c \
quickassist/lookaside/access_layer/src/sample_code/performance/cpa_sample_code_main.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_crypto_utils.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_sym_perf.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_sym_perf_dp.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_rsa_perf.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_dsa_perf.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_ecdsa_perf.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_dh_perf.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/qat_sym_main.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/qat_sym_utils.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_sym_update_common.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_sym_update.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_sym_update_dp.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_ike_rsa_perf.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_kpt2_common.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_rsa_kpt2_perf.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_ecdsa_kpt2_perf.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_sm2_perf.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_sm2_sign_verify.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_sm2_Keyex_P1_P2.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_sm2_kdf_hash.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_sm2_enc_dec.c \
quickassist/lookaside/access_layer/src/sample_code/performance/common/qat_perf_buffer_utils.c \
quickassist/lookaside/access_layer/src/sample_code/performance/compression/cpa_sample_code_dc_utils.c \
quickassist/lookaside/access_layer/src/sample_code/performance/compression/cpa_sample_code_dc_dp.c \
quickassist/lookaside/access_layer/src/sample_code/performance/compression/qat_compression_utils.c \
quickassist/lookaside/access_layer/src/sample_code/performance/compression/qat_compression_e2e.c \
quickassist/lookaside/access_layer/src/sample_code/performance/compression/cpa_sample_code_zlib.c \
quickassist/lookaside/access_layer/src/sample_code/performance/compression/qat_compression_main.c \
quickassist/lookaside/access_layer/src/sample_code/performance/compression/qat_chaining_main.c \
quickassist/lookaside/access_layer/src/sample_code/performance/common/qat_perf_latency.c \
quickassist/lookaside/access_layer/src/sample_code/busy_loop/busy_loop.c
cpa_sample_code_CFLAGS = -I$(srcdir)/quickassist/lookaside/access_layer/src/sample_code/performance \
-I$(srcdir)/quickassist/lookaside/access_layer/src/sample_code/performance/crypto/ \
$(COMMON_SAMPLE_INCLUDES) \
$(COMMON_SAMPLE_CFLAGS) \
$(COMMON_FLAGS) \
-DSAMPLE_CODE_CORPUS_PATH="\"$(datadir)/qat/\""
cpa_sample_code_LDADD = $(COMMON_SAMPLE_LDFLAGS)
noinst_LTLIBRARIES += libcpa_sample_code_s.la
libcpa_sample_code_s_la_SOURCES = \
quickassist/lookaside/access_layer/src/sample_code/performance/framework/linux/user_space/cpa_sample_code_utils.c \
quickassist/lookaside/access_layer/src/sample_code/performance/framework/cpa_sample_code_framework.c \
quickassist/lookaside/access_layer/src/sample_code/performance/common/qat_perf_utils.c \
quickassist/lookaside/access_layer/src/sample_code/performance/common/qat_perf_sleeptime.c \
quickassist/lookaside/access_layer/src/sample_code/performance/cpa_sample_code_main.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_crypto_utils.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_sym_perf.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_sym_perf_dp.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_rsa_perf.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_dsa_perf.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_ecdsa_perf.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_dh_perf.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/qat_sym_main.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/qat_sym_utils.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_sym_update_common.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_sym_update.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_sym_update_dp.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_ike_rsa_perf.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_kpt2_common.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_rsa_kpt2_perf.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_ecdsa_kpt2_perf.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_sm2_perf.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_sm2_sign_verify.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_sm2_Keyex_P1_P2.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_sm2_kdf_hash.c \
quickassist/lookaside/access_layer/src/sample_code/performance/crypto/cpa_sample_code_sm2_enc_dec.c \
quickassist/lookaside/access_layer/src/sample_code/performance/common/qat_perf_buffer_utils.c \
quickassist/lookaside/access_layer/src/sample_code/performance/compression/cpa_sample_code_dc_utils.c \
quickassist/lookaside/access_layer/src/sample_code/performance/compression/cpa_sample_code_dc_dp.c \
quickassist/lookaside/access_layer/src/sample_code/performance/compression/qat_compression_utils.c \
quickassist/lookaside/access_layer/src/sample_code/performance/compression/qat_compression_e2e.c \
quickassist/lookaside/access_layer/src/sample_code/performance/compression/cpa_sample_code_zlib.c \
quickassist/lookaside/access_layer/src/sample_code/performance/compression/qat_compression_main.c \
quickassist/lookaside/access_layer/src/sample_code/performance/compression/qat_chaining_main.c \
quickassist/lookaside/access_layer/src/sample_code/performance/common/qat_perf_latency.c \
quickassist/lookaside/access_layer/src/sample_code/busy_loop/busy_loop.c
libcpa_sample_code_s_la_CFLAGS = -I$(srcdir)/quickassist/lookaside/access_layer/src/sample_code/performance \
-I$(srcdir)/quickassist/lookaside/access_layer/src/sample_code/performance/crypto/ \
$(COMMON_SAMPLE_INCLUDES) \
$(COMMON_SAMPLE_CFLAGS) \
$(COMMON_FLAGS) \
-DSAMPLE_CODE_CORPUS_PATH="\"$(datadir)/qat/\""
noinst_PROGRAMS += dc_dp_sample
dc_dp_sample_SOURCES = \
quickassist/lookaside/access_layer/src/sample_code/functional/common/cpa_sample_utils.c \
quickassist/lookaside/access_layer/src/sample_code/functional/dc/dc_dp_sample/cpa_dc_dp_sample.c \
quickassist/lookaside/access_layer/src/sample_code/functional/dc/dc_dp_sample/cpa_dc_dp_sample_user.c
dc_dp_sample_CFLAGS = -I$(srcdir)/quickassist/lookaside/access_layer/src/sample_code/functional/include \
$(COMMON_SAMPLE_INCLUDES) \
$(COMMON_SAMPLE_CFLAGS) \
$(COMMON_FLAGS)
dc_dp_sample_LDADD = $(COMMON_SAMPLE_LDFLAGS) libcpa_sample_code_s.la
noinst_PROGRAMS += dc_stateless_sample
dc_stateless_sample_SOURCES = \
quickassist/lookaside/access_layer/src/sample_code/functional/common/cpa_sample_utils.c \
quickassist/lookaside/access_layer/src/sample_code/functional/dc/stateless_sample/cpa_dc_stateless_sample.c \
quickassist/lookaside/access_layer/src/sample_code/functional/dc/stateless_sample/cpa_dc_sample_user.c
dc_stateless_sample_CFLAGS = -I$(srcdir)/quickassist/lookaside/access_layer/src/sample_code/functional/include \
$(COMMON_SAMPLE_INCLUDES) \
$(COMMON_SAMPLE_CFLAGS) \
$(COMMON_FLAGS)
dc_stateless_sample_LDADD = $(COMMON_SAMPLE_LDFLAGS) libcpa_sample_code_s.la
noinst_PROGRAMS += chaining_sample
chaining_sample_SOURCES = \
quickassist/lookaside/access_layer/src/sample_code/functional/common/cpa_sample_utils.c \
quickassist/lookaside/access_layer/src/sample_code/functional/dc/chaining_sample/cpa_chaining_sample_user.c \
quickassist/lookaside/access_layer/src/sample_code/functional/dc/chaining_sample/cpa_chaining_sample.c
chaining_sample_CFLAGS = -I$(srcdir)/quickassist/lookaside/access_layer/src/sample_code/functional/include \
$(COMMON_SAMPLE_INCLUDES) \
$(COMMON_SAMPLE_CFLAGS) \
$(COMMON_FLAGS)
chaining_sample_LDADD = $(COMMON_SAMPLE_LDFLAGS) libcpa_sample_code_s.la
noinst_PROGRAMS += dc_stateless_multi_op_sample
dc_stateless_multi_op_sample_SOURCES = \
quickassist/lookaside/access_layer/src/sample_code/functional/common/cpa_sample_utils.c \
quickassist/lookaside/access_layer/src/sample_code/functional/dc/stateless_multi_op_checksum_sample/cpa_dc_stateless_multi_op_checksum_sample.c \
quickassist/lookaside/access_layer/src/sample_code/functional/dc/stateless_sample/cpa_dc_sample_user.c
dc_stateless_multi_op_sample_CFLAGS = -I$(srcdir)/quickassist/lookaside/access_layer/src/sample_code/functional/include \
$(COMMON_SAMPLE_INCLUDES) \
$(COMMON_SAMPLE_CFLAGS) \
$(COMMON_FLAGS)
dc_stateless_multi_op_sample_LDADD = $(COMMON_SAMPLE_LDFLAGS) libcpa_sample_code_s.la
noinst_PROGRAMS += algchaining_sample
algchaining_sample_SOURCES = \
quickassist/lookaside/access_layer/src/sample_code/functional/common/cpa_sample_utils.c \
quickassist/lookaside/access_layer/src/sample_code/functional/sym/alg_chaining_sample/cpa_algchaining_sample.c \
quickassist/lookaside/access_layer/src/sample_code/functional/sym/alg_chaining_sample/cpa_algchaining_sample_user.c
algchaining_sample_CFLAGS = -I$(srcdir)/quickassist/lookaside/access_layer/src/sample_code/functional/include \
$(COMMON_SAMPLE_INCLUDES) \
$(COMMON_SAMPLE_CFLAGS) \
$(COMMON_FLAGS)
algchaining_sample_LDADD = $(COMMON_SAMPLE_LDFLAGS) libcpa_sample_code_s.la
noinst_PROGRAMS += ccm_sample
ccm_sample_SOURCES = \
quickassist/lookaside/access_layer/src/sample_code/functional/common/cpa_sample_utils.c \
quickassist/lookaside/access_layer/src/sample_code/functional/sym/ccm_sample/cpa_ccm_sample.c \
quickassist/lookaside/access_layer/src/sample_code/functional/sym/ccm_sample/cpa_ccm_sample_user.c
ccm_sample_CFLAGS = -I$(srcdir)/quickassist/lookaside/access_layer/src/sample_code/functional/include \
$(COMMON_SAMPLE_INCLUDES) \
$(COMMON_SAMPLE_CFLAGS) \
$(COMMON_FLAGS)
ccm_sample_LDADD = $(COMMON_SAMPLE_LDFLAGS) libcpa_sample_code_s.la
noinst_PROGRAMS += cipher_sample
cipher_sample_SOURCES = \
quickassist/lookaside/access_layer/src/sample_code/functional/common/cpa_sample_utils.c \
quickassist/lookaside/access_layer/src/sample_code/functional/sym/cipher_sample/cpa_cipher_sample.c \
quickassist/lookaside/access_layer/src/sample_code/functional/sym/cipher_sample/cpa_cipher_sample_user.c
cipher_sample_CFLAGS = -I$(srcdir)/quickassist/lookaside/access_layer/src/sample_code/functional/include \
$(COMMON_SAMPLE_INCLUDES) \
$(COMMON_SAMPLE_CFLAGS) \
$(COMMON_FLAGS)
cipher_sample_LDADD = $(COMMON_SAMPLE_LDFLAGS) libcpa_sample_code_s.la
noinst_PROGRAMS += gcm_sample
gcm_sample_SOURCES = \
quickassist/lookaside/access_layer/src/sample_code/functional/common/cpa_sample_utils.c \
quickassist/lookaside/access_layer/src/sample_code/functional/sym/gcm_sample/cpa_gcm_sample.c \
quickassist/lookaside/access_layer/src/sample_code/functional/sym/gcm_sample/cpa_gcm_sample_user.c
gcm_sample_CFLAGS = -I$(srcdir)/quickassist/lookaside/access_layer/src/sample_code/functional/include \
$(COMMON_SAMPLE_INCLUDES) \
$(COMMON_SAMPLE_CFLAGS) \
$(COMMON_FLAGS)
gcm_sample_LDADD = $(COMMON_SAMPLE_LDFLAGS) libcpa_sample_code_s.la
noinst_PROGRAMS += hash_file_sample
hash_file_sample_SOURCES = \
quickassist/lookaside/access_layer/src/sample_code/functional/common/cpa_sample_utils.c \
quickassist/lookaside/access_layer/src/sample_code/functional/sym/hash_file_sample/cpa_hash_file_sample.c \
quickassist/lookaside/access_layer/src/sample_code/functional/sym/hash_file_sample/cpa_hash_file_sample_user.c
hash_file_sample_CFLAGS = -I$(srcdir)/quickassist/lookaside/access_layer/src/sample_code/functional/include \
$(COMMON_SAMPLE_INCLUDES) \
$(COMMON_SAMPLE_CFLAGS) \
$(COMMON_FLAGS)
hash_file_sample_LDADD = $(COMMON_SAMPLE_LDFLAGS) libcpa_sample_code_s.la
noinst_PROGRAMS += hash_sample
hash_sample_SOURCES = \
quickassist/lookaside/access_layer/src/sample_code/functional/common/cpa_sample_utils.c \
quickassist/lookaside/access_layer/src/sample_code/functional/sym/hash_sample/cpa_hash_sample.c \
quickassist/lookaside/access_layer/src/sample_code/functional/sym/hash_sample/cpa_hash_sample_user.c
hash_sample_CFLAGS = -I$(srcdir)/quickassist/lookaside/access_layer/src/sample_code/functional/include \
$(COMMON_SAMPLE_INCLUDES) \
$(COMMON_SAMPLE_CFLAGS) \
$(COMMON_FLAGS)
hash_sample_LDADD = $(COMMON_SAMPLE_LDFLAGS) libcpa_sample_code_s.la
noinst_PROGRAMS += ipsec_sample
ipsec_sample_SOURCES = \
quickassist/lookaside/access_layer/src/sample_code/functional/common/cpa_sample_utils.c \
quickassist/lookaside/access_layer/src/sample_code/functional/sym/ipsec_sample/cpa_ipsec_sample.c \
quickassist/lookaside/access_layer/src/sample_code/functional/sym/ipsec_sample/cpa_ipsec_sample_user.c
ipsec_sample_CFLAGS = -I$(srcdir)/quickassist/lookaside/access_layer/src/sample_code/functional/include \
$(COMMON_SAMPLE_INCLUDES) \
$(COMMON_SAMPLE_CFLAGS) \
$(COMMON_FLAGS)
ipsec_sample_LDADD = $(COMMON_SAMPLE_LDFLAGS) libcpa_sample_code_s.la
noinst_PROGRAMS += ssl_sample
ssl_sample_SOURCES = \
quickassist/lookaside/access_layer/src/sample_code/functional/common/cpa_sample_utils.c \
quickassist/lookaside/access_layer/src/sample_code/functional/sym/ssl_sample/cpa_ssl_sample.c \
quickassist/lookaside/access_layer/src/sample_code/functional/sym/ssl_sample/cpa_sample_decrypt_user.c \
quickassist/lookaside/access_layer/src/sample_code/functional/sym/ssl_sample/cpa_ssl_sample_user.c
ssl_sample_CFLAGS = -I$(srcdir)/quickassist/lookaside/access_layer/src/sample_code/functional/include \
$(COMMON_SAMPLE_INCLUDES) \
$(COMMON_SAMPLE_CFLAGS) \
$(COMMON_FLAGS)
ssl_sample_LDADD = $(COMMON_SAMPLE_LDFLAGS) libcpa_sample_code_s.la
noinst_PROGRAMS += sym_dp_sample
sym_dp_sample_SOURCES = \
quickassist/lookaside/access_layer/src/sample_code/functional/common/cpa_sample_utils.c \
quickassist/lookaside/access_layer/src/sample_code/functional/sym/symdp_sample/cpa_sym_dp_sample.c \
quickassist/lookaside/access_layer/src/sample_code/functional/sym/symdp_sample/cpa_sym_dp_sample_user.c
sym_dp_sample_CFLAGS = -I$(srcdir)/quickassist/lookaside/access_layer/src/sample_code/functional/include \
$(COMMON_SAMPLE_INCLUDES) \
$(COMMON_SAMPLE_CFLAGS) \
$(COMMON_FLAGS)
sym_dp_sample_LDADD = $(COMMON_SAMPLE_LDFLAGS) libcpa_sample_code_s.la
noinst_PROGRAMS += dh_sample
dh_sample_SOURCES = \
quickassist/lookaside/access_layer/src/sample_code/functional/common/cpa_sample_utils.c \
quickassist/lookaside/access_layer/src/sample_code/functional/asym/diffie_hellman_sample/cpa_dh_sample.c \
quickassist/lookaside/access_layer/src/sample_code/functional/asym/diffie_hellman_sample/cpa_dh_sample_user.c
dh_sample_CFLAGS = -I$(srcdir)/quickassist/lookaside/access_layer/src/sample_code/functional/include \
$(COMMON_SAMPLE_INCLUDES) \
$(COMMON_SAMPLE_CFLAGS) \
$(COMMON_FLAGS)
dh_sample_LDADD = $(COMMON_SAMPLE_LDFLAGS) libcpa_sample_code_s.la
noinst_PROGRAMS += eddsa_sample
eddsa_sample_SOURCES = \
quickassist/lookaside/access_layer/src/sample_code/functional/common/cpa_sample_utils.c \
quickassist/lookaside/access_layer/src/sample_code/functional/asym/eddsa_sample/cpa_eddsa_sample.c \
quickassist/lookaside/access_layer/src/sample_code/functional/asym/eddsa_sample/cpa_eddsa_sample_user.c \
quickassist/lookaside/access_layer/src/sample_code/functional/asym/eddsa_sample/cpa_big_num.c \
quickassist/lookaside/access_layer/src/sample_code/functional/asym/eddsa_sample/cpa_ed_point_operations.c
eddsa_sample_CFLAGS = -I$(srcdir)/quickassist/lookaside/access_layer/src/sample_code/functional/include \
-I$(srcdir)/quickassist/utilities/osal/include \
-I$(srcdir)/quickassist/utilities/osal/src/linux/user_space/include \
$(COMMON_SAMPLE_INCLUDES) \
$(COMMON_SAMPLE_CFLAGS) \
$(COMMON_FLAGS)
eddsa_sample_LDADD = $(COMMON_SAMPLE_LDFLAGS) libcpa_sample_code_s.la libosal.la
noinst_PROGRAMS += prime_sample
prime_sample_SOURCES = \
quickassist/lookaside/access_layer/src/sample_code/functional/common/cpa_sample_utils.c \
quickassist/lookaside/access_layer/src/sample_code/functional/asym/prime_sample/cpa_prime_sample.c \
quickassist/lookaside/access_layer/src/sample_code/functional/asym/prime_sample/cpa_prime_sample_user.c
prime_sample_CFLAGS = -I$(srcdir)/quickassist/lookaside/access_layer/src/sample_code/functional/include \
$(COMMON_SAMPLE_INCLUDES) \
$(COMMON_SAMPLE_CFLAGS) \
$(COMMON_FLAGS)
prime_sample_LDADD = $(COMMON_SAMPLE_LDFLAGS) libcpa_sample_code_s.la
noinst_PROGRAMS += hkdf_sample
hkdf_sample_SOURCES = \
quickassist/lookaside/access_layer/src/sample_code/functional/common/cpa_sample_utils.c \
quickassist/lookaside/access_layer/src/sample_code/functional/sym/hkdf_sample/cpa_hkdf_sample.c \
quickassist/lookaside/access_layer/src/sample_code/functional/sym/hkdf_sample/cpa_hkdf_sample_user.c
hkdf_sample_CFLAGS = -I$(srcdir)/quickassist/lookaside/access_layer/src/sample_code/functional/include \
$(COMMON_SAMPLE_INCLUDES) \
$(COMMON_SAMPLE_CFLAGS) \
$(COMMON_FLAGS)
hkdf_sample_LDADD = $(COMMON_SAMPLE_LDFLAGS) libcpa_sample_code_s.la
noinst_PROGRAMS += ec_montedwds_sample
ec_montedwds_sample_SOURCES = \
quickassist/lookaside/access_layer/src/sample_code/functional/common/cpa_sample_utils.c \
quickassist/lookaside/access_layer/src/sample_code/functional/asym/ec_montedwds_sample/cpa_ec_montedwds_sample.c \
quickassist/lookaside/access_layer/src/sample_code/functional/asym/ec_montedwds_sample/cpa_ec_montedwds_sample_user.c
ec_montedwds_sample_CFLAGS = -I$(srcdir)/quickassist/lookaside/access_layer/src/sample_code/functional/include \
$(COMMON_SAMPLE_INCLUDES) \
$(COMMON_SAMPLE_CFLAGS) \
$(COMMON_FLAGS)
ec_montedwds_sample_LDADD = $(COMMON_SAMPLE_LDFLAGS) libcpa_sample_code_s.la
noinst_PROGRAMS += zuc_sample
zuc_sample_SOURCES = \
quickassist/lookaside/access_layer/src/sample_code/functional/common/cpa_sample_utils.c \
quickassist/lookaside/access_layer/src/sample_code/functional/sym/zuc_sample/cpa_zuc_sample.c \
quickassist/lookaside/access_layer/src/sample_code/functional/sym/zuc_sample/cpa_zuc_sample_user.c
zuc_sample_CFLAGS = -I$(srcdir)/quickassist/lookaside/access_layer/src/sample_code/functional/include \
$(COMMON_SAMPLE_INCLUDES) \
$(COMMON_SAMPLE_CFLAGS) \
$(COMMON_FLAGS)
zuc_sample_LDADD = $(COMMON_SAMPLE_LDFLAGS) libcpa_sample_code_s.la
samples: $(lib_LTLIBRARIES) cpa_sample_code dc_dp_sample dc_stateless_sample \
dc_stateless_multi_op_sample algchaining_sample ccm_sample \
cipher_sample gcm_sample hash_file_sample hash_sample ipsec_sample \
ssl_sample sym_dp_sample dh_sample prime_sample hkdf_sample \
ec_montedwds_sample eddsa_sample chaining_sample zuc_sample
samples-install: samples
@install -D -m 755 $(srcdir)/.libs/cpa_sample_code $(DESTDIR)$(bindir)/cpa_sample_code
@install -D -m 755 $(srcdir)/.libs/dc_dp_sample $(DESTDIR)$(bindir)/dc_dp_sample
@install -D -m 755 $(srcdir)/.libs/dc_stateless_sample $(DESTDIR)$(bindir)/dc_stateless_sample
@install -D -m 755 $(srcdir)/.libs/chaining_sample $(DESTDIR)$(bindir)/chaining_sample
@install -D -m 755 $(srcdir)/.libs/dc_stateless_multi_op_sample $(DESTDIR)$(bindir)/dc_stateless_multi_op_sample
@install -D -m 755 $(srcdir)/.libs/algchaining_sample $(DESTDIR)$(bindir)/algchaining_sample
@install -D -m 755 $(srcdir)/.libs/ccm_sample $(DESTDIR)$(bindir)/ccm_sample
@install -D -m 755 $(srcdir)/.libs/cipher_sample $(DESTDIR)$(bindir)/cipher_sample
@install -D -m 755 $(srcdir)/.libs/gcm_sample $(DESTDIR)$(bindir)/gcm_sample
@install -D -m 755 $(srcdir)/.libs/hash_file_sample $(DESTDIR)$(bindir)/hash_file_sample
@install -D -m 755 $(srcdir)/.libs/hash_sample $(DESTDIR)$(bindir)/hash_sample
@install -D -m 755 $(srcdir)/.libs/ipsec_sample $(DESTDIR)$(bindir)/ipsec_sample
@install -D -m 755 $(srcdir)/.libs/ssl_sample $(DESTDIR)$(bindir)/ssl_sample
@install -D -m 755 $(srcdir)/.libs/sym_dp_sample $(DESTDIR)$(bindir)/sym_dp_sample
@install -D -m 755 $(srcdir)/.libs/dh_sample $(DESTDIR)$(bindir)/dh_sample
@install -D -m 755 $(srcdir)/.libs/eddsa_sample $(DESTDIR)$(bindir)/eddsa_sample
@install -D -m 755 $(srcdir)/.libs/prime_sample $(DESTDIR)$(bindir)/prime_sample
@install -D -m 755 $(srcdir)/.libs/hkdf_sample $(DESTDIR)$(bindir)/hkdf_sample
@install -D -m 755 $(srcdir)/.libs/ec_montedwds_sample $(DESTDIR)$(bindir)/ec_montedwds_sample
@install -D -m 755 $(srcdir)/.libs/zuc_sample $(DESTDIR)$(bindir)/zuc_sample
@install -D -m 644 $(srcdir)/quickassist/lookaside/access_layer/src/sample_code/performance/compression/calgary $(DESTDIR)$(datadir)/qat/calgary
@install -D -m 644 $(srcdir)/quickassist/lookaside/access_layer/src/sample_code/performance/compression/calgary32 $(DESTDIR)$(datadir)/qat/calgary32
@install -D -m 644 $(srcdir)/quickassist/lookaside/access_layer/src/sample_code/performance/compression/canterbury $(DESTDIR)$(datadir)/qat/canterbury
@echo ""
@echo "*******************************************************"
@echo "* cpa_sample_code installed under $(DESTDIR)$(bindir) *"
@echo "*******************************************************"
@echo ""
samples-uninstall:
@rm -rf $(DESTDIR)$(bindir)/cpa_sample_code
@rm -rf $(DESTDIR)$(bindir)/dc_dp_sample
@rm -rf $(DESTDIR)$(bindir)/dc_stateless_sample
@rm -rf $(DESTDIR)$(bindir)/chaining_sample
@rm -rf $(DESTDIR)$(bindir)/dc_stateless_multi_op_sample
@rm -rf $(DESTDIR)$(bindir)/algchaining_sample
@rm -rf $(DESTDIR)$(bindir)/ccm_sample
@rm -rf $(DESTDIR)$(bindir)/cipher_sample
@rm -rf $(DESTDIR)$(bindir)/gcm_sample
@rm -rf $(DESTDIR)$(bindir)/hash_file_sample
@rm -rf $(DESTDIR)$(bindir)/hash_sample
@rm -rf $(DESTDIR)$(bindir)/ipsec_sample
@rm -rf $(DESTDIR)$(bindir)/ssl_sample
@rm -rf $(DESTDIR)$(bindir)/sym_dp_sample
@rm -rf $(DESTDIR)$(bindir)/dh_sample
@rm -rf $(DESTDIR)$(bindir)/eddsa_sample
@rm -rf $(DESTDIR)$(bindir)/prime_sample
@rm -rf $(DESTDIR)$(bindir)/hkdf_sample
@rm -rf $(DESTDIR)$(bindir)/ec_montedwds_sample
@rm -rf $(DESTDIR)$(bindir)/zuc_sample
@rm -rf $(DESTDIR)$(datadir)/qat/calgary
@rm -rf $(DESTDIR)$(datadir)/qat/calgary32
@rm -rf $(DESTDIR)$(datadir)/qat/canterbury
@if test -d $(DESTDIR)$(datadir)/qat; then rmdir --ignore-fail-on-non-empty $(DESTDIR)$(datadir)/qat; fi
endif
.PHONY: samples samples-install samples-uninstall