aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2019-08-27 19:22:53 +0200
committerAndrea Fioraldi <andreafioraldi@gmail.com>2019-08-27 19:22:53 +0200
commitbae398a9a4d14ccddde48591ba94d5c03970d741 (patch)
tree1b7a916e488c0e1f02ef3c4f7dac0640bab0d087
parent0d001c09c3cf23f087623e0fec438ed3a4237ce9 (diff)
downloadafl++-bae398a9a4d14ccddde48591ba94d5c03970d741.tar.gz
-I include in makefiles
l---------debug.h1
-rw-r--r--libdislocator/Makefile2
-rw-r--r--libdislocator/libdislocator.so.c4
-rw-r--r--libtokencap/Makefile2
-rw-r--r--llvm_mode/LLVMInsTrim.so.cc4
-rw-r--r--llvm_mode/Makefile4
-rw-r--r--llvm_mode/afl-clang-fast.c8
-rw-r--r--llvm_mode/afl-llvm-pass.so.cc4
-rw-r--r--llvm_mode/afl-llvm-rt.o.c4
-rw-r--r--qemu_mode/libcompcov/Makefile2
-rw-r--r--qemu_mode/libcompcov/libcompcov.so.c4
11 files changed, 19 insertions, 20 deletions
diff --git a/debug.h b/debug.h
deleted file mode 120000
index a00dd92f..00000000
--- a/debug.h
+++ /dev/null
@@ -1 +0,0 @@
-include/debug.h \ No newline at end of file
diff --git a/libdislocator/Makefile b/libdislocator/Makefile
index a4116780..236667ec 100644
--- a/libdislocator/Makefile
+++ b/libdislocator/Makefile
@@ -18,7 +18,7 @@ HELPER_PATH = $(PREFIX)/lib/afl
VERSION = $(shell grep '^\#define VERSION ' ../config.h | cut -d '"' -f2)
-CFLAGS ?= -O3 -funroll-loops
+CFLAGS ?= -O3 -funroll-loops -I ../include/
CFLAGS += -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign
all: libdislocator.so
diff --git a/libdislocator/libdislocator.so.c b/libdislocator/libdislocator.so.c
index 043480a6..71620b17 100644
--- a/libdislocator/libdislocator.so.c
+++ b/libdislocator/libdislocator.so.c
@@ -25,8 +25,8 @@
#include <limits.h>
#include <sys/mman.h>
-#include "../config.h"
-#include "../types.h"
+#include "config.h"
+#include "types.h"
#ifndef PAGE_SIZE
# define PAGE_SIZE 4096
diff --git a/libtokencap/Makefile b/libtokencap/Makefile
index a464f76d..ec4c8f95 100644
--- a/libtokencap/Makefile
+++ b/libtokencap/Makefile
@@ -18,7 +18,7 @@ HELPER_PATH = $(PREFIX)/lib/afl
VERSION = $(shell grep '^\#define VERSION ' ../config.h | cut -d '"' -f2)
-CFLAGS ?= -O3 -funroll-loops
+CFLAGS ?= -O3 -funroll-loops -I ../include/
CFLAGS += -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign
all: libtokencap.so
diff --git a/llvm_mode/LLVMInsTrim.so.cc b/llvm_mode/LLVMInsTrim.so.cc
index 0a15680d..95b52d48 100644
--- a/llvm_mode/LLVMInsTrim.so.cc
+++ b/llvm_mode/LLVMInsTrim.so.cc
@@ -24,8 +24,8 @@
#include <string>
#include <fstream>
-#include "../config.h"
-#include "../debug.h"
+#include "config.h"
+#include "debug.h"
#include "MarkNodes.h"
diff --git a/llvm_mode/Makefile b/llvm_mode/Makefile
index 160a8fe6..e51803c8 100644
--- a/llvm_mode/Makefile
+++ b/llvm_mode/Makefile
@@ -40,7 +40,7 @@ ifeq "$(LLVM_MAJOR)" "9"
endif
CFLAGS ?= -O3 -funroll-loops
-CFLAGS += -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign \
+CFLAGS += -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign -I ../include/ \
-DAFL_PATH=\"$(HELPER_PATH)\" -DBIN_PATH=\"$(BIN_PATH)\" \
-DVERSION=\"$(VERSION)\"
ifdef AFL_TRACE_PC
@@ -48,7 +48,7 @@ ifdef AFL_TRACE_PC
endif
CXXFLAGS ?= -O3 -funroll-loops
-CXXFLAGS += -Wall -D_FORTIFY_SOURCE=2 -g \
+CXXFLAGS += -Wall -D_FORTIFY_SOURCE=2 -g -I ../include/ \
-DVERSION=\"$(VERSION)\" -Wno-variadic-macros
CLANG_CFL = `$(LLVM_CONFIG) --cxxflags` -Wl,-znodelete -fno-rtti -fpic $(CXXFLAGS)
diff --git a/llvm_mode/afl-clang-fast.c b/llvm_mode/afl-clang-fast.c
index 28a9a853..1b810edf 100644
--- a/llvm_mode/afl-clang-fast.c
+++ b/llvm_mode/afl-clang-fast.c
@@ -23,10 +23,10 @@
#define AFL_MAIN
-#include "../config.h"
-#include "../types.h"
-#include "../debug.h"
-#include "../include/alloc-inl.h"
+#include "config.h"
+#include "types.h"
+#include "debug.h"
+#include "alloc-inl.h"
#include <stdio.h>
#include <unistd.h>
diff --git a/llvm_mode/afl-llvm-pass.so.cc b/llvm_mode/afl-llvm-pass.so.cc
index cfeff968..3fe7f83e 100644
--- a/llvm_mode/afl-llvm-pass.so.cc
+++ b/llvm_mode/afl-llvm-pass.so.cc
@@ -24,8 +24,8 @@
#define AFL_LLVM_PASS
-#include "../config.h"
-#include "../debug.h"
+#include "config.h"
+#include "debug.h"
#include <stdio.h>
#include <stdlib.h>
diff --git a/llvm_mode/afl-llvm-rt.o.c b/llvm_mode/afl-llvm-rt.o.c
index debde204..1564ae9d 100644
--- a/llvm_mode/afl-llvm-rt.o.c
+++ b/llvm_mode/afl-llvm-rt.o.c
@@ -19,8 +19,8 @@
*/
-#include "../config.h"
-#include "../types.h"
+#include "config.h"
+#include "types.h"
#include <stdio.h>
#include <stdlib.h>
diff --git a/qemu_mode/libcompcov/Makefile b/qemu_mode/libcompcov/Makefile
index c984588b..a1f4e31f 100644
--- a/qemu_mode/libcompcov/Makefile
+++ b/qemu_mode/libcompcov/Makefile
@@ -18,7 +18,7 @@ HELPER_PATH = $(PREFIX)/lib/afl
VERSION = $(shell grep '^\#define VERSION ' ../config.h | cut -d '"' -f2)
-CFLAGS ?= -O3 -funroll-loops
+CFLAGS ?= -O3 -funroll-loops -I ../../include/
CFLAGS += -Wall -Wno-unused-result -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign
LDFLAGS += -ldl
diff --git a/qemu_mode/libcompcov/libcompcov.so.c b/qemu_mode/libcompcov/libcompcov.so.c
index 582230db..44045d39 100644
--- a/qemu_mode/libcompcov/libcompcov.so.c
+++ b/qemu_mode/libcompcov/libcompcov.so.c
@@ -27,8 +27,8 @@
#include <sys/types.h>
#include <sys/shm.h>
-#include "../../types.h"
-#include "../../config.h"
+#include "types.h"
+#include "config.h"
#include "pmparser.h"