perf tools: Fix build failure on 32-bit arch
[deliverable/linux.git] / tools / Makefile
CommitLineData
16671c1e
JO
1# Some of the tools (perf) use same make variables
2# as in kernel build.
3export srctree=
4export objtree=
5
2363ecb1
BP
6include scripts/Makefile.include
7
d5dd8afb
BP
8help:
9 @echo 'Possible targets:'
10 @echo ''
a0c4acc0 11 @echo ' acpi - ACPI tools'
92e015b1 12 @echo ' cgroup - cgroup tools'
d5dd8afb
BP
13 @echo ' cpupower - a tool for all things x86 CPU power'
14 @echo ' firewire - the userspace part of nosy, an IEEE-1394 traffic sniffer'
3eb2094c 15 @echo ' hv - tools used when in Hyper-V clients'
d5dd8afb
BP
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'
e306e2c1 22 @echo ' net - misc networking tools'
d5dd8afb
BP
23 @echo ' vm - misc vm tools'
24 @echo ' x86_energy_perf_policy - Intel energy policy tool'
94f69966 25 @echo ' tmon - thermal monitoring and tuning tool'
d5dd8afb 26 @echo ''
ea01fa9f 27 @echo 'You can do:'
7e010562 28 @echo ' $$ make -C tools/ <tool>_install'
ea01fa9f
BP
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 ''
d5dd8afb
BP
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
a0c4acc0
LZ
43acpi: FORCE
44 $(call descend,power/$@)
45
2363ecb1 46cpupower: FORCE
ca9dfc6c 47 $(call descend,power/$@)
2363ecb1 48
3eb2094c 49cgroup firewire hv guest usb virtio vm net: FORCE
85c66be1
BP
50 $(call descend,$@)
51
0041898e
LC
52liblockdep: FORCE
53 $(call descend,lib/lockdep)
54
379a9a28 55libapi: FORCE
553873e1 56 $(call descend,lib/api)
85c66be1 57
16671c1e
JO
58# The perf build does not follow the descend function setup,
59# invoking it via it's own make rule.
60PERF_O = $(if $(O),$(O)/tools/perf,)
61
379a9a28 62perf: FORCE
16671c1e
JO
63 $(Q)mkdir -p $(PERF_O) .
64 $(Q)$(MAKE) --no-print-directory -C perf O=$(PERF_O) subdir=
2363ecb1
BP
65
66selftests: FORCE
ca9dfc6c 67 $(call descend,testing/$@)
2363ecb1
BP
68
69turbostat x86_energy_perf_policy: FORCE
ca9dfc6c 70 $(call descend,power/x86/$@)
2363ecb1 71
94f69966
JP
72tmon: FORCE
73 $(call descend,thermal/$@)
74
a0c4acc0
LZ
75acpi_install:
76 $(call descend,power/$(@:_install=),install)
77
2363ecb1 78cpupower_install:
ca9dfc6c 79 $(call descend,power/$(@:_install=),install)
2363ecb1 80
3eb2094c 81cgroup_install firewire_install hv_install lguest_install perf_install usb_install virtio_install vm_install net_install:
ca9dfc6c 82 $(call descend,$(@:_install=),install)
2363ecb1
BP
83
84selftests_install:
ca9dfc6c 85 $(call descend,testing/$(@:_clean=),install)
2363ecb1
BP
86
87turbostat_install x86_energy_perf_policy_install:
ca9dfc6c 88 $(call descend,power/x86/$(@:_install=),install)
2363ecb1 89
94f69966
JP
90tmon_install:
91 $(call descend,thermal/$(@:_install=),install)
92
3eb2094c 93install: acpi_install cgroup_install cpupower_install hv_install firewire_install lguest_install \
92e015b1 94 perf_install selftests_install turbostat_install usb_install \
94f69966
JP
95 virtio_install vm_install net_install x86_energy_perf_policy_install \
96 tmon
2363ecb1 97
a0c4acc0
LZ
98acpi_clean:
99 $(call descend,power/acpi,clean)
100
2363ecb1 101cpupower_clean:
ca9dfc6c 102 $(call descend,power/cpupower,clean)
2363ecb1 103
3eb2094c 104cgroup_clean hv_clean firewire_clean lguest_clean usb_clean virtio_clean vm_clean net_clean:
85c66be1
BP
105 $(call descend,$(@:_clean=),clean)
106
0041898e
LC
107liblockdep_clean:
108 $(call descend,lib/lockdep,clean)
109
379a9a28 110libapi_clean:
553873e1 111 $(call descend,lib/api,clean)
85c66be1 112
379a9a28 113perf_clean:
ca9dfc6c 114 $(call descend,$(@:_clean=),clean)
2363ecb1
BP
115
116selftests_clean:
ca9dfc6c 117 $(call descend,testing/$(@:_clean=),clean)
2363ecb1
BP
118
119turbostat_clean x86_energy_perf_policy_clean:
ca9dfc6c 120 $(call descend,power/x86/$(@:_clean=),clean)
2363ecb1 121
94f69966
JP
122tmon_clean:
123 $(call descend,thermal/tmon,clean)
124
3eb2094c 125clean: acpi_clean cgroup_clean cpupower_clean hv_clean firewire_clean lguest_clean \
a0c4acc0 126 perf_clean selftests_clean turbostat_clean usb_clean virtio_clean \
94f69966 127 vm_clean net_clean x86_energy_perf_policy_clean tmon_clean
2363ecb1
BP
128
129.PHONY: FORCE
This page took 0.15 seconds and 5 git commands to generate.