contrib: add GPL license tag on files that miss it
[fw/openocd] / contrib / loaders / flash / kinetis / Makefile
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 BIN2C = ../../../../src/helper/bin2char.sh
4
5 CROSS_COMPILE ?= arm-none-eabi-
6 AS      = $(CROSS_COMPILE)as
7 OBJCOPY = $(CROSS_COMPILE)objcopy
8
9 all: kinetis_flash.inc
10
11 %.elf: %.s
12         $(AS) $< -o $@
13
14 %.bin: %.elf
15         $(OBJCOPY) -Obinary $< $@
16
17 %.inc: %.bin
18         $(BIN2C) < $< > $@
19
20 clean:
21         -rm -f *.elf *.bin *.inc