summaryrefslogtreecommitdiff
path: root/DPDK_Makefile
blob: b1eafc5eb10ca1ba3158195af9764758a5e59027 (plain)
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
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2018 Jonathan Ribas, FraudBuster. All rights reserved.

ifeq ($(RTE_SDK),)
$(error "Please define RTE_SDK environment variable")
endif

# Default target, can be overriden by command line or environment
RTE_TARGET ?= x86_64-native-linuxapp-gcc

include $(RTE_SDK)/mk/rte.vars.mk

# binary name
APP 	=	dpdk-replay

CFLAGS 	+=	-O3 -I$(RTE_SRCDIR)

SRCS-y 	:=	src/main.c \
			src/cpus.c \
			src/dpdk.c \
			src/pcap.c \
			src/utils.c

LDFLAGS	+=	-lm -lnuma

include $(RTE_SDK)/mk/rte.extapp.mk