18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ciOUTPUT=./ 38c2ecf20Sopenharmony_ciifeq ("$(origin O)", "command line") 48c2ecf20Sopenharmony_ci OUTPUT := $(O)/ 58c2ecf20Sopenharmony_ciendif 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ciDESTDIR = 88c2ecf20Sopenharmony_cibindir = /usr/bin 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ciINSTALL = /usr/bin/install 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_cidefault: all 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci$(OUTPUT)centrino-decode: centrino-decode.c 168c2ecf20Sopenharmony_ci $(CC) $(CFLAGS) -o $@ centrino-decode.c 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci$(OUTPUT)dump_psb: dump_psb.c 198c2ecf20Sopenharmony_ci $(CC) $(CFLAGS) -o $@ dump_psb.c 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci$(OUTPUT)intel_gsic: intel_gsic.c 228c2ecf20Sopenharmony_ci $(CC) $(CFLAGS) -o $@ -llrmi intel_gsic.c 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci$(OUTPUT)powernow-k8-decode: powernow-k8-decode.c 258c2ecf20Sopenharmony_ci $(CC) $(CFLAGS) -o $@ powernow-k8-decode.c 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ciall: $(OUTPUT)centrino-decode $(OUTPUT)dump_psb $(OUTPUT)intel_gsic $(OUTPUT)powernow-k8-decode 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ciclean: 308c2ecf20Sopenharmony_ci rm -rf $(OUTPUT)centrino-decode 318c2ecf20Sopenharmony_ci rm -rf $(OUTPUT)dump_psb 328c2ecf20Sopenharmony_ci rm -rf $(OUTPUT)intel_gsic 338c2ecf20Sopenharmony_ci rm -rf $(OUTPUT)powernow-k8-decode 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ciinstall: 368c2ecf20Sopenharmony_ci $(INSTALL) -d $(DESTDIR)${bindir} 378c2ecf20Sopenharmony_ci $(INSTALL) $(OUTPUT)centrino-decode $(DESTDIR)${bindir} 388c2ecf20Sopenharmony_ci $(INSTALL) $(OUTPUT)powernow-k8-decode $(DESTDIR)${bindir} 398c2ecf20Sopenharmony_ci $(INSTALL) $(OUTPUT)dump_psb $(DESTDIR)${bindir} 408c2ecf20Sopenharmony_ci $(INSTALL) $(OUTPUT)intel_gsic $(DESTDIR)${bindir} 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_ci.PHONY: all default clean install 43