summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Ribas <jonathan.ribas@fraudbuster.mobi>2018-11-05 17:31:54 +0100
committerJonathan Ribas <jonathan.ribas@fraudbuster.mobi>2018-11-05 17:35:16 +0100
commit9c3b26a2fd9a18dd32050cf1ea5174b7ce80f6e3 (patch)
tree7ce8e400bb81356676b9d55680fbf5ceb61875da
parenta756e6e1a20977260fe2a03bcd377c4e7b9bfb71 (diff)
downloaddpdk-burst-replay-9c3b26a2fd9a18dd32050cf1ea5174b7ce80f6e3.zip
dpdk-burst-replay-9c3b26a2fd9a18dd32050cf1ea5174b7ce80f6e3.tar.gz
dpdk-burst-replay-9c3b26a2fd9a18dd32050cf1ea5174b7ce80f6e3.tar.xz
Move include to src dir and do not use config.h anymore.
-rw-r--r--configure.ac2
-rw-r--r--src/Makefile.am2
-rw-r--r--src/cpus.c1
-rw-r--r--src/dpdk.c1
-rw-r--r--src/main.c1
-rw-r--r--src/main.h (renamed from include/main.h)0
-rw-r--r--src/pcap.c1
7 files changed, 2 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index 24890d0..6c5ce4c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -41,7 +41,7 @@ AC_ARG_ENABLE(debug,
AS_HELP_STRING([--enable-debug], [turns on debug compiler, default:no]))
if test x$enable_debug = xyes; then
AC_DEFINE([DEBUG], [1], [debug enabled])
- CFLAGS="-ggdb -W -Wall -O0"
+ CFLAGS="-ggdb -W -Wall -DDEBUG -O0"
else
CFLAGS="-W -Wall -DNDEBUG -O2"
fi
diff --git a/src/Makefile.am b/src/Makefile.am
index efe24f5..f058026 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -33,5 +33,5 @@ dpdk_replay_SOURCES = main.c \
pcap.c \
utils.c
-dpdk_replay_CFLAGS = $(CFLAGS) -I$(top_srcdir)/include -I/usr/include/dpdk -march=native
+dpdk_replay_CFLAGS = $(CFLAGS) -I/usr/include/dpdk -march=native
dpdk_replay_LDFLAGS = $(LDFLAGS) -pthread -lnuma -ldpdk -lm
diff --git a/src/cpus.c b/src/cpus.c
index 0a33cdb..53f9cc7 100644
--- a/src/cpus.c
+++ b/src/cpus.c
@@ -35,7 +35,6 @@
#include <numa.h>
#include <unistd.h>
-#include "config.h"
#include "main.h"
static int find_cpus_to_use(const struct cmd_opts* opts, struct cpus_bindings* cpus)
diff --git a/src/dpdk.c b/src/dpdk.c
index 12ef8f3..3bcf9a2 100644
--- a/src/dpdk.c
+++ b/src/dpdk.c
@@ -36,7 +36,6 @@
#include <rte_version.h>
#include <rte_ethdev.h>
-#include "config.h"
#include "main.h"
static struct rte_eth_conf ethconf = {
diff --git a/src/main.c b/src/main.c
index 5083624..79c77b6 100644
--- a/src/main.c
+++ b/src/main.c
@@ -36,7 +36,6 @@
#include <rte_ethdev.h>
-#include "config.h"
#include "main.h"
void usage(void)
diff --git a/include/main.h b/src/main.h
index 71a2cf0..71a2cf0 100644
--- a/include/main.h
+++ b/src/main.h
diff --git a/src/pcap.c b/src/pcap.c
index d985d4e..aa4f4cf 100644
--- a/src/pcap.c
+++ b/src/pcap.c
@@ -41,7 +41,6 @@
#include <rte_malloc.h>
#include <rte_mbuf.h>
-#include "config.h"
#include "main.h"
#define MAX_PKT_SZ (1024*64) /* 64ko */