diff options
| author | hathach <[email protected]> | 2019-11-03 13:18:02 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-11-03 13:18:02 +0700 |
| commit | 5ca75eb84ced12d54975146b0646244aa1ffe2a1 (patch) | |
| tree | 9d5289a1521f3b5b50d8f1b47a440a05b0483eae | |
| parent | 585aebeb12d14616c413491653b23aa41f173d88 (diff) | |
seperate DEBUG from LOG
| -rw-r--r-- | examples/make.mk | 15 |
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 |
