1 CROSS_COMPILE=arm-linux-gnueabihf-
2 BIN2C = ../../../../src/helper/bin2char.sh
10 CC=$(CROSS_COMPILE)gcc
11 OBJCOPY=$(CROSS_COMPILE)objcopy
12 OBJDUMP=$(CROSS_COMPILE)objdump
15 SIZE=$(CROSS_COMPILE)size
17 CFLAGS=-Os -Wall -nostartfiles -marm -nostdinc -ffreestanding -mabi=aapcs-linux -mword-relocations -fno-pic -mno-unaligned-access -ffunction-sections -fdata-sections -fno-common -msoft-float -pipe -march=armv7-a -mtune=generic-armv7-a
18 LDFLAGS=-T$(LDS) -nostdlib -Map=$(TGT).map
23 $(CC) $(CFLAGS) -c $^ -o $@
26 $(LD) $(LDFLAGS) $^ -o $@
28 $(TGT).bin: $(TGT).elf
29 $(OBJCOPY) $< -O binary $@
30 $(NM) -n $(TGT).elf > $(TGT).sym
33 $(TGT).inc: $(TGT).bin
37 rm -rf *.elf *.hex *.map *.o *.disasm *.sym