aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-06-25 17:51:48 +0200
committervan Hauser <vh@thc.org>2020-06-25 17:51:48 +0200
commit633a3feab9f7cf98794eebad81cec730042d7e9b (patch)
tree3c4665c7f5fa0e277d3cf5c2d288f109921c2302 /GNUmakefile
parentc8f60a7fbfeac86226b4fc6c441af2c45f5db521 (diff)
downloadafl++-633a3feab9f7cf98794eebad81cec730042d7e9b.tar.gz
fix makefile
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/GNUmakefile b/GNUmakefile
index b154bbda..ad7169cd 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -199,12 +199,12 @@ ifneq "$(filter Linux GNU%,$(shell uname))" ""
endif
ifneq "$(findstring FreeBSD, $(shell uname))" ""
- CFLAGS += -pthread
+ override CFLAGS += -pthread
LDFLAGS += -lpthread
endif
ifneq "$(findstring NetBSD, $(shell uname))" ""
- CFLAGS += -pthread
+ override CFLAGS += -pthread
LDFLAGS += -lpthread
endif
@@ -244,7 +244,7 @@ endif
ifdef ASAN_BUILD
$(info Compiling ASAN version of binaries)
- CFLAGS+=$(ASAN_CFLAGS)
+ override CFLAGS+=$(ASAN_CFLAGS)
LDFLAGS+=$(ASAN_LDFLAGS)
endif
@@ -252,14 +252,15 @@ ifeq "$(shell echo '$(HASH)include <sys/ipc.h>@$(HASH)include <sys/shm.h>@int ma
SHMAT_OK=1
else
SHMAT_OK=0
- CFLAGS+=-DUSEMMAP=1
+ override CFLAGS+=-DUSEMMAP=1
LDFLAGS+=-Wno-deprecated-declarations
endif
-ifeq "$(TEST_MMAP)" "1"
+ifdef TEST_MMAP
SHMAT_OK=0
- CFLAGS+=-DUSEMMAP=1
- LDFLAGS+=-Wno-deprecated-declarations
+ override CFLAGS += -DUSEMMAP=1
+ LDFLAGS += -Wno-deprecated-declarations
+else
endif
all: test_x86 test_shm test_python ready $(PROGS) afl-as test_build all_done