You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
573 B

  1. .PHONY: arm clean-arm
  2. all: arm stm8
  3. common_dirs = \
  4. checksum \
  5. erase_check \
  6. watchdog
  7. ARM_CROSS_COMPILE ?= arm-none-eabi-
  8. arm_dirs = \
  9. flash/fm4 \
  10. flash/kinetis_ke \
  11. flash/max32xxx \
  12. flash/xmc1xxx \
  13. debug/xscale
  14. arm:
  15. for d in $(common_dirs); do \
  16. $(MAKE) -C $$d arm; \
  17. done
  18. for d in $(arm_dirs); do \
  19. $(MAKE) -C $$d all CROSS_COMPILE=$(ARM_CROSS_COMPILE); \
  20. done
  21. clean-arm:
  22. for d in $(arm_dirs); do \
  23. $(MAKE) -C $$d clean; \
  24. done
  25. clean: clean-arm
  26. for d in $(common_dirs); do \
  27. $(MAKE) -C $$d clean; \
  28. done
  29. stm8:
  30. $(MAKE) -C erase_check stm8