2017-12-19 15:49:03 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2010-2014 Intel Corporation
|
2014-10-09 02:54:59 +08:00
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.vars.mk
|
|
|
|
|
|
|
|
# library name
|
|
|
|
LIB = librte_vhost.a
|
|
|
|
|
2015-02-02 12:40:20 -05:00
|
|
|
EXPORT_MAP := rte_vhost_version.map
|
|
|
|
|
2017-04-01 15:22:52 +08:00
|
|
|
LIBABIVER := 4
|
2015-02-02 12:40:21 -05:00
|
|
|
|
2018-01-21 20:48:05 -05:00
|
|
|
CFLAGS += -DALLOW_EXPERIMENTAL_API
|
2019-05-28 12:07:46 +01:00
|
|
|
CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3
|
2015-02-23 17:36:31 +00:00
|
|
|
CFLAGS += -I vhost_user
|
2018-09-05 07:55:55 +08:00
|
|
|
CFLAGS += -fno-strict-aliasing
|
2016-03-10 15:16:00 +02:00
|
|
|
LDLIBS += -lpthread
|
2015-03-12 23:30:23 +08:00
|
|
|
|
2015-06-25 13:47:37 +08:00
|
|
|
ifeq ($(CONFIG_RTE_LIBRTE_VHOST_NUMA),y)
|
2016-03-10 15:16:00 +02:00
|
|
|
LDLIBS += -lnuma
|
2015-06-25 13:47:37 +08:00
|
|
|
endif
|
2018-10-16 22:47:16 +02:00
|
|
|
LDLIBS += -lrte_eal -lrte_mempool -lrte_mbuf -lrte_ethdev -lrte_net
|
2015-06-25 13:47:37 +08:00
|
|
|
|
2014-10-09 02:54:59 +08:00
|
|
|
# all source are stored in SRCS-y
|
2017-10-05 10:36:14 +02:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_VHOST) := fd_man.c iotlb.c socket.c vhost.c \
|
2018-04-16 15:08:58 +01:00
|
|
|
vhost_user.c virtio_net.c vdpa.c
|
2014-10-09 02:54:59 +08:00
|
|
|
|
|
|
|
# install includes
|
2018-04-16 15:08:58 +01:00
|
|
|
SYMLINK-$(CONFIG_RTE_LIBRTE_VHOST)-include += rte_vhost.h rte_vdpa.h
|
|
|
|
|
|
|
|
# only compile vhost crypto when cryptodev is enabled
|
|
|
|
ifeq ($(CONFIG_RTE_LIBRTE_CRYPTODEV),y)
|
2018-10-16 22:47:16 +02:00
|
|
|
LDLIBS += -lrte_cryptodev -lrte_hash
|
2018-04-16 15:08:58 +01:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_VHOST) += vhost_crypto.c
|
|
|
|
SYMLINK-$(CONFIG_RTE_LIBRTE_VHOST)-include += rte_vhost_crypto.h
|
|
|
|
endif
|
2014-10-09 02:54:59 +08:00
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.lib.mk
|