8000 Makefile: don't build unused .hex file. · pda/arduino-zero-without-ide@17fa71f · GitHub
[go: up one dir, main page]

Skip to content

Commit 17fa71f

Browse files
committed
Makefile: don't build unused .hex file.
1 parent 39c58cf commit 17fa71f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Makefile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,7 @@ SRCS += asf/sam0/utils/cmsis/samd21/source/gcc/startup_samd21.c
5252
SRCS += asf/sam0/utils/cmsis/samd21/source/system_samd21.c
5353

5454
.PHONY: all
55-
all: $(PROJ_NAME).hex
56-
57-
$(PROJ_NAME).hex: $(PROJ_NAME).bin
58-
$(OBJCOPY) -I binary -O ihex $^ $@
55+
all: $(PROJ_NAME).bin
5956

6057
$(PROJ_NAME).bin: $(PROJ_NAME).elf $(PROJ_NAME).lst
6158
$(OBJCOPY) $< $@ -O binary
@@ -69,7 +66,7 @@ $(PROJ_NAME).elf: $(SRCS)
6966

7067
.PHONY: clean
7168
clean:
72-
rm -f -- *.hex *.bin *.elf *.o *.lst
69+
rm -f -- *.bin *.elf *.o *.lst
7370

7471
.PHONY: upload
7572
upload:

0 commit comments

Comments
 (0)