Skip to content

Commit

Permalink
Add debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ccmywish committed Dec 27, 2024
1 parent 88141b6 commit a9812f6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit a9812f6

Please sign in to comment.