-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
74 lines (55 loc) · 1.24 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
PROJECT=fio-tests
VERSION = 0
PATCHLEVEL = 1
SUBLEVEL = 0
EXTRAVERSION = -rc1
all: ini
ifeq ($(V),1)
Q=
NQ=true
else
Q=@
NQ=echo
endif
ifeq ($(D),)
D := ./
endif
ifeq ($(DEV),)
DEV=/dev/nvme0n1
endif
export DEV
TOPDIR=./
export KCONFIG_DIR=$(CURDIR)/scripts/kconfig
include $(KCONFIG_DIR)/kconfig.Makefile
include Makefile.subtrees
INCLUDES = -I include/
CFLAGS += $(INCLUDES)
obj-y += tests/
include scripts/objects.Makefile
ini: $(all-subdirs) precondition;
clean: $(clean-subdirs);
csv: $(csv-subdirs);
ssv: $(ssv-subdirs);
graph: $(graph-subdirs);
precondition:
$(Q)$(MAKE) -C pre-conditioning/ $@
check:
@$(CURDIR)/scripts/run-all-fio.sh -c -d $(D)
run:
$(Q)$(MAKE) -C pre-conditioning/ clean
@$(CURDIR)/scripts/run-all-fio.sh -d $(D)
dryrun:
$(Q)$(MAKE) -C pre-conditioning/ clean
@$(CURDIR)/scripts/run-all-fio.sh -n -d $(D)
demo: tests-demo-results.tar.xz
@tar Jxvf tests-demo-results.tar.xz
help:
$(Q)$(MAKE) -s -f scripts/build.Makefile $@
mrproper: clean
$(Q)$(MAKE) -C pre-conditioning/ $@
$(Q)$(MAKE) -s -f scripts/build.Makefile clean
$(Q)$(MAKE) -s -f scripts/build.Makefile $@
$(Q)$(MAKE) -s -C tests/ mrproper
@rm -rf logs
export TOPDIR
.PHONY: all precondition ini check run dryrun clean mrproper help demo $(PHONY)