Add debug

This commit is contained in:
Aoran Zeng 2024-12-27 17:07:06 +08:00
parent 88141b67fd
commit a9812f63f1
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98

View File

@ -21,6 +21,9 @@ endif
ifeq ($(shell uname), Linux)
CFLAGS += -static
endif
ifdef DEBUG
CFLAGS += -g
endif
override WARN += -Wall -Wextra -Wno-unused-variable -Wno-unused-function -Wno-missing-braces -Wno-misleading-indentation \
-Wno-missing-field-initializers -Wno-unused-parameter -Wno-sign-compare
@ -38,6 +41,10 @@ all:
CI: all
@mv $(Target) $(CI_Build_Name)
debug: CFLAGS += -g
debug: all
@gdb ./chsrc
test: test-xy test-fw
test-xy: