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