Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git...
[deliverable/linux.git] / tools / Makefile
1 # Some of the tools (perf) use same make variables
2 # as in kernel build.
3 export srctree=
4 export objtree=
5
6 include scripts/Makefile.include
7
8 help:
9 @echo 'Possible targets:'
10 @echo ''
11 @echo ' acpi - ACPI tools'
12 @echo ' cgroup - cgroup tools'
13 @echo ' cpupower - a tool for all things x86 CPU power'
14 @echo ' firewire - the userspace part of nosy, an IEEE-1394 traffic sniffer'
15 @echo ' hv - tools used when in Hyper-V clients'
16 @echo ' lguest - a minimal 32-bit x86 hypervisor'
17 @echo ' perf - Linux performance measurement and analysis tool'
18 @echo ' selftests - various kernel selftests'
19 @echo ' turbostat - Intel CPU idle stats and freq reporting tool'
20 @echo ' usb - USB testing tools'
21 @echo ' virtio - vhost test module'
22 @echo ' net - misc networking tools'
23 @echo ' vm - misc vm tools'
24 @echo ' x86_energy_perf_policy - Intel energy policy tool'
25 @echo ' tmon - thermal monitoring and tuning tool'
26 @echo ''
27 @echo 'You can do:'
28 @echo ' $$ make -C tools/ <tool>_install'
29 @echo ''
30 @echo ' from the kernel command line to build and install one of'
31 @echo ' the tools above'
32 @echo ''
33 @echo ' $$ make tools/install'
34 @echo ''
35 @echo ' installs all tools.'
36 @echo ''
37 @echo 'Cleaning targets:'
38 @echo ''
39 @echo ' all of the above with the "_clean" string appended cleans'
40 @echo ' the respective build directory.'
41 @echo ' clean: a summary clean target to clean _all_ folders'
42
43 acpi: FORCE
44 $(call descend,power/$@)
45
46 cpupower: FORCE
47 $(call descend,power/$@)
48
49 cgroup firewire hv guest usb virtio vm net: FORCE
50 $(call descend,$@)
51
52 liblockdep: FORCE
53 $(call descend,lib/lockdep)
54
55 libapi: FORCE
56 $(call descend,lib/api)
57
58 # The perf build does not follow the descend function setup,
59 # invoking it via it's own make rule.
60 PERF_O = $(if $(O),$(O)/tools/perf,)
61
62 perf: FORCE
63 $(Q)mkdir -p $(PERF_O) .
64 $(Q)$(MAKE) --no-print-directory -C perf O=$(PERF_O) subdir=
65
66 selftests: FORCE
67 $(call descend,testing/$@)
68
69 turbostat x86_energy_perf_policy: FORCE
70 $(call descend,power/x86/$@)
71
72 tmon: FORCE
73 $(call descend,thermal/$@)
74
75 acpi_install:
76 $(call descend,power/$(@:_install=),install)
77
78 cpupower_install:
79 $(call descend,power/$(@:_install=),install)
80
81 cgroup_install firewire_install hv_install lguest_install perf_install usb_install virtio_install vm_install net_install:
82 $(call descend,$(@:_install=),install)
83
84 selftests_install:
85 $(call descend,testing/$(@:_clean=),install)
86
87 turbostat_install x86_energy_perf_policy_install:
88 $(call descend,power/x86/$(@:_install=),install)
89
90 tmon_install:
91 $(call descend,thermal/$(@:_install=),install)
92
93 install: acpi_install cgroup_install cpupower_install hv_install firewire_install lguest_install \
94 perf_install selftests_install turbostat_install usb_install \
95 virtio_install vm_install net_install x86_energy_perf_policy_install \
96 tmon
97
98 acpi_clean:
99 $(call descend,power/acpi,clean)
100
101 cpupower_clean:
102 $(call descend,power/cpupower,clean)
103
104 cgroup_clean hv_clean firewire_clean lguest_clean usb_clean virtio_clean vm_clean net_clean:
105 $(call descend,$(@:_clean=),clean)
106
107 liblockdep_clean:
108 $(call descend,lib/lockdep,clean)
109
110 libapi_clean:
111 $(call descend,lib/api,clean)
112
113 perf_clean:
114 $(call descend,$(@:_clean=),clean)
115
116 selftests_clean:
117 $(call descend,testing/$(@:_clean=),clean)
118
119 turbostat_clean x86_energy_perf_policy_clean:
120 $(call descend,power/x86/$(@:_clean=),clean)
121
122 tmon_clean:
123 $(call descend,thermal/tmon,clean)
124
125 clean: acpi_clean cgroup_clean cpupower_clean hv_clean firewire_clean lguest_clean \
126 perf_clean selftests_clean turbostat_clean usb_clean virtio_clean \
127 vm_clean net_clean x86_energy_perf_policy_clean tmon_clean
128
129 .PHONY: FORCE
This page took 0.057985 seconds and 5 git commands to generate.