diff options
author | Jonathan Ribas <jonathan.ribas@fraudbuster.mobi> | 2018-11-05 17:31:54 +0100 |
---|---|---|
committer | Jonathan Ribas <jonathan.ribas@fraudbuster.mobi> | 2018-11-05 17:35:16 +0100 |
commit | 9c3b26a2fd9a18dd32050cf1ea5174b7ce80f6e3 (patch) | |
tree | 7ce8e400bb81356676b9d55680fbf5ceb61875da | |
parent | a756e6e1a20977260fe2a03bcd377c4e7b9bfb71 (diff) | |
download | dpdk-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.ac | 2 | ||||
-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | src/cpus.c | 1 | ||||
-rw-r--r-- | src/dpdk.c | 1 | ||||
-rw-r--r-- | src/main.c | 1 | ||||
-rw-r--r-- | src/main.h (renamed from include/main.h) | 0 | ||||
-rw-r--r-- | src/pcap.c | 1 |
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 @@ -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) @@ -36,7 +36,6 @@ #include <rte_version.h> #include <rte_ethdev.h> -#include "config.h" #include "main.h" static struct rte_eth_conf ethconf = { @@ -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 @@ -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 */ |