summaryrefslogtreecommitdiff
path: root/examples/make.mk
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-11-03 13:18:02 +0700
committerhathach <[email protected]>2019-11-03 13:18:02 +0700
commit5ca75eb84ced12d54975146b0646244aa1ffe2a1 (patch)
tree9d5289a1521f3b5b50d8f1b47a440a05b0483eae /examples/make.mk
parent585aebeb12d14616c413491653b23aa41f173d88 (diff)
seperate DEBUG from LOG
Diffstat (limited to 'examples/make.mk')
-rw-r--r--examples/make.mk15
1 files changed, 10 insertions, 5 deletions
diff --git a/examples/make.mk b/examples/make.mk
index b736b8776..c2e0559fb 100644
--- a/examples/make.mk
+++ b/examples/make.mk
@@ -79,11 +79,16 @@ CFLAGS += \
# Debugging/Optimization
ifeq ($(DEBUG), 1)
- CFLAGS += -Og -ggdb -DCFG_TUSB_DEBUG=2
+ CFLAGS += -Og -ggdb
else
-ifneq ($(BOARD), spresense)
- CFLAGS += -flto -Os
-else
- CFLAGS += -Os
+ ifneq ($(BOARD),spresense)
+ CFLAGS += -flto -Os
+ else
+ CFLAGS += -Os
+ endif
endif
+
+# TUSB Logging option
+ifneq ($(LOG),)
+ CFLAGS += -DCFG_TUSB_DEBUG=$(LOG)
endif