debug flags only if we are debugging, speeds up firmware slightly

This commit is contained in:
Jason Kotzin 2018-07-12 19:19:39 -07:00
parent 58865ca5ec
commit 919a005b65

View File

@ -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 = \