forked from libos-nuse/linux-libos-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.dpdk
27 lines (22 loc) · 1.29 KB
/
Makefile.dpdk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
include Makefile.include
DPDK_SRC=nuse-vif-dpdk.c
DPDK_OBJ=$(addsuffix .o,$(basename $(DPDK_SRC)))
RTE_SDK=$(shell expr `pwd`)/dpdk
RTE_TARGET=build
DPDK_CFLAGS += -include $(RTE_SDK)/$(RTE_TARGET)/include/rte_config.h \
-I$(RTE_SDK)/$(RTE_TARGET)/include -I$(ARCH_DIR)/include \
-DRTE_MACHINE_CPUFLAG_SSE -DRTE_MACHINE_CPUFLAG_SSE2 -DRTE_MACHINE_CPUFLAG_SSE3 \
-DRTE_MACHINE_CPUFLAG_SSSE3 -DRTE_MACHINE_CPUFLAG_SSE4_1 -DRTE_MACHINE_CPUFLAG_SSE4_2 \
-DRTE_MACHINE_CPUFLAG_AES -DRTE_MACHINE_CPUFLAG_PCLMULQDQ -DRTE_MACHINE_CPUFLAG_AVX \
-DRTE_MACHINE_CPUFLAG_RDRAND -DRTE_MACHINE_CPUFLAG_FSGSBASE -DRTE_MACHINE_CPUFLAG_F16C \
-DRTE_COMPILE_TIME_CPUFLAGS=RTE_CPUFLAG_SSE,RTE_CPUFLAG_SSE2,RTE_CPUFLAG_SSE3,RTE_CPUFLAG_SSSE3,RTE_CPUFLAG_SSE4_1,RTE_CPUFLAG_SSE4_2,RTE_CPUFLAG_AES,RTE_CPUFLAG_PCLMULQDQ,RTE_CPUFLAG_AVX,RTE_CPUFLAG_RDRAND,RTE_CPUFLAG_FSGSBASE,RTE_CPUFLAG_F16C
DPDK_LDLIBS += -lrte_pmd_virtio_uio -lrte_pmd_vmxnet3_uio -lrte_pmd_ixgbe \
-lrte_pmd_e1000 -lrte_timer -lrte_hash \
-lrte_mbuf -lethdev \
-lrte_eal -lrte_mempool -lrte_ring -lrte_pmd_ring -lrte_malloc
dpdkl_yes=$(DPDK_OBJ) $(DPDK_LDLIBS)
dpdkl_no=
nuse-vif-dpdk.o: nuse-vif-dpdk.c Makefile.dpdk
ifeq ($(DPDK), yes)
$(QUIET_CC) $(CC) $(CFLAGS) -m64 -pthread -march=native $(DPDK_CFLAGS) -c $< -o $@
endif