Skip to content

Commit

Permalink
build dir.. cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
haarer committed May 11, 2024
1 parent 8d2684b commit 747437c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions examples/arm-none-eabi-example-cpp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,11 @@ build/%.o: %.c

# clean project
clean:
rm -f $(OBJ) $(AOBJ) *.hex *.bin build/*.elf build/*.map *~ build/*.lst
rm -f $(OBJ) $(AOBJ) *.hex build/*.bin build/*.elf build/*.map *~ build/*.lst build/*.dis

# calculate sizes for program
size: build/$(TARGET).elf
$(SIZE) build/$(OBJ) $(AOBJ) $<
@echo ""
$(SIZE) --format avr --mcu $(CPU) $<
$(SIZE) $(OBJ) $(AOBJ) $<

# print target info and generate lss
info: build/$(TARGET).elf
Expand All @@ -73,7 +71,7 @@ info: build/$(TARGET).elf

%.bin: %.elf
arm-none-eabi-objcopy -O binary $< $@
arm-none-eabi-objdump -d $< >$(TARGET).dis
arm-none-eabi-objdump -d $< >build/$(TARGET).dis

flash: build/$(TARGET).bin
st-flash write $< 0x8000000
Expand Down

0 comments on commit 747437c

Please sign in to comment.