kinetis_ke: Switch to standard build variables
[openocd.git] / contrib / loaders / flash / kinetis_ke / Makefile
1 BIN2C = ../../../../src/helper/bin2char.sh
2
3 CROSS_COMPILE ?= arm-none-eabi-
4 AS = $(CROSS_COMPILE)as
5 OBJCOPY = $(CROSS_COMPILE)objcopy
6
7 all: kinetis_ke_flash.inc kinetis_ke_watchdog.inc
8
9 %.elf: %.s
10 $(AS) $< -o $@
11
12 %.bin: %.elf
13 $(OBJCOPY) -Obinary $< $@
14
15 %.inc: %.bin
16 $(BIN2C) < $< > $@
17
18 clean:
19 -rm -f *.elf *.bin *.inc