-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
78 lines (57 loc) · 2.11 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
#
# Dependency-Aware Virtual-Device Fuzzing
#
# Copyright Qiang Liu <[email protected]>
#
# This work is licensed under the terms of the GNU GPL, version 2 or later.
#
SANITIZERS = -fsanitize=address,undefined
CFLAGS ?= -g -fPIE -fno-omit-frame-pointer -fno-optimize-sibling-calls \
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
videzzo-tool:
CFLAGS="${CFLAGS}" make -C videzzo_tool all
tool: videzzo-tool
toolclean:
make -C videzzo_tool clean
videzzo-core:
make toolclean
make tool
python3 videzzo_types_gen.py ${HYPERVISOR}
clang ${CFLAGS} -o videzzo.o -c videzzo.c
clang ${CFLAGS} -o videzzo_types.i -E videzzo_types.c
clang ${CFLAGS} -o videzzo_types.o -c videzzo_types.c
clang ${CFLAGS} -o videzzo_fork.o -c videzzo_fork.c
ar rcs libvidezzo.a.${HYPERVISOR} videzzo.o videzzo_types.o videzzo_fork.o
videzzo-qemu:
CFLAGS="${CFLAGS} ${SANITIZERS}" HYPERVISOR=qemu make videzzo-core
make -C videzzo_qemu qemu clusterfuzz
videzzo-vbox:
CFLAGS="${CFLAGS} ${SANITIZERS}" HYPERVISOR=vbox make videzzo-core
make -C videzzo_vbox vbox clusterfuzz
videzzo-qemu-coverage:
CFLAGS="${CFLAGS}" HYPERVISOR=qemu make videzzo-core
make -C videzzo_qemu qemu-coverage clusterfuzz-coverage
videzzo-vbox-coverage:
CFLAGS="${CFLAGS}" HYPERVISOR=vbox make videzzo-core
make -C videzzo_vbox vbox-coverage clusterfuzz-coverage
videzzo-qemu-debug:
CFLAGS="${CFLAGS} ${SANITIZERS} -DVIDEZZO_DEBUG" HYPERVISOR=qemu make videzzo-core
make -C videzzo_qemu qemu-debug clusterfuzz-debug
videzzo-vbox-debug:
CFLAGS="${CFLAGS} ${SANITIZERS} -DVIDEZZO_DEBUG" HYPERVISOR=vbox make videzzo-core
make -C videzzo_vbox vbox-debug clusterfuzz-debug
qemu: videzzo-qemu
vbox: videzzo-vbox
qemu-coverage: videzzo-qemu-coverage
vbox-coverage: videzzo-vbox-coverage
qemu-debug: videzzo-qemu-debug
vbox-debug: videzzo-vbox-debug
clean:
rm -rf *.o *.a.* *.i
qemudistclean:
make -C videzzo_qemu distclean
vboxdistclean:
make -C videzzo_vbox distclean
distclean: clean toolclean
make -C videzzo_qemu distclean
make -C videzzo_vbox distclean