Makefile: add -ginline-points
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,6 +4,7 @@ vgcore.*
|
|||||||
*.i
|
*.i
|
||||||
*.old
|
*.old
|
||||||
*.save
|
*.save
|
||||||
|
perf.data
|
||||||
/GPATH
|
/GPATH
|
||||||
/GRTAGS
|
/GRTAGS
|
||||||
/GTAGS
|
/GTAGS
|
||||||
|
16
Makefile
16
Makefile
@@ -56,7 +56,6 @@ CPPFILES := $(SRC:.c=.i) $(TSTSRC:.c=.i)
|
|||||||
CPPFLAGS := -I$(BRINCDIR) -I$(INCDIR)
|
CPPFLAGS := -I$(BRINCDIR) -I$(INCDIR)
|
||||||
|
|
||||||
CPPFLAGS += -DNDEBUG # assert
|
CPPFLAGS += -DNDEBUG # assert
|
||||||
|
|
||||||
CPPFLAGS += -DBUG_ON # brlib bug.h
|
CPPFLAGS += -DBUG_ON # brlib bug.h
|
||||||
CPPFLAGS += -DWARN_ON # brlib bug.h
|
CPPFLAGS += -DWARN_ON # brlib bug.h
|
||||||
|
|
||||||
@@ -88,9 +87,16 @@ CPPFLAGS := $(strip $(CPPFLAGS))
|
|||||||
CFLAGS := -std=gnu11
|
CFLAGS := -std=gnu11
|
||||||
|
|
||||||
### dev OR release
|
### dev OR release
|
||||||
|
|
||||||
# dev
|
# dev
|
||||||
#CFLAGS += -O1
|
# CFLAGS += -O1
|
||||||
#CFLAGS += -g
|
CFLAGS += -g # symbols (gdb, perf, etc.)
|
||||||
|
CFLAGS += -ginline-points # inlined funcs debug info
|
||||||
|
# for gprof
|
||||||
|
#CFLAGS += -pg
|
||||||
|
# Next one may be useful for valgrind (when invalid instructions)
|
||||||
|
#CFLAGS += -mno-tbm
|
||||||
|
|
||||||
# release
|
# release
|
||||||
CFLAGS += -Ofast
|
CFLAGS += -Ofast
|
||||||
|
|
||||||
@@ -99,10 +105,6 @@ CFLAGS += -flto
|
|||||||
CFLAGS += -Wall
|
CFLAGS += -Wall
|
||||||
CFLAGS += -Wextra
|
CFLAGS += -Wextra
|
||||||
CFLAGS += -Wmissing-declarations
|
CFLAGS += -Wmissing-declarations
|
||||||
# for gprof
|
|
||||||
#CFLAGS += -pg
|
|
||||||
# Next one may be useful for valgrind (when invalid instructions)
|
|
||||||
# CFLAGS += -mno-tbm
|
|
||||||
|
|
||||||
CFLAGS := $(strip $(CFLAGS))
|
CFLAGS := $(strip $(CFLAGS))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user