forked from billziss-gh/secfs.test
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (49 loc) · 1.21 KB
/
Makefile
File metadata and controls
61 lines (49 loc) · 1.21 KB
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
Platform = $(shell uname)
Targets = \
tools/bin/bonnie++ \
tools/bin/fsrand.py tools/bin/cmptree.py \
tools/bin/fsracer \
tools/bin/fsstress \
tools/bin/fstest \
tools/bin/fsx \
tools/bin/iozone
ifeq ($(Platform),Darwin)
iozone_tgt = macosx
Targets += tools/bin/fstorture
else ifeq ($(Platform),Linux)
iozone_tgt = linux
endif
all: tools $(Targets)
tools:
mkdir -p tools/bin
tools/bin/bonnie++:
cd bonnie++ && ./configure --prefix $(CURDIR)/tools
make -C bonnie++
cp bonnie++/bonnie++ $@
git clean -dfx bonnie++
tools/bin/fsracer:
cp fsracer/* $(@D)
tools/bin/fsrand.py:
cp fsrand/fsrand.py $(@D)
tools/bin/cmptree.py:
cp fsrand/cmptree.py $(@D)
tools/bin/fsstress:
make -C fsstress
cp fsstress/fsstress $@
git clean -dfx fsstress
tools/bin/fstest:
make -C fstest/fstest
cp fstest/fstest/fstest $@
git clean -dfx "$(shell cd fstest/fstest && pwd -P)"
tools/bin/fstorture:
make -C fstools/src/fstorture
cp fstools/src/fstorture/fstorture $@
git clean -dfx fstools/src/fstorture
tools/bin/fsx:
make -C fstools/src/fsx
cp fstools/src/fsx/fsx $@
git clean -dfx fstools/src/fsx
tools/bin/iozone:
make -C iozone/src/current $(iozone_tgt)
cp iozone/src/current/iozone $@
git clean -dfx iozone/src/current