Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. TARGETS = breakpoints
  2. TARGETS += cpu-hotplug
  3. TARGETS += efivarfs
  4. TARGETS += exec
  5. TARGETS += firmware
  6. TARGETS += ftrace
  7. TARGETS += kcmp
  8. TARGETS += memfd
  9. TARGETS += memory-hotplug
  10. TARGETS += mount
  11. TARGETS += mqueue
  12. TARGETS += net
  13. TARGETS += powerpc
  14. TARGETS += ptrace
  15. TARGETS += size
  16. TARGETS += sysctl
  17. TARGETS += timers
  18. TARGETS += user
  19. TARGETS += vm
  20. #Please keep the TARGETS list alphabetically sorted
  21. TARGETS_HOTPLUG = cpu-hotplug
  22. TARGETS_HOTPLUG += memory-hotplug
  23. # Clear LDFLAGS and MAKEFLAGS if called from main
  24. # Makefile to avoid test build failures when test
  25. # Makefile doesn't have explicit build rules.
  26. ifeq (1,$(MAKELEVEL))
  27. undefine LDFLAGS
  28. override MAKEFLAGS =
  29. endif
  30. all:
  31. for TARGET in $(TARGETS); do \
  32. make -C $$TARGET; \
  33. done;
  34. run_tests: all
  35. for TARGET in $(TARGETS); do \
  36. make -C $$TARGET run_tests; \
  37. done;
  38. hotplug:
  39. for TARGET in $(TARGETS_HOTPLUG); do \
  40. make -C $$TARGET; \
  41. done;
  42. run_hotplug: hotplug
  43. for TARGET in $(TARGETS_HOTPLUG); do \
  44. make -C $$TARGET run_full_test; \
  45. done;
  46. clean_hotplug:
  47. for TARGET in $(TARGETS_HOTPLUG); do \
  48. make -C $$TARGET clean; \
  49. done;
  50. clean:
  51. for TARGET in $(TARGETS); do \
  52. make -C $$TARGET clean; \
  53. done;