2016-03-05 18:14:52 +00:00
|
|
|
BIN2C = ../../../../src/helper/bin2char.sh
|
|
|
|
|
2016-05-22 17:12:20 +00:00
|
|
|
CROSS_COMPILE ?= arm-none-eabi-
|
|
|
|
AS = $(CROSS_COMPILE)as
|
|
|
|
OBJCOPY = $(CROSS_COMPILE)objcopy
|
2016-03-05 18:14:52 +00:00
|
|
|
|
2016-05-22 17:12:20 +00:00
|
|
|
all: kinetis_ke_flash.inc kinetis_ke_watchdog.inc
|
2016-03-05 18:14:52 +00:00
|
|
|
|
2016-05-22 17:12:20 +00:00
|
|
|
%.elf: %.s
|
|
|
|
$(AS) $< -o $@
|
2016-03-05 18:14:52 +00:00
|
|
|
|
2016-05-22 17:12:20 +00:00
|
|
|
%.bin: %.elf
|
|
|
|
$(OBJCOPY) -Obinary $< $@
|
2016-03-05 18:14:52 +00:00
|
|
|
|
2016-05-22 17:12:20 +00:00
|
|
|
%.inc: %.bin
|
2016-03-05 18:14:52 +00:00
|
|
|
$(BIN2C) < $< > $@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -f *.elf *.bin *.inc
|