1*b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 27490ca1eSFranck Bui-HuuOUTPUT=./ 37490ca1eSFranck Bui-Huuifeq ("$(origin O)", "command line") 47490ca1eSFranck Bui-Huu OUTPUT := $(O)/ 57490ca1eSFranck Bui-Huuendif 67490ca1eSFranck Bui-Huu 7f1660338SFranck Bui-HuuDESTDIR = 8f1660338SFranck Bui-Huubindir = /usr/bin 9f1660338SFranck Bui-Huu 10f1660338SFranck Bui-HuuINSTALL = /usr/bin/install 11f1660338SFranck Bui-Huu 127490ca1eSFranck Bui-Huu 137fe2f639SDominik Brodowskidefault: all 147fe2f639SDominik Brodowski 157490ca1eSFranck Bui-Huu$(OUTPUT)centrino-decode: centrino-decode.c 167490ca1eSFranck Bui-Huu $(CC) $(CFLAGS) -o $@ centrino-decode.c 177fe2f639SDominik Brodowski 187490ca1eSFranck Bui-Huu$(OUTPUT)dump_psb: dump_psb.c 197490ca1eSFranck Bui-Huu $(CC) $(CFLAGS) -o $@ dump_psb.c 207fe2f639SDominik Brodowski 217490ca1eSFranck Bui-Huu$(OUTPUT)intel_gsic: intel_gsic.c 227490ca1eSFranck Bui-Huu $(CC) $(CFLAGS) -o $@ -llrmi intel_gsic.c 237fe2f639SDominik Brodowski 247490ca1eSFranck Bui-Huu$(OUTPUT)powernow-k8-decode: powernow-k8-decode.c 257490ca1eSFranck Bui-Huu $(CC) $(CFLAGS) -o $@ powernow-k8-decode.c 267fe2f639SDominik Brodowski 277490ca1eSFranck Bui-Huuall: $(OUTPUT)centrino-decode $(OUTPUT)dump_psb $(OUTPUT)intel_gsic $(OUTPUT)powernow-k8-decode 287fe2f639SDominik Brodowski 297fe2f639SDominik Brodowskiclean: 308c00bdfbSPalmer Cox rm -rf $(OUTPUT)centrino-decode 318c00bdfbSPalmer Cox rm -rf $(OUTPUT)dump_psb 328c00bdfbSPalmer Cox rm -rf $(OUTPUT)intel_gsic 338c00bdfbSPalmer Cox rm -rf $(OUTPUT)powernow-k8-decode 347fe2f639SDominik Brodowski 35f1660338SFranck Bui-Huuinstall: 36f1660338SFranck Bui-Huu $(INSTALL) -d $(DESTDIR)${bindir} 37f1660338SFranck Bui-Huu $(INSTALL) $(OUTPUT)centrino-decode $(DESTDIR)${bindir} 38f1660338SFranck Bui-Huu $(INSTALL) $(OUTPUT)powernow-k8-decode $(DESTDIR)${bindir} 39f1660338SFranck Bui-Huu $(INSTALL) $(OUTPUT)dump_psb $(DESTDIR)${bindir} 40f1660338SFranck Bui-Huu $(INSTALL) $(OUTPUT)intel_gsic $(DESTDIR)${bindir} 41f1660338SFranck Bui-Huu 42f1660338SFranck Bui-Huu.PHONY: all default clean install 43