blob: 7cef633a9ccf37e3a452135966ca7e81a5ee7645 (
plain) (
tree)
|
|
PROG = bootloader
all: $(PROG:=.elf)
%.elf: %.o $(BOARD_OBJS) $(LIBS)
$(CC) $(CFLAGS) $^ -o $@ -T$(BOOTLOADER_LDSCRIPT) -g -Wl,-Map=$*.map
$(OBJCOPY) -O ihex $*.elf $*.hex
$(OBJCOPY) -O binary $*.elf $*.bin
$(OBJDUMP) -St $*.elf >$*.lst
$(SIZE) $*.elf
clean:
rm -f *.o
rm -f *.elf
rm -f *.hex
rm -f *.bin
rm -f *.map
rm -f *.lst
|