commit 605194f0e3891c5ac5441b2a9ac33760a92b633c
parent ef0db8129a2cb04d64c40c098e9b28ab7fd9217e
Author: Matsuda Kenji <info@mtkn.jp>
Date: Sun, 9 Apr 2023 08:26:20 +0900
refactor Makefile
Diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
@@ -24,13 +24,11 @@ clean:
start.o: start.s
$(AS) $(ASFLAGS) -o start.o start.s
-boot2_crc.o: boot2/boot2_crc.s
- $(AS) $(ASFLAGS) -o boot2_crc.o boot2/boot2_crc.s
-
-boot2/boot2_crc.s: boot2/boot2_sram.s bincrc
+boot2_crc.o: boot2/boot2_sram.s bincrc
$(AS) $(ASFLAGS) -o boot2/boot2.o boot2/boot2_sram.s
$(OBJCOPY) -O binary boot2/boot2.o boot2/boot2.bin
./bincrc boot2/boot2.bin boot2/boot2_crc.s
+ $(AS) $(ASFLAGS) -o boot2_crc.o boot2/boot2_crc.s
main.o: main.c
$(CC) $(CFLAGS) -o main.o main.c