vdpa/mlx5: support queue update
[dpdk.git] / drivers / common / qat / Makefile
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2015-2018 Intel Corporation
3
4 include $(RTE_SDK)/mk/rte.vars.mk
5
6 # build directories
7 QAT_CRYPTO_DIR := $(RTE_SDK)/drivers/crypto/qat
8 QAT_COMPRESS_DIR := $(RTE_SDK)/drivers/compress/qat
9 VPATH=$(QAT_CRYPTO_DIR):$(QAT_COMPRESS_DIR)
10
11 # external library include paths
12 CFLAGS += -I$(SRCDIR)/qat_adf
13 CFLAGS += -I$(SRCDIR)
14 CFLAGS += -I$(QAT_CRYPTO_DIR)
15 CFLAGS += -I$(QAT_COMPRESS_DIR)
16
17
18 ifeq ($(CONFIG_RTE_LIBRTE_COMPRESSDEV),y)
19         LDLIBS += -lrte_compressdev
20         SRCS-y += qat_comp.c
21         SRCS-y += qat_comp_pmd.c
22         build_qat = yes
23 endif
24
25 # library symmetric crypto source files
26 ifeq ($(CONFIG_RTE_LIBRTE_CRYPTODEV),y)
27 ifeq ($(CONFIG_RTE_LIBRTE_PMD_QAT_ASYM),y)
28         LDLIBS += -lrte_cryptodev
29         LDLIBS += -lcrypto
30         CFLAGS += -DBUILD_QAT_ASYM
31         SRCS-y += qat_asym.c
32         SRCS-y += qat_asym_pmd.c
33         build_qat = yes
34 endif
35 ifeq ($(CONFIG_RTE_LIBRTE_PMD_QAT_SYM),y)
36         LDLIBS += -lrte_cryptodev
37         LDLIBS += -lcrypto
38         CFLAGS += -DBUILD_QAT_SYM
39         SRCS-y += qat_sym.c
40         SRCS-y += qat_sym_session.c
41         SRCS-y += qat_sym_pmd.c
42         build_qat = yes
43 endif
44 endif
45
46 ifdef build_qat
47
48         # library name
49         LIB = librte_pmd_qat.a
50
51         # build flags
52         CFLAGS += $(WERROR_FLAGS)
53         CFLAGS += -O3
54
55         # library common source files
56         SRCS-y += qat_device.c
57         SRCS-y += qat_common.c
58         SRCS-y += qat_logs.c
59         SRCS-y += qat_qp.c
60
61         LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool
62         LDLIBS += -lrte_pci -lrte_bus_pci
63
64         # export include files
65         SYMLINK-y-include +=
66
67         # versioning export map
68         EXPORT_MAP := ../../compress/qat/rte_pmd_qat_version.map
69 endif
70
71 include $(RTE_SDK)/mk/rte.lib.mk