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