flash Kinetis: new KVx family added
[openocd.git] / contrib / loaders / watchdog / Makefile
1 BIN2C = ../../../src/helper/bin2char.sh
2
3 ARM_CROSS_COMPILE ?= arm-none-eabi-
4 ARM_AS ?= $(ARM_CROSS_COMPILE)as
5 ARM_OBJCOPY ?= $(ARM_CROSS_COMPILE)objcopy
6
7 arm: armv7m_kinetis_wdog.inc
8
9 armv7m_%.elf: armv7m_%.s
10 $(ARM_AS) -mthumb $< -o $@
11
12 armv7m_%.bin: armv7m_%.elf
13 $(ARM_OBJCOPY) -Obinary $< $@
14
15 armv7m_%.inc: armv7m_%.bin
16 $(BIN2C) < $< > $@
17
18 clean:
19 -rm -f *.elf *.bin *.inc