crypto/nitrox: support 3DES-CBC
[dpdk.git] / lib / librte_vhost / Makefile
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2010-2014 Intel Corporation
3
4 include $(RTE_SDK)/mk/rte.vars.mk
5
6 # library name
7 LIB = librte_vhost.a
8
9 EXPORT_MAP := rte_vhost_version.map
10
11 CFLAGS += -DALLOW_EXPERIMENTAL_API
12 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3
13 CFLAGS += -I vhost_user
14 CFLAGS += -fno-strict-aliasing
15 LDLIBS += -lpthread
16
17 ifeq ($(RTE_TOOLCHAIN), gcc)
18 ifeq ($(shell test $(GCC_VERSION) -ge 83 && echo 1), 1)
19 CFLAGS += -DVHOST_GCC_UNROLL_PRAGMA
20 endif
21 endif
22
23 ifeq ($(RTE_TOOLCHAIN), clang)
24 ifeq ($(shell test $(CLANG_MAJOR_VERSION)$(CLANG_MINOR_VERSION) -ge 37 && echo 1), 1)
25 CFLAGS += -DVHOST_CLANG_UNROLL_PRAGMA
26 endif
27 endif
28
29 ifeq ($(RTE_TOOLCHAIN), icc)
30 ifeq ($(shell test $(ICC_MAJOR_VERSION) -ge 16 && echo 1), 1)
31 CFLAGS += -DVHOST_ICC_UNROLL_PRAGMA
32 endif
33 endif
34
35 ifeq ($(CONFIG_RTE_LIBRTE_VHOST_NUMA),y)
36 LDLIBS += -lnuma
37 endif
38 LDLIBS += -lrte_eal -lrte_mempool -lrte_mbuf -lrte_ethdev -lrte_net
39
40 # all source are stored in SRCS-y
41 SRCS-$(CONFIG_RTE_LIBRTE_VHOST) := fd_man.c iotlb.c socket.c vhost.c \
42                                         vhost_user.c virtio_net.c vdpa.c
43
44 # install includes
45 SYMLINK-$(CONFIG_RTE_LIBRTE_VHOST)-include += rte_vhost.h rte_vdpa.h
46
47 # only compile vhost crypto when cryptodev is enabled
48 ifeq ($(CONFIG_RTE_LIBRTE_CRYPTODEV),y)
49 LDLIBS += -lrte_cryptodev -lrte_hash
50 SRCS-$(CONFIG_RTE_LIBRTE_VHOST) += vhost_crypto.c
51 SYMLINK-$(CONFIG_RTE_LIBRTE_VHOST)-include += rte_vhost_crypto.h
52 endif
53
54 include $(RTE_SDK)/mk/rte.lib.mk