1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 OUTPUT=./ 2 OUTPUT=./ 3 ifeq ("$(origin O)", "command line") 3 ifeq ("$(origin O)", "command line") 4 OUTPUT := $(O)/ 4 OUTPUT := $(O)/ 5 endif 5 endif 6 6 7 DESTDIR = 7 DESTDIR = 8 bindir = /usr/bin 8 bindir = /usr/bin 9 9 10 INSTALL = /usr/bin/install 10 INSTALL = /usr/bin/install 11 11 12 12 13 default: all 13 default: all 14 14 15 $(OUTPUT)centrino-decode: centrino-decode.c 15 $(OUTPUT)centrino-decode: centrino-decode.c 16 $(CC) $(CFLAGS) -o $@ centrino-decode. 16 $(CC) $(CFLAGS) -o $@ centrino-decode.c 17 17 18 $(OUTPUT)dump_psb: dump_psb.c 18 $(OUTPUT)dump_psb: dump_psb.c 19 $(CC) $(CFLAGS) -o $@ dump_psb.c 19 $(CC) $(CFLAGS) -o $@ dump_psb.c 20 20 21 $(OUTPUT)intel_gsic: intel_gsic.c 21 $(OUTPUT)intel_gsic: intel_gsic.c 22 $(CC) $(CFLAGS) -o $@ -llrmi intel_gsi 22 $(CC) $(CFLAGS) -o $@ -llrmi intel_gsic.c 23 23 24 $(OUTPUT)powernow-k8-decode: powernow-k8-decod 24 $(OUTPUT)powernow-k8-decode: powernow-k8-decode.c 25 $(CC) $(CFLAGS) -o $@ powernow-k8-deco 25 $(CC) $(CFLAGS) -o $@ powernow-k8-decode.c 26 26 27 all: $(OUTPUT)centrino-decode $(OUTPUT)dump_ps 27 all: $(OUTPUT)centrino-decode $(OUTPUT)dump_psb $(OUTPUT)intel_gsic $(OUTPUT)powernow-k8-decode 28 28 29 clean: 29 clean: 30 rm -rf $(OUTPUT)centrino-decode 30 rm -rf $(OUTPUT)centrino-decode 31 rm -rf $(OUTPUT)dump_psb 31 rm -rf $(OUTPUT)dump_psb 32 rm -rf $(OUTPUT)intel_gsic 32 rm -rf $(OUTPUT)intel_gsic 33 rm -rf $(OUTPUT)powernow-k8-decode 33 rm -rf $(OUTPUT)powernow-k8-decode 34 34 35 install: 35 install: 36 $(INSTALL) -d $(DESTDIR)${bindir} 36 $(INSTALL) -d $(DESTDIR)${bindir} 37 $(INSTALL) $(OUTPUT)centrino-decode $( 37 $(INSTALL) $(OUTPUT)centrino-decode $(DESTDIR)${bindir} 38 $(INSTALL) $(OUTPUT)powernow-k8-decode 38 $(INSTALL) $(OUTPUT)powernow-k8-decode $(DESTDIR)${bindir} 39 $(INSTALL) $(OUTPUT)dump_psb $(DESTDIR 39 $(INSTALL) $(OUTPUT)dump_psb $(DESTDIR)${bindir} 40 $(INSTALL) $(OUTPUT)intel_gsic $(DESTD 40 $(INSTALL) $(OUTPUT)intel_gsic $(DESTDIR)${bindir} 41 41 42 .PHONY: all default clean install 42 .PHONY: all default clean install
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.