Skip to content

Commit

Permalink
Renamed the binary to have suffix .elf. Makes life easier. :)
Browse files Browse the repository at this point in the history
  • Loading branch information
esden authored and flixr committed Apr 22, 2013
1 parent 98dab2c commit 22af606
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Makefile
Expand Up @@ -45,17 +45,17 @@ endif

all: luftboot.bin luftboot.hex

luftboot: luftboot.o
luftboot.elf: luftboot.o
$(CC) -o $@ $^ $(LDFLAGS_BOOT)

luftboot.bin: luftboot
luftboot.bin: luftboot.elf
$(OBJCOPY) -O binary $^ $@

luftboot.hex: luftboot
luftboot.hex: luftboot.elf
$(OBJCOPY) -O ihex $^ $@

clean:
-rm -rf luftboot.o luftboot luftboot.bin luftboot.hex mapfile
-rm -rf luftboot.o luftboot.elf luftboot.bin luftboot.hex mapfile

ifeq ($(BMP_PORT),)
flash: luftboot.hex
Expand All @@ -68,7 +68,7 @@ flash: luftboot.hex
-c reset \
-c shutdown
else
flash: luftboot
flash: luftboot.elf
@echo "Using Black Magic Probe"
@echo "Using GDB = $(GDB)"
@echo " BMP\t$<"
Expand Down

0 comments on commit 22af606

Please sign in to comment.