From 859888d7a28e5d2bad9f832602c84969d5793f6c Mon Sep 17 00:00:00 2001 From: fengbh <1953356163@qq.com> Date: Sun, 14 Jul 2024 01:16:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E5=8A=A0=E9=80=9A=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 925162d..cf2bde8 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,7 @@ OBJ := $(patsubst src/%.c, obj/%.rel, $(SRC)) .PHONY: all clean -all: uart_temp.hex +all: main.hex clean: -$(RM) obj\* @@ -46,11 +46,11 @@ $(OBJ):obj/%.rel:src/%.c $(TARGET): $(OBJ) -$(CC) $^ -o $@ -uart_temp.hex: $(TARGET) - -$(PACKIHX) $(TARGET) > uart_temp.hex +main.hex: $(TARGET) + -$(PACKIHX) $(TARGET) > main.hex flash: - -stcgal -P stc89 -p $(COM) uart_temp.hex + -stcgal -P stc89 -p $(COM) main.hex #led.bin:led.hex # objcopy -I ihex -O binary led.hex led.bin