-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
64 lines (47 loc) · 1.59 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
.PHONY: all host-init snic-init host-lib snic-lib redownload kernfs libfs bench-micro mkfs spdk-init
all:
$(error Argument required)
host-init: redownload host-lib spdk-init kernfs libfs bench-micro mkfs
snic-init: redownload snic-lib kernfs
redownload:
cd libfs/lib && make redownload
cd kernfs/lib && make redownload
host-lib:
cd libfs/lib && make all
cd kernfs/lib && make all
snic-lib:
cd libfs/lib && make snic-all
kernfs:
cd kernfs && make clean && make -j`nproc` && cd tests && make clean && make -j`nproc`
libfs:
cd libfs && make clean && make -j`nproc` && cd tests && make clean && make -j`nproc`
bench-micro:
cd bench/micro && make
parsec:
cd bench/parsec && if [ -d parsec-3.0 ]; then make; else make redownload && make; fi
mkfs:
cd kernfs/tests && sudo ./mkfs.sh
spdk-init:
sudo kernfs/lib/spdk/scripts/setup.sh
rdma:
cd libfs/lib/rdma && make clean && make
kernfs-linefs:
# Modify Makefiles. Replace "DFS = assise" to "DFS = linefs".
@echo "Building LineFS SharedFS/NICFS..."
sed -i 's/DFS = assise/DFS = linefs/g' kernfs/Makefile
make kernfs
kernfs-assise:
# Modify Makefiles. Replace "DFS = linefs" to "DFS = assise".
@echo "Building Assise SharedFS..."
sed -i 's/DFS = linefs/DFS = assise/g' kernfs/Makefile
make kernfs
libfs-linefs:
# Modify Makefiles. Replace "DFS = assise" to "DFS = linefs".
@echo "Building LineFS LibFS..."
sed -i 's/DFS = assise/DFS = linefs/g' libfs/Makefile
make libfs
libfs-assise:
# Modify Makefiles. Replace "DFS = linefs" to "DFS = assise".
@echo "Building Assise LibFS..."
sed -i 's/DFS = linefs/DFS = assise/g' libfs/Makefile
make libfs