-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Franck Bui-Huu
authored and
Dominik Brodowski
committed
Mar 3, 2012
1 parent
62d5a67
commit 7490ca1
Showing
2 changed files
with
26 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,26 @@ | ||
OUTPUT=./ | ||
ifeq ("$(origin O)", "command line") | ||
OUTPUT := $(O)/ | ||
endif | ||
|
||
|
||
default: all | ||
|
||
centrino-decode: centrino-decode.c | ||
$(CC) $(CFLAGS) -o centrino-decode centrino-decode.c | ||
$(OUTPUT)centrino-decode: centrino-decode.c | ||
$(CC) $(CFLAGS) -o $@ centrino-decode.c | ||
|
||
dump_psb: dump_psb.c | ||
$(CC) $(CFLAGS) -o dump_psb dump_psb.c | ||
$(OUTPUT)dump_psb: dump_psb.c | ||
$(CC) $(CFLAGS) -o $@ dump_psb.c | ||
|
||
intel_gsic: intel_gsic.c | ||
$(CC) $(CFLAGS) -o intel_gsic -llrmi intel_gsic.c | ||
$(OUTPUT)intel_gsic: intel_gsic.c | ||
$(CC) $(CFLAGS) -o $@ -llrmi intel_gsic.c | ||
|
||
powernow-k8-decode: powernow-k8-decode.c | ||
$(CC) $(CFLAGS) -o powernow-k8-decode powernow-k8-decode.c | ||
$(OUTPUT)powernow-k8-decode: powernow-k8-decode.c | ||
$(CC) $(CFLAGS) -o $@ powernow-k8-decode.c | ||
|
||
all: centrino-decode dump_psb intel_gsic powernow-k8-decode | ||
all: $(OUTPUT)centrino-decode $(OUTPUT)dump_psb $(OUTPUT)intel_gsic $(OUTPUT)powernow-k8-decode | ||
|
||
clean: | ||
rm -rf centrino-decode dump_psb intel_gsic powernow-k8-decode | ||
rm -rf $(OUTPUT){centrino-decode,dump_psb,intel_gsic,powernow-k8-decode} | ||
|
||
.PHONY: all default clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |