Test file use DEBUG mode

This commit is contained in:
Aoran Zeng
2025-07-14 22:40:30 +08:00
parent 8f501dd50e
commit f2a383412c
2 changed files with 8 additions and 4 deletions

View File

@@ -8,7 +8,7 @@
# | sanchuanhehe <wyihe5520@gmail.com>
# |
# 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