mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-08 19:54:13 +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)
|
ifeq ($(shell uname), Linux)
|
||||||
CFLAGS += -static
|
CFLAGS += -static
|
||||||
endif
|
endif
|
||||||
|
ifdef DEBUG
|
||||||
|
CFLAGS += -g
|
||||||
|
endif
|
||||||
|
|
||||||
override WARN += -Wall -Wextra -Wno-unused-variable -Wno-unused-function -Wno-missing-braces -Wno-misleading-indentation \
|
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
|
-Wno-missing-field-initializers -Wno-unused-parameter -Wno-sign-compare
|
||||||
@ -38,6 +41,10 @@ all:
|
|||||||
CI: all
|
CI: all
|
||||||
@mv $(Target) $(CI_Build_Name)
|
@mv $(Target) $(CI_Build_Name)
|
||||||
|
|
||||||
|
debug: CFLAGS += -g
|
||||||
|
debug: all
|
||||||
|
@gdb ./chsrc
|
||||||
|
|
||||||
test: test-xy test-fw
|
test: test-xy test-fw
|
||||||
|
|
||||||
test-xy:
|
test-xy:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user