Skip to content
Snippets Groups Projects
Commit 321f90cb authored by CNLohr's avatar CNLohr
Browse files

* Modify Makefile so "Terminal" exists now.

 * Revert `del /Q /F` windows mod.
parent 78121972
No related branches found
No related tags found
No related merge requests found
......@@ -18,12 +18,6 @@ LDFLAGS+=-T $(CH32V003FUN)/ch32v003fun.ld -Wl,--gc-sections -L$(CH32V003FUN)/../
SYSTEM_C:=$(CH32V003FUN)/ch32v003fun.c
ifeq ($(OS),Windows_NT)
RM = del /Q /F
else
RM = rm -f
endif
$(TARGET).elf : $(SYSTEM_C) $(TARGET).c $(ADDITIONAL_C_FILES)
$(PREFIX)-gcc -o $@ $^ $(CFLAGS) $(LDFLAGS)
......@@ -42,7 +36,9 @@ closechlink :
-killall minichlink
endif
monitor :
terminal : monitor
monitor :
$(MINICHLINK)/minichlink -T
gdbserver :
......@@ -53,6 +49,6 @@ cv_flash : $(TARGET).bin
$(MINICHLINK)/minichlink -w $< flash -b
cv_clean :
$(RM) $(TARGET).elf $(TARGET).bin $(TARGET).hex $(TARGET).lst $(TARGET).map $(TARGET).hex
rm -rf $(TARGET).elf $(TARGET).bin $(TARGET).hex $(TARGET).lst $(TARGET).map $(TARGET).hex || true
build : $(TARGET).bin
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment