summaryrefslogtreecommitdiff
path: root/examples/make.mk
diff options
context:
space:
mode:
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