edited Makefile

This commit is contained in:
2015-12-08 21:31:41 +01:00
parent 17ab424dcf
commit 246a94305e
4 changed files with 20 additions and 4 deletions

View File

@@ -25,6 +25,7 @@ INCLUDEPATH += -IFATFS -IFATFS/shimatta_sdio_driver
###################################################################################
CC=arm-none-eabi-gcc
OBJCOPY=arm-none-eabi-objcopy
OBJDUMP=arm-none-eabi-objdump
LFLAGS = -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork
@@ -60,7 +61,10 @@ $(target).elf: $(OBJ)
.PHONY: qtproject clean mrproper objcopy
.PHONY: qtproject clean mrproper objcopy disassemble
disassemble: $(target).elf
$(OBJDUMP) -D -s $< > $(target).lss
objcopy: $(target).bin $(target).hex
@@ -68,7 +72,7 @@ mrproper:
rm -f $(target).pro
clean:
rm -f $(target).elf $(target).bin $(target).hex $(OBJ) $(mapfile).map
rm -f $(target).elf $(target).bin $(target).hex $(OBJ) $(mapfile).map $(target).lss
qtproject:
echo -e "TEMPLATE = app\nCONFIG -= console app_bundle qt" > $(target).pro
echo -e "SOURCES += $(CFILES) $(ASFILES)" >> $(target).pro