You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
351 B

  1. BIN2C = ../../../../src/helper/bin2char.sh
  2. CROSS_COMPILE ?= arm-none-eabi-
  3. AS = $(CROSS_COMPILE)as
  4. OBJCOPY = $(CROSS_COMPILE)objcopy
  5. AFLAGS = -EL
  6. all: kinetis_ke_flash.inc kinetis_ke_watchdog.inc
  7. %.elf: %.s
  8. $(AS) $(AFLAGS) $< -o $@
  9. %.bin: %.elf
  10. $(OBJCOPY) -Obinary $< $@
  11. %.inc: %.bin
  12. $(BIN2C) < $< > $@
  13. clean:
  14. -rm -f *.elf *.bin *.inc