1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2010-2014 Intel Corporation
4 include $(RTE_SDK)/mk/rte.vars.mk
9 EXPORT_MAP := rte_vhost_version.map
13 CFLAGS += -DALLOW_EXPERIMENTAL_API
14 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 -D_FILE_OFFSET_BITS=64
15 CFLAGS += -I vhost_user
16 CFLAGS += -fno-strict-aliasing
19 ifeq ($(CONFIG_RTE_LIBRTE_VHOST_NUMA),y)
22 LDLIBS += -lrte_eal -lrte_mempool -lrte_mbuf -lrte_ethdev -lrte_net
24 # all source are stored in SRCS-y
25 SRCS-$(CONFIG_RTE_LIBRTE_VHOST) := fd_man.c iotlb.c socket.c vhost.c \
26 vhost_user.c virtio_net.c vdpa.c
29 SYMLINK-$(CONFIG_RTE_LIBRTE_VHOST)-include += rte_vhost.h rte_vdpa.h
31 # only compile vhost crypto when cryptodev is enabled
32 ifeq ($(CONFIG_RTE_LIBRTE_CRYPTODEV),y)
33 LDLIBS += -lrte_cryptodev -lrte_hash
34 SRCS-$(CONFIG_RTE_LIBRTE_VHOST) += vhost_crypto.c
35 SYMLINK-$(CONFIG_RTE_LIBRTE_VHOST)-include += rte_vhost_crypto.h
38 include $(RTE_SDK)/mk/rte.lib.mk