-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
81 lines (68 loc) · 1.55 KB
/
Makefile
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
CC= clang
AFL_CC= afl-clang
CFLAGS= -std=c99 \
-Wall \
-Wextra \
-D_DEFAULT_SOURCE \
-O2 \
-Werror \
-Wall \
-Wextra \
-Wfloat-equal \
-Wshadow \
-Wpointer-arith \
-Wcast-align \
-Wstrict-prototypes \
-Wstrict-overflow=5 \
-Wwrite-strings \
-Waggregate-return \
-Wcast-qual \
-Wswitch-enum \
-Wundef \
-Wunreachable-code \
-Wuninitialized \
-Wformat=2
LDFLAGS= -lm -lpthread
SRC= apathy.c \
debug.c \
dot.c \
field.c \
file_view.c \
hash.c \
path_graph.c \
regex.c \
request.c \
session.c \
time.c \
truncate.c \
util.c
BIN= apathy
all: $(BIN)
$(BIN): $(SRC)
$(CC) $(CFLAGS) -o $(BIN) $(SRC) $(LDFLAGS)
clean:
rm -f $(BIN)
release: CFLAGS = $(CFLAGS_RELEASE)
release: $(BIN)
profile: LDFLAGS += -lprofiler
profile: $(BIN)
afl-fuzz-access-logs: CC = $(AFL_CC)
afl-fuzz-access-logs: $(BIN)
afl-fuzz -i afl/access_logs \
-o afl/access_log_findings \
./$(BIN) -T afl/default/truncate_patterns.txt @@
afl-resume-access-logs: CC = $(AFL_CC)
afl-resume-access-logs: $(BIN)
afl-fuzz -i - \
-o afl/access_log_findings \
./$(BIN) -T afl/default/truncate_patterns.txt @@
afl-fuzz-truncate-patterns: CC = $(AFL_CC)
afl-fuzz-truncate-patterns: $(BIN)
afl-fuzz -i afl/truncate_patterns \
-o afl/truncate_pattern_findings \
./$(BIN) -T @@ afl/default/access.log
afl-resume-truncate-patterns: CC = $(AFL_CC)
afl-resume-truncate-patterns: $(BIN)
afl-fuzz -i - \
-o afl/truncate_pattern_findings \
./$(BIN) -T @@ afl/default/access.log