WIP FPC-III support
[linux/fpc-iii.git] / tools / power / cpupower / debug / x86_64 / Makefile
blobb1b6c43644e79be755cc867fb91717ecd1e631c3
1 # SPDX-License-Identifier: GPL-2.0
2 OUTPUT=./
3 ifeq ("$(origin O)", "command line")
4 OUTPUT := $(O)/
5 endif
7 DESTDIR =
8 bindir = /usr/bin
10 INSTALL = /usr/bin/install
13 default: all
15 $(OUTPUT)centrino-decode: ../i386/centrino-decode.c
16 $(CC) $(CFLAGS) -o $@ $(LDFLAGS) $<
18 $(OUTPUT)powernow-k8-decode: ../i386/powernow-k8-decode.c
19 $(CC) $(CFLAGS) -o $@ $(LDFLAGS) $<
21 all: $(OUTPUT)centrino-decode $(OUTPUT)powernow-k8-decode
23 clean:
24 rm -rf $(OUTPUT)centrino-decode $(OUTPUT)powernow-k8-decode
26 install:
27 $(INSTALL) -d $(DESTDIR)${bindir}
28 $(INSTALL) $(OUTPUT)centrino-decode $(DESTDIR)${bindir}
29 $(INSTALL) $(OUTPUT)powernow-k8-decode $(DESTDIR)${bindir}
31 .PHONY: all default clean install