contrib/loaders: Add umbrella Makefile
[openocd.git] / contrib / loaders / Makefile
1 .PHONY: arm clean-arm
2
3 all: arm
4
5 common_dirs = \
6 checksum \
7 erase_check \
8 flash/kinetis_ke \
9 watchdog
10
11 ARM_CROSS_COMPILE ?= arm-none-eabi-
12
13 arm_dirs = \
14 flash/fm4 \
15 flash/xmc1xxx
16
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
24
25 clean-arm:
26 for d in $(arm_dirs); do \
27 $(MAKE) -C $$d clean; \
28 done
29
30 clean: clean-arm
31 for d in $(common_dirs); do \
32 $(MAKE) -C $$d clean; \
33 done