rma_reset: allow building with debug options

When invoking make with DEBUG=1 add '-g -O0' to the compiler
invocation to facilitate debugging with gdb.

BRANCH=none
BUG=b:73296606
TEST=verified that building with DEBUG=1 adds '-g -O0' to the compiler
     invocation.

Change-Id: Idd80bd481091b91683200c78fe49dc7e9783a730
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1073755
Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
Vadim Bendebury
2018-05-25 10:33:40 -07:00
committed by chrome-bot
parent 1910779d41
commit 99adc6aca7

View File

@@ -9,8 +9,6 @@ OBJS := curve25519.o curve25519-generic.o sha256.o base32.o
LIBS :=
LFLAGS :=
CFLAGS := -std=gnu99 \
-g3 \
-O3 \
-Wall \
-Werror \
-Wpointer-arith \
@@ -21,6 +19,11 @@ CFLAGS := -std=gnu99 \
-Wredundant-decls \
-Wmissing-declarations
ifeq ($(DEBUG),1)
CFLAGS += -g -O0
else
CFLAGS += -O3
endif
#
# Add libusb-1.0 required flags
#