diff --git a/Makefile b/Makefile index e87f2c3..7c02f9d 100755 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ # | sanchuanhehe # | # Created On : <2023-08-28> -# Last Modified : <2025-07-13> +# Last Modified : <2025-07-14> # # 请阅读 ./doc/01-Develop.md 来使用 # -------------------------------------------------------------- @@ -164,10 +164,13 @@ test-make-env: echo "HOME: $(HOME)"; \ fi +# 这两个测试文件都用 DEBUG mode +test-xy: CFLAGS += $(CFLAGS_debug) test-xy: @$(CC) test/xy.c $(CFLAGS) -o xy @./xy +test-fw: CFLAGS += $(CFLAGS_debug) test-fw: @$(CC) test/fw.c $(CFLAGS) -o fw @./fw diff --git a/justfile b/justfile index a3d6425..a28de6c 100644 --- a/justfile +++ b/justfile @@ -7,7 +7,7 @@ # Contributors : Nul None # | # Created On : <2025-06-18> -# Last Modified : <2025-07-13> +# Last Modified : <2025-07-14> # # 该文件主要用于在原生Windows上执行项目的基本任务,而不借助于 # GNU make 以及相应的 MSYS2、Cygwin 环境 @@ -123,12 +123,13 @@ debug: build-in-debug-mode test: test-xy test-fw +# 这两个测试文件都用 DEBUG mode test-xy: - @{{CC}} test/xy.c {{CFLAGS_dev_mode}} -o xy + @{{CC}} test/xy.c {{CFLAGS_debug_mode}} -o xy @{{BIN_xy}} test-fw: - @{{CC}} test/fw.c {{CFLAGS_dev_mode}} -o fw + @{{CC}} test/fw.c {{CFLAGS_debug_mode}} -o fw @{{BIN_fw}} fastcheck: