debug flags only if we are debugging, speeds up firmware slightly
This commit is contained in:
parent
58865ca5ec
commit
919a005b65
@ -11,12 +11,12 @@ endif
|
|||||||
OPT_FLAGS ?= -O2
|
OPT_FLAGS ?= -O2
|
||||||
|
|
||||||
CFLAGS += -Wall -Wextra -Werror -Wno-char-subscripts\
|
CFLAGS += -Wall -Wextra -Werror -Wno-char-subscripts\
|
||||||
$(OPT_FLAGS) -std=gnu99 -g3 -MD \
|
$(OPT_FLAGS) -std=gnu99 -MD \
|
||||||
-I. -Iinclude -Iplatforms/common -I$(PLATFORM_DIR)
|
-I. -Iinclude -Iplatforms/common -I$(PLATFORM_DIR)
|
||||||
LDFLAGS += $(OPT_FLAGS)
|
LDFLAGS += $(OPT_FLAGS)
|
||||||
|
|
||||||
ifeq ($(ENABLE_DEBUG), 1)
|
ifeq ($(ENABLE_DEBUG), 1)
|
||||||
CFLAGS += -DENABLE_DEBUG
|
CFLAGS += -DENABLE_DEBUG -g3 -ggdb
|
||||||
endif
|
endif
|
||||||
|
|
||||||
SRC = \
|
SRC = \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user