kinetis_ke: Switch to standard build variables
[openocd.git] / contrib / loaders / Makefile
blob2e5eba8c25e827903af6b4f7b3df4eeb37f1b982
1 .PHONY: arm clean-arm
3 all: arm
5 common_dirs = \
6 checksum \
7 erase_check \
8 watchdog
10 ARM_CROSS_COMPILE ?= arm-none-eabi-
12 arm_dirs = \
13 flash/fm4 \
14 flash/kinetis_ke \
15 flash/xmc1xxx
17 arm:
18 for d in $(common_dirs); do \
19 $(MAKE) -C $$d arm; \
20 done
21 for d in $(arm_dirs); do \
22 $(MAKE) -C $$d all CROSS_COMPILE=$(ARM_CROSS_COMPILE); \
23 done
25 clean-arm:
26 for d in $(arm_dirs); do \
27 $(MAKE) -C $$d clean; \
28 done
30 clean: clean-arm
31 for d in $(common_dirs); do \
32 $(MAKE) -C $$d clean; \
33 done