I include in makefiles
DELETE
debug.h
-include/debug.h
\ No newline at end of file

MODIFY
libdislocator/Makefile
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

MODIFY
libdislocator/libdislocator.so.c
libdislocator/libdislocator.so.c
#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

MODIFY
libtokencap/Makefile
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

MODIFY
llvm_mode/LLVMInsTrim.so.cc
llvm_mode/LLVMInsTrim.so.cc
#include <string>
#include <fstream>
-#include "../config.h"
-#include "../debug.h"
+#include "config.h"
+#include "debug.h"
#include "MarkNodes.h"

MODIFY
llvm_mode/Makefile
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)

MODIFY
llvm_mode/afl-clang-fast.c
llvm_mode/afl-clang-fast.c
#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>

MODIFY
llvm_mode/afl-llvm-pass.so.cc
llvm_mode/afl-llvm-pass.so.cc
#define AFL_LLVM_PASS
-#include "../config.h"
-#include "../debug.h"
+#include "config.h"
+#include "debug.h"
#include <stdio.h>
#include <stdlib.h>

MODIFY
llvm_mode/afl-llvm-rt.o.c
llvm_mode/afl-llvm-rt.o.c
*/
-#include "../config.h"
-#include "../types.h"
+#include "config.h"
+#include "types.h"
#include <stdio.h>
#include <stdlib.h>

MODIFY
qemu_mode/libcompcov/Makefile
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

MODIFY
qemu_mode/libcompcov/libcompcov.so.c
qemu_mode/libcompcov/libcompcov.so.c
#include <sys/types.h>
#include <sys/shm.h>
-#include "../../types.h"
-#include "../../config.h"
+#include "types.h"
+#include "config.h"
#include "pmparser.h"

-I include in makefiles