Makefile 994 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. OUTPUT=./
  2. ifeq ("$(origin O)", "command line")
  3. OUTPUT := $(O)/
  4. endif
  5. DESTDIR =
  6. bindir = /usr/bin
  7. INSTALL = /usr/bin/install
  8. default: all
  9. $(OUTPUT)centrino-decode: centrino-decode.c
  10. $(CC) $(CFLAGS) -o $@ centrino-decode.c
  11. $(OUTPUT)dump_psb: dump_psb.c
  12. $(CC) $(CFLAGS) -o $@ dump_psb.c
  13. $(OUTPUT)intel_gsic: intel_gsic.c
  14. $(CC) $(CFLAGS) -o $@ -llrmi intel_gsic.c
  15. $(OUTPUT)powernow-k8-decode: powernow-k8-decode.c
  16. $(CC) $(CFLAGS) -o $@ powernow-k8-decode.c
  17. all: $(OUTPUT)centrino-decode $(OUTPUT)dump_psb $(OUTPUT)intel_gsic $(OUTPUT)powernow-k8-decode
  18. clean:
  19. rm -rf $(OUTPUT)centrino-decode
  20. rm -rf $(OUTPUT)dump_psb
  21. rm -rf $(OUTPUT)intel_gsic
  22. rm -rf $(OUTPUT)powernow-k8-decode
  23. install:
  24. $(INSTALL) -d $(DESTDIR)${bindir}
  25. $(INSTALL) $(OUTPUT)centrino-decode $(DESTDIR)${bindir}
  26. $(INSTALL) $(OUTPUT)powernow-k8-decode $(DESTDIR)${bindir}
  27. $(INSTALL) $(OUTPUT)dump_psb $(DESTDIR)${bindir}
  28. $(INSTALL) $(OUTPUT)intel_gsic $(DESTDIR)${bindir}
  29. .PHONY: all default clean install