summaryrefslogtreecommitdiff
path: root/examples/build_system/make
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-06-25 11:31:19 +0700
committerhathach <[email protected]>2024-06-25 11:31:19 +0700
commit4396ecd22cac5485ce006b330ca3ef3446d0022f (patch)
treef7c13bcb8bdc0590ee6cf0856d0d432e0264bb6a /examples/build_system/make
parentf9cd5ccdf0a24b66f6d5b7aeb760e757723eb18e (diff)
change COMPILE_DEFINE to CFLAGS_CLI for cmake/make
Diffstat (limited to 'examples/build_system/make')
-rw-r--r--examples/build_system/make/make.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/build_system/make/make.mk b/examples/build_system/make/make.mk
index a78f4130d..1500a51e0 100644
--- a/examples/build_system/make/make.mk
+++ b/examples/build_system/make/make.mk
@@ -109,6 +109,10 @@ INC += \
BOARD_UPPER = $(subst a,A,$(subst b,B,$(subst c,C,$(subst d,D,$(subst e,E,$(subst f,F,$(subst g,G,$(subst h,H,$(subst i,I,$(subst j,J,$(subst k,K,$(subst l,L,$(subst m,M,$(subst n,N,$(subst o,O,$(subst p,P,$(subst q,Q,$(subst r,R,$(subst s,S,$(subst t,T,$(subst u,U,$(subst v,V,$(subst w,W,$(subst x,X,$(subst y,Y,$(subst z,Z,$(subst -,_,$(BOARD))))))))))))))))))))))))))))
CFLAGS += -DBOARD_$(BOARD_UPPER)
+ifdef CFLAGS_CLI
+ CFLAGS += $(CFLAGS_CLI)
+endif
+
# use max3421 as host controller
ifeq (${MAX3421_HOST},1)
SRC_C += src/portable/analog/max3421/hcd_max3421.c