diff options
author | Franck Bui-Huu <fbuihuu@gmail.com> | 2012-02-07 20:15:56 +0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2012-03-03 17:40:11 +0400 |
commit | 7490ca1ea5af18bd0ceb3b96ddb2f10b09e08b5d (patch) | |
tree | 6baf8727f77bc2eeeb75349a12fe4e7cf5c620a5 /tools/power/cpupower/debug/x86_64 | |
parent | 62d5a67d65d69d1c8ba6d2638193bc2864c14fdf (diff) | |
download | linux-7490ca1ea5af18bd0ceb3b96ddb2f10b09e08b5d.tar.xz |
cpupower tools: allow to build debug tools in a separate directory too
Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'tools/power/cpupower/debug/x86_64')
-rw-r--r-- | tools/power/cpupower/debug/x86_64/Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/tools/power/cpupower/debug/x86_64/Makefile b/tools/power/cpupower/debug/x86_64/Makefile index 3326217dd311..8e26d67525cd 100644 --- a/tools/power/cpupower/debug/x86_64/Makefile +++ b/tools/power/cpupower/debug/x86_64/Makefile @@ -1,14 +1,20 @@ +OUTPUT=./ +ifeq ("$(origin O)", "command line") + OUTPUT := $(O)/ +endif + + default: all -centrino-decode: ../i386/centrino-decode.c +$(OUTPUT)centrino-decode: ../i386/centrino-decode.c $(CC) $(CFLAGS) -o $@ $< -powernow-k8-decode: ../i386/powernow-k8-decode.c +$(OUTPUT)powernow-k8-decode: ../i386/powernow-k8-decode.c $(CC) $(CFLAGS) -o $@ $< -all: centrino-decode powernow-k8-decode +all: $(OUTPUT)centrino-decode $(OUTPUT)powernow-k8-decode clean: - rm -rf centrino-decode powernow-k8-decode + rm -rf $(OUTPUT)centrino-decode $(OUTPUT)powernow-k8-decode .PHONY: all default clean |