This repository was archived by the owner on Jul 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathMakefile.am
78 lines (66 loc) · 3.59 KB
/
Makefile.am
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
bin_PROGRAMS =
if WITH_XEN
bin_PROGRAMS += kfx
kfx_SOURCES = src/main.c \
src/private.c src/private.h \
src/signal.c src/signal.h \
src/vmi.c src/vmi.h \
src/setup.c src/setup.h \
src/afl.c src/afl.h \
src/tracer.c src/tracer.h \
src/forkvm.c src/forkvm.h \
src/ptcov.c src/ptcov.h \
src/kasan_handler.c \
src/sink.h src/sink_handler.h
kfx_LDADD = $(LIBS) $(VMI_LIBS) $(CAPSTONE_LIBS) $(LIBXC_LIBS) $(LIBXL_LIBS) $(XENFMEM_LIBS) $(GLIB_LIBS)
kfx_CFLAGS = -Wall -Wextra -fstack-protector -Wno-override-init -Wno-unused-variable \
-DCODECOV_SIGNAL \
$(CFLAGS) $(VMI_CFLAGS) $(CAPSTONE_CFLAGS) $(LIBXC_CFLAGS) $(LIBXL_CFLAGS) $(XENFMEM_CFLAGS) $(GLIB_CFLAGS)
if STATIC_LIBXDC
noinst_LTLIBRARIES= libxdc.la
libxdc_la_SOURCES= libxdc/src/cfg.c libxdc/src/disassembler.c libxdc/src/tnt_cache.c \
libxdc/src/decoder.c libxdc/src/libxdc.c libxdc/src/mmh3.c libxdc/src/trace_cache.c
libxdc_la_CFLAGS= $(CAPSTONE_CFLAGS) -Ofast -fPIC -fvisibility=hidden -flto -finline-functions
libxdc_la_LDFLAGS= $(CAPSTONE_LIBS) -flto
kfx_LDADD+= libxdc.la
kfx_CFLAGS+= -Ilibxdc
endif
bin_PROGRAMS += forkvm
forkvm_SOURCES = src/forkvm_main.c src/forkvm.c src/forkvm.h
forkvm_LDADD = $(LIBXC_LIBS) $(LIBXL_LIBS) $(GLIB_LIBS)
forkvm_CFLAGS = $(LIBXC_CFLAGS) $(LIBXL_CFLAGS) $(GLIB_CFLAGS)
bin_PROGRAMS += xen-transplant
xen_transplant_SOURCES = src/xen-transplant.c
xen_transplant_LDADD = $(LIBS) $(LIBXC_LIBS) $(GLIB_LIBS)
xen_transplant_CFLAGS = $(CFLAGS) $(LIBXC_CFLAGS) $(GLIB_CFLAGS)
endif
bin_PROGRAMS += rwmem
rwmem_SOURCES = src/rwmem.c src/vmi.c src/vmi.h
rwmem_LDADD = $(LIBS) $(VMI_LIBS) $(GLIB_LIBS)
rwmem_CFLAGS = $(CFLAGS) $(VMI_CFLAGS) $(GLIB_CFLAGS)
bin_PROGRAMS += stepper
stepper_SOURCES = src/stepper.c src/vmi.c src/vmi.h src/signal.c src/signal.h
stepper_LDADD = $(LIBS) $(VMI_LIBS) $(CAPSTONE_LIBS) $(LIBXC_LIBS) $(GLIB_LIBS)
stepper_CFLAGS = $(CFLAGS) $(VMI_CFLAGS) $(CAPSTONE_CFLAGS) $(LIBXC_CFLAGS) $(GLIB_CFLAGS)
bin_PROGRAMS += dmamonitor
dmamonitor_SOURCES = src/dmamonitor.c src/vmi.c src/vmi.h src/signal.c src/signal.h src/city.h \
src/stack_unwind.c src/stack_unwind.h \
src/save-transplant.c src/save-transplant.h
dmamonitor_LDADD = $(LIBS) $(VMI_LIBS) $(CAPSTONE_LIBS) $(LIBXC_LIBS) $(GLIB_LIBS) $(UNWIND_LIBS)
dmamonitor_CFLAGS = $(CFLAGS) $(VMI_CFLAGS) $(CAPSTONE_CFLAGS) $(LIBXC_CFLAGS) $(GLIB_CFLAGS) $(UNWIND_CFLAGS)
bin_PROGRAMS += stack-unwind
stack_unwind_SOURCES = src/stack_unwind_main.c src/stack_unwind.c src/stack_unwind.h
stack_unwind_LDADD = $(LIBS) $(VMI_LIBS) $(GLIB_LIBS) $(UNWIND_LIBS)
stack_unwind_CFLAGS = $(CFLAGS) $(VMI_CFLAGS) $(GLIB_CFLAGS) $(UNWIND_CFLAGS)
bin_PROGRAMS += save-transplant
save_transplant_SOURCES = src/save-transplant-main.c src/save-transplant.c src/save-transplant.h src/vmi.c src/vmi.h
save_transplant_LDADD = $(LIBS) $(VMI_LIBS) $(GLIB_LIBS)
save_transplant_CFLAGS = $(CFLAGS) $(VMI_CFLAGS) $(GLIB_CFLAGS)
bin_PROGRAMS += capture-vmcore
capture_vmcore_SOURCES = src/capture-vmcore.c src/vmi.c src/vmi.h src/signal.c src/signal.h
capture_vmcore_LDADD = $(LIBS) $(VMI_LIBS)
capture_vmcore_CFLAGS = $(CFLAGS) $(VMI_CFLAGS)
ACLOCAL_AMFLAGS=-I m4
EXTRA_DIST = configure.ac README.md \
patches/0001-AFL-Xen-mode.patch \
testmodule/Makefile testmodule/testmodule.c testmodule/doublefetch.c