1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2015-2018 Intel Corporation
4 include $(RTE_SDK)/mk/rte.vars.mk
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)
11 # external library include paths
12 CFLAGS += -I$(SRCDIR)/qat_adf
14 CFLAGS += -I$(QAT_CRYPTO_DIR)
15 CFLAGS += -I$(QAT_COMPRESS_DIR)
18 ifeq ($(CONFIG_RTE_LIBRTE_COMPRESSDEV),y)
19 LDLIBS += -lrte_compressdev
21 SRCS-y += qat_comp_pmd.c
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
30 CFLAGS += -DBUILD_QAT_ASYM
32 SRCS-y += qat_asym_pmd.c
35 ifeq ($(CONFIG_RTE_LIBRTE_PMD_QAT_SYM),y)
36 LDLIBS += -lrte_cryptodev
38 CFLAGS += -DBUILD_QAT_SYM
40 SRCS-y += qat_sym_session.c
41 SRCS-y += qat_sym_pmd.c
49 LIB = librte_pmd_qat.a
52 CFLAGS += $(WERROR_FLAGS)
55 # library common source files
56 SRCS-y += qat_device.c
57 SRCS-y += qat_common.c
61 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool
62 LDLIBS += -lrte_pci -lrte_bus_pci
64 # export include files
67 # versioning export map
68 EXPORT_MAP := ../../compress/qat/rte_pmd_qat_version.map
71 include $(RTE_SDK)/mk/rte.lib.mk