1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
|
https://bugs.gentoo.org/800941
(also don't override jobs for sub-makes)
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -308,17 +308,17 @@ endif
.PHONY: all
all: test_x86 test_shm test_python ready $(PROGS) afl-as llvm gcc_plugin test_build all_done
- -$(MAKE) -C utils/aflpp_driver
+ $(MAKE) -C utils/aflpp_driver
.PHONY: llvm
llvm:
- -$(MAKE) -j$(nproc) -f GNUmakefile.llvm
+ $(MAKE) -f GNUmakefile.llvm
@test -e afl-cc || { echo "[-] Compiling afl-cc failed. You seem not to have a working compiler." ; exit 1; }
.PHONY: gcc_plugin
gcc_plugin:
ifneq "$(SYS)" "Darwin"
- -$(MAKE) -f GNUmakefile.gcc_plugin
+ $(MAKE) -f GNUmakefile.gcc_plugin
endif
.PHONY: man
@@ -571,19 +571,19 @@ all_done: test_build
.PHONY: clean
clean:
rm -rf $(PROGS) afl-fuzz-document afl-as as afl-g++ afl-clang afl-clang++ *.o src/*.o *~ a.out core core.[1-9][0-9]* *.stackdump .test .test1 .test2 test-instr .test-instr0 .test-instr1 afl-cs-proxy afl-qemu-trace afl-gcc-fast afl-g++-fast ld *.so *.8 test/unittests/*.o test/unittests/unit_maybe_alloc test/unittests/preallocable .afl-* afl-gcc afl-g++ afl-clang afl-clang++ test/unittests/unit_hash test/unittests/unit_rand *.dSYM lib*.a
- -$(MAKE) -f GNUmakefile.llvm clean
- -$(MAKE) -f GNUmakefile.gcc_plugin clean
- -$(MAKE) -C utils/libdislocator clean
- -$(MAKE) -C utils/libtokencap clean
- -$(MAKE) -C utils/aflpp_driver clean
- -$(MAKE) -C utils/afl_network_proxy clean
- -$(MAKE) -C utils/socket_fuzzing clean
- -$(MAKE) -C utils/argv_fuzzing clean
- -$(MAKE) -C utils/plot_ui clean
- -$(MAKE) -C qemu_mode/unsigaction clean
- -$(MAKE) -C qemu_mode/libcompcov clean
- -$(MAKE) -C qemu_mode/libqasan clean
- -$(MAKE) -C frida_mode clean
+ $(MAKE) -f GNUmakefile.llvm clean
+ $(MAKE) -f GNUmakefile.gcc_plugin clean
+ $(MAKE) -C utils/libdislocator clean
+ $(MAKE) -C utils/libtokencap clean
+ $(MAKE) -C utils/aflpp_driver clean
+ $(MAKE) -C utils/afl_network_proxy clean
+ $(MAKE) -C utils/socket_fuzzing clean
+ $(MAKE) -C utils/argv_fuzzing clean
+ $(MAKE) -C utils/plot_ui clean
+ $(MAKE) -C qemu_mode/unsigaction clean
+ $(MAKE) -C qemu_mode/libcompcov clean
+ $(MAKE) -C qemu_mode/libqasan clean
+ $(MAKE) -C frida_mode clean
rm -rf nyx_mode/packer/linux_initramfs/init.cpio.gz nyx_mode/libnyx/libnyx/target/release/* nyx_mode/QEMU-Nyx/x86_64-softmmu/qemu-system-x86_64
ifeq "$(IN_REPO)" "1"
-test -e coresight_mode/coresight-trace/Makefile && $(MAKE) -C coresight_mode/coresight-trace clean || true
@@ -613,21 +613,21 @@ endif
.PHONY: distrib
distrib: all
- -$(MAKE) -j$(nproc) -f GNUmakefile.llvm
+ $(MAKE) -f GNUmakefile.llvm
ifneq "$(SYS)" "Darwin"
- -$(MAKE) -f GNUmakefile.gcc_plugin
-endif
- -$(MAKE) -C utils/libdislocator
- -$(MAKE) -C utils/libtokencap
- -$(MAKE) -C utils/afl_network_proxy
- -$(MAKE) -C utils/socket_fuzzing
- -$(MAKE) -C utils/argv_fuzzing
- # -$(MAKE) -C utils/plot_ui
- -$(MAKE) -C frida_mode
+ $(MAKE) -f GNUmakefile.gcc_plugin
+endif
+ $(MAKE) -C utils/libdislocator
+ $(MAKE) -C utils/libtokencap
+ $(MAKE) -C utils/afl_network_proxy
+ $(MAKE) -C utils/socket_fuzzing
+ $(MAKE) -C utils/argv_fuzzing
+ # $(MAKE) -C utils/plot_ui
+ $(MAKE) -C frida_mode
ifneq "$(SYS)" "Darwin"
ifeq "$(ARCH)" "aarch64"
ifndef NO_CORESIGHT
- -$(MAKE) -C coresight_mode
+ $(MAKE) -C coresight_mode
endif
endif
ifeq "$(SYS)" "Linux"
@@ -647,17 +647,17 @@ endif
.PHONY: binary-only
binary-only: test_shm test_python ready $(PROGS)
- -$(MAKE) -C utils/libdislocator
- -$(MAKE) -C utils/libtokencap
- -$(MAKE) -C utils/afl_network_proxy
- -$(MAKE) -C utils/socket_fuzzing
- -$(MAKE) -C utils/argv_fuzzing
- # -$(MAKE) -C utils/plot_ui
- -$(MAKE) -C frida_mode
+ $(MAKE) -C utils/libdislocator
+ $(MAKE) -C utils/libtokencap
+ $(MAKE) -C utils/afl_network_proxy
+ $(MAKE) -C utils/socket_fuzzing
+ $(MAKE) -C utils/argv_fuzzing
+ # $(MAKE) -C utils/plot_ui
+ $(MAKE) -C frida_mode
ifneq "$(SYS)" "Darwin"
ifeq "$(ARCH)" "aarch64"
ifndef NO_CORESIGHT
- -$(MAKE) -C coresight_mode
+ $(MAKE) -C coresight_mode
endif
endif
ifeq "$(SYS)" "Linux"
@@ -677,13 +677,13 @@ endif
.PHONY: source-only
source-only: all
- -$(MAKE) -j$(nproc) -f GNUmakefile.llvm
+ $(MAKE) -f GNUmakefile.llvm
ifneq "$(SYS)" "Darwin"
- -$(MAKE) -f GNUmakefile.gcc_plugin
+ $(MAKE) -f GNUmakefile.gcc_plugin
endif
- -$(MAKE) -C utils/libdislocator
- -$(MAKE) -C utils/libtokencap
- # -$(MAKE) -C utils/plot_ui
+ $(MAKE) -C utils/libdislocator
+ $(MAKE) -C utils/libtokencap
+ # $(MAKE) -C utils/plot_ui
ifeq "$(SYS)" "Linux"
ifndef NO_NYX
-cd nyx_mode && ./build_nyx_support.sh
@@ -731,9 +731,9 @@ install: all $(MANPAGES)
@if [ -f utils/afl_network_proxy/afl-network-server ]; then $(MAKE) -C utils/afl_network_proxy install; fi
@if [ -f utils/aflpp_driver/libAFLDriver.a ]; then set -e; install -m 644 utils/aflpp_driver/libAFLDriver.a $${DESTDIR}$(HELPER_PATH); fi
@if [ -f utils/aflpp_driver/libAFLQemuDriver.a ]; then set -e; install -m 644 utils/aflpp_driver/libAFLQemuDriver.a $${DESTDIR}$(HELPER_PATH); fi
- -$(MAKE) -f GNUmakefile.llvm install
+ $(MAKE) -f GNUmakefile.llvm install
ifneq "$(SYS)" "Darwin"
- -$(MAKE) -f GNUmakefile.gcc_plugin install
+ $(MAKE) -f GNUmakefile.gcc_plugin install
endif
ln -sf afl-cc $${DESTDIR}$(BIN_PATH)/afl-gcc
ln -sf afl-cc $${DESTDIR}$(BIN_PATH)/afl-g++
|