mirror of
https://github.com/RubyMetric/chsrc.git
synced 2025-01-22 14:28:47 +08:00
Add debug
This commit is contained in:
parent
88141b67fd
commit
a9812f63f1
7
Makefile
7
Makefile
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user