-
Notifications
You must be signed in to change notification settings - Fork 20
/
Makefile
50 lines (36 loc) · 945 Bytes
/
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
.PHONY: all afl qemu criu fitm debug tests subinit
CRIUPATH?=./criu
all: criu symlink qemu afl tests fitm
subinit:
git submodule init || true
git submodule update || true
afl: subinit
make -C ./AFLplusplus
fitm-qemu-trace:
$(MAKE) criu
cd ./fitm-qemu && ./build_qemu_support.sh
qemu: fitm-qemu-trace criu subinit
# rebuild each time, lightly
cd ./fitm-qemu && ./build_incremental.sh
criu: subinit
make -C ./criu
fitm:
cargo build --release
debug:
cargo build
reset:
sudo rm fitm-state.json || true
sudo rm -rf ./active-state
sudo rm -rf ./saved-states
sudo rm -rf ./cmin-tmp
run: fitm #tests debug
sudo rm -rf ./active-state
sudo rm -rf ./cmin-tmp
sudo ./target/release/fitm $(FITM_ARGS)
sudo chown -R $(USER) ./active_state
sudo chown -R $(USER) ./saved_states
tests:
$(MAKE) -C ./tests
# Invoke with: make symlink CRIUPATH=/home/hirnheiner/repos/criu
symlink: criu
ln -s $(CRIUPATH)/images/rpc.proto || true