Makefile 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. include scripts/Makefile.include
  2. help:
  3. @echo 'Possible targets:'
  4. @echo ''
  5. @echo ' cpupower - a tool for all things x86 CPU power'
  6. @echo ' firewire - the userspace part of nosy, an IEEE-1394 traffic sniffer'
  7. @echo ' lguest - a minimal 32-bit x86 hypervisor'
  8. @echo ' perf - Linux performance measurement and analysis tool'
  9. @echo ' selftests - various kernel selftests'
  10. @echo ' turbostat - Intel CPU idle stats and freq reporting tool'
  11. @echo ' usb - USB testing tools'
  12. @echo ' virtio - vhost test module'
  13. @echo ' vm - misc vm tools'
  14. @echo ' x86_energy_perf_policy - Intel energy policy tool'
  15. @echo ''
  16. @echo 'Cleaning targets:'
  17. @echo ''
  18. @echo ' all of the above with the "_clean" string appended cleans'
  19. @echo ' the respective build directory.'
  20. @echo ' clean: a summary clean target to clean _all_ folders'
  21. cpupower: FORCE
  22. $(QUIET_SUBDIR0)power/$@/ $(QUIET_SUBDIR1)
  23. firewire lguest perf usb virtio vm: FORCE
  24. $(QUIET_SUBDIR0)$@/ $(QUIET_SUBDIR1)
  25. selftests: FORCE
  26. $(QUIET_SUBDIR0)testing/$@/ $(QUIET_SUBDIR1)
  27. turbostat x86_energy_perf_policy: FORCE
  28. $(QUIET_SUBDIR0)power/x86/$@/ $(QUIET_SUBDIR1)
  29. cpupower_install:
  30. $(QUIET_SUBDIR0)power/$(@:_install=)/ $(QUIET_SUBDIR1) install
  31. firewire_install lguest_install perf_install usb_install virtio_install vm_install:
  32. $(QUIET_SUBDIR0)$(@:_install=)/ $(QUIET_SUBDIR1) install
  33. selftests_install:
  34. $(QUIET_SUBDIR0)testing/$(@:_clean=)/ $(QUIET_SUBDIR1) install
  35. turbostat_install x86_energy_perf_policy_install:
  36. $(QUIET_SUBDIR0)power/x86/$(@:_install=)/ $(QUIET_SUBDIR1) install
  37. install: cpupower_install firewire_install lguest_install perf_install \
  38. selftests_install turbostat_install usb_install virtio_install \
  39. vm_install x86_energy_perf_policy_install
  40. cpupower_clean:
  41. $(QUIET_SUBDIR0)power/cpupower/ $(QUIET_SUBDIR1) clean
  42. firewire_clean lguest_clean perf_clean usb_clean virtio_clean vm_clean:
  43. $(QUIET_SUBDIR0)$(@:_clean=)/ $(QUIET_SUBDIR1) clean
  44. selftests_clean:
  45. $(QUIET_SUBDIR0)testing/$(@:_clean=)/ $(QUIET_SUBDIR1) clean
  46. turbostat_clean x86_energy_perf_policy_clean:
  47. $(QUIET_SUBDIR0)power/x86/$(@:_clean=)/ $(QUIET_SUBDIR1) clean
  48. clean: cpupower_clean firewire_clean lguest_clean perf_clean selftests_clean \
  49. turbostat_clean usb_clean virtio_clean vm_clean \
  50. x86_energy_perf_policy_clean
  51. .PHONY: FORCE