-I include in makefiles

This commit is contained in:
Andrea Fioraldi
2019-08-27 19:22:53 +02:00
parent 0d001c09c3
commit bae398a9a4
11 changed files with 19 additions and 20 deletions

View File

@ -1 +0,0 @@
include/debug.h

View File

@ -18,7 +18,7 @@ HELPER_PATH = $(PREFIX)/lib/afl
VERSION = $(shell grep '^\#define VERSION ' ../config.h | cut -d '"' -f2) 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 CFLAGS += -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign
all: libdislocator.so all: libdislocator.so

View File

@ -25,8 +25,8 @@
#include <limits.h> #include <limits.h>
#include <sys/mman.h> #include <sys/mman.h>
#include "../config.h" #include "config.h"
#include "../types.h" #include "types.h"
#ifndef PAGE_SIZE #ifndef PAGE_SIZE
# define PAGE_SIZE 4096 # define PAGE_SIZE 4096

View File

@ -18,7 +18,7 @@ HELPER_PATH = $(PREFIX)/lib/afl
VERSION = $(shell grep '^\#define VERSION ' ../config.h | cut -d '"' -f2) 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 CFLAGS += -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign
all: libtokencap.so all: libtokencap.so

View File

@ -24,8 +24,8 @@
#include <string> #include <string>
#include <fstream> #include <fstream>
#include "../config.h" #include "config.h"
#include "../debug.h" #include "debug.h"
#include "MarkNodes.h" #include "MarkNodes.h"

View File

@ -40,7 +40,7 @@ ifeq "$(LLVM_MAJOR)" "9"
endif endif
CFLAGS ?= -O3 -funroll-loops 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)\" \ -DAFL_PATH=\"$(HELPER_PATH)\" -DBIN_PATH=\"$(BIN_PATH)\" \
-DVERSION=\"$(VERSION)\" -DVERSION=\"$(VERSION)\"
ifdef AFL_TRACE_PC ifdef AFL_TRACE_PC
@ -48,7 +48,7 @@ ifdef AFL_TRACE_PC
endif endif
CXXFLAGS ?= -O3 -funroll-loops 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 -DVERSION=\"$(VERSION)\" -Wno-variadic-macros
CLANG_CFL = `$(LLVM_CONFIG) --cxxflags` -Wl,-znodelete -fno-rtti -fpic $(CXXFLAGS) CLANG_CFL = `$(LLVM_CONFIG) --cxxflags` -Wl,-znodelete -fno-rtti -fpic $(CXXFLAGS)

View File

@ -23,10 +23,10 @@
#define AFL_MAIN #define AFL_MAIN
#include "../config.h" #include "config.h"
#include "../types.h" #include "types.h"
#include "../debug.h" #include "debug.h"
#include "../include/alloc-inl.h" #include "alloc-inl.h"
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>

View File

@ -24,8 +24,8 @@
#define AFL_LLVM_PASS #define AFL_LLVM_PASS
#include "../config.h" #include "config.h"
#include "../debug.h" #include "debug.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -19,8 +19,8 @@
*/ */
#include "../config.h" #include "config.h"
#include "../types.h" #include "types.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -18,7 +18,7 @@ HELPER_PATH = $(PREFIX)/lib/afl
VERSION = $(shell grep '^\#define VERSION ' ../config.h | cut -d '"' -f2) 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 CFLAGS += -Wall -Wno-unused-result -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign
LDFLAGS += -ldl LDFLAGS += -ldl

View File

@ -27,8 +27,8 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/shm.h> #include <sys/shm.h>
#include "../../types.h" #include "types.h"
#include "../../config.h" #include "config.h"
#include "pmparser.h" #include "pmparser.h"