summaryrefslogtreecommitdiff
path: root/examples/make.mk
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-05-15 18:21:41 +0700
committerGitHub <[email protected]>2019-05-15 18:21:41 +0700
commitc4b153925012e7c4fe28c745e5022820798a160d (patch)
tree01c7d3ee839746922ddade2a372310c6fa055999 /examples/make.mk
parent449a631a4a888146e8f68b6960f7fdb579fc5edf (diff)
parent6e9324e29c3c2cc7ae36c0d7cbdb037e92ec9614 (diff)
Merge pull request #66 from hathach/develop
support makefile device example for all boards
Diffstat (limited to 'examples/make.mk')
-rw-r--r--examples/make.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/make.mk b/examples/make.mk
index d76f611fb..444b22310 100644
--- a/examples/make.mk
+++ b/examples/make.mk
@@ -31,6 +31,9 @@ BUILD = build-$(BOARD)
# Board specific
include $(TOP)/hw/bsp/$(BOARD)/board.mk
+# Include all source C in board folder
+SRC_C += $(subst $(TOP)/,,$(wildcard $(TOP)/hw/bsp/$(BOARD)/*.c))
+
# Compiler Flags
CFLAGS += \
-fsingle-precision-constant \
@@ -59,7 +62,7 @@ CFLAGS += \
# Debugging/Optimization
ifeq ($(DEBUG), 1)
- CFLAGS += -O0 -ggdb
+ CFLAGS += -O0 -ggdb -DCFG_TUSB_DEBUG=1
else
CFLAGS += -flto -Os
endif