build: Replace "$(shell $(DEFINE) $(CC) ...)" with $(DEFINE_PREFIX)

to unify the way to define macros in Makefile

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2023-06-22 23:48:55 +08:00 committed by Petro Karashchenko
parent 0eeca0f375
commit 04e44d7d20

View File

@ -38,7 +38,7 @@ distclean::
CSRCS += mm_tlsf.c tlsf.c CSRCS += mm_tlsf.c tlsf.c
CFLAGS += ${shell $(DEFINE) "$(CC)" tlsf_printf=\"if\(0\)printf\"} CFLAGS += ${DEFINE_PREFIX}tlsf_printf=if\(0\)printf
# Add the tlsf directory to the build # Add the tlsf directory to the build