commit 796627f94ce9100afdc1973ffb5d64a83ba20e5d parent 6d366168dd82dc32fe0ef335bdaec73fedbd564e Author: Matsuda Kenji <info@mtkn.jp> Date: Thu, 27 Apr 2023 08:46:51 +0900 rename output file Diffstat:
M | ex2/Makefile | | | 16 | ++++++++-------- |
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/ex2/Makefile b/ex2/Makefile @@ -9,7 +9,7 @@ ASFLAGS = $(MCPU) CFLAGS = $(MCPU) -ffreestanding -nostartfiles -O0 -fpic -mthumb -c LDFLAGS = --no-relax -nostdlib -all: tools led.uf2 +all: tools a.uf2 clean: rm -f *.o *.elf *.uf2 *.bin @@ -18,19 +18,19 @@ clean: .s.o: $(AS) $(ASFLAGS) -o $@ $< -led.elf: boot2.o main.o memmap.ld +a.elf: boot2.o main.o memmap.ld $(LD) $(LDFLAGS) -o $@ -T memmap.ld boot2.o main.o -led.bin: led.elf - $(OBJCOPY) -O binary led.elf $@ +a.bin: a.elf + $(OBJCOPY) -O binary a.elf $@ -led.uf2: led.bin - $(BINCRC) led.bin led_crc.bin - $(BIN2UF2) led_crc.bin $@ +a.uf2: a.bin + $(BINCRC) a.bin a_crc.bin + $(BIN2UF2) a_crc.bin $@ flash: all mount /dev/disk/by-label/RPI-RP2 /mnt - cp led.uf2 /mnt + cp a.uf2 /mnt tools: cd ../tools && make