2016-05-22 14:57:16 +00:00
|
|
|
.PHONY: arm clean-arm
|
|
|
|
|
2017-11-06 18:56:28 +00:00
|
|
|
all: arm stm8
|
2016-05-22 14:57:16 +00:00
|
|
|
|
|
|
|
common_dirs = \
|
|
|
|
checksum \
|
|
|
|
erase_check \
|
|
|
|
watchdog
|
|
|
|
|
|
|
|
ARM_CROSS_COMPILE ?= arm-none-eabi-
|
|
|
|
|
|
|
|
arm_dirs = \
|
|
|
|
flash/fm4 \
|
2016-05-22 17:12:20 +00:00
|
|
|
flash/kinetis_ke \
|
2016-07-14 18:00:23 +00:00
|
|
|
flash/max32xxx \
|
2016-11-02 21:34:42 +00:00
|
|
|
flash/xmc1xxx \
|
|
|
|
debug/xscale
|
2016-05-22 14:57:16 +00:00
|
|
|
|
|
|
|
arm:
|
|
|
|
for d in $(common_dirs); do \
|
|
|
|
$(MAKE) -C $$d arm; \
|
|
|
|
done
|
|
|
|
for d in $(arm_dirs); do \
|
|
|
|
$(MAKE) -C $$d all CROSS_COMPILE=$(ARM_CROSS_COMPILE); \
|
|
|
|
done
|
|
|
|
|
|
|
|
clean-arm:
|
|
|
|
for d in $(arm_dirs); do \
|
|
|
|
$(MAKE) -C $$d clean; \
|
|
|
|
done
|
|
|
|
|
|
|
|
clean: clean-arm
|
|
|
|
for d in $(common_dirs); do \
|
|
|
|
$(MAKE) -C $$d clean; \
|
|
|
|
done
|
2017-11-06 18:56:28 +00:00
|
|
|
|
|
|
|
stm8:
|
|
|
|
$(MAKE) -C erase_check stm8
|