drivers: move ifc to vDPA directory
[dpdk.git] / drivers / vdpa / ifc / Makefile
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2018 Intel Corporation
3
4 include $(RTE_SDK)/mk/rte.vars.mk
5
6 #
7 # library name
8 #
9 LIB = librte_pmd_ifc.a
10
11 LDLIBS += -lpthread
12 LDLIBS += -lrte_eal -lrte_pci -lrte_vhost -lrte_bus_pci
13 LDLIBS += -lrte_kvargs
14
15 CFLAGS += -O3
16 CFLAGS += $(WERROR_FLAGS)
17 CFLAGS += -DALLOW_EXPERIMENTAL_API
18
19 #
20 # Add extra flags for base driver source files to disable warnings in them
21 #
22 BASE_DRIVER_OBJS=$(sort $(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c))))
23
24 VPATH += $(SRCDIR)/base
25
26 EXPORT_MAP := rte_pmd_ifc_version.map
27
28 #
29 # all source are stored in SRCS-y
30 #
31 SRCS-$(CONFIG_RTE_LIBRTE_IFC_PMD) += ifcvf_vdpa.c
32 SRCS-$(CONFIG_RTE_LIBRTE_IFC_PMD) += ifcvf.c
33
34 include $(RTE_SDK)/mk/rte.lib.mk