You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2023/06/22 20:27:32 UTC

[nuttx-apps] 01/02: build: Replace "$(shell $(INCDIR) $(CC) ...)" with $(INCDIR_PREFIX)

This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit 7986f66006898d94d9801a9424b1bdec507eceda
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Thu Jun 22 23:41:02 2023 +0800

    build: Replace "$(shell $(INCDIR) $(CC) ...)" with $(INCDIR_PREFIX)
    
    to unify the way to get include directories
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 interpreters/toywasm/Makefile | 6 +++---
 lte/lapi/src/Make.defs        | 2 +-
 sdr/liquid_dsp/Makefile       | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/interpreters/toywasm/Makefile b/interpreters/toywasm/Makefile
index 6cb3c47b2..e1cabb32a 100644
--- a/interpreters/toywasm/Makefile
+++ b/interpreters/toywasm/Makefile
@@ -74,9 +74,9 @@ CSRCS += wasi_fdtable.c
 # TOYWASM_ENABLE_WASI_THREADS
 CSRCS += wasi_threads.c
 
-CFLAGS += ${shell $(INCDIR) "$(CC)" $(APPDIR)/interpreters/toywasm/include}
-CFLAGS += ${shell $(INCDIR) "$(CC)" $(APPDIR)/interpreters/toywasm/toywasm/lib}
-CFLAGS += ${shell $(INCDIR) "$(CC)" $(APPDIR)/interpreters/toywasm/toywasm/libwasi}
+CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/interpreters/toywasm/include
+CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/interpreters/toywasm/toywasm/lib
+CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/interpreters/toywasm/toywasm/libwasi
 
 TOYWASM_VERSION  = 99468253ca11c9b8df444e3e23865b5030f6af69
 TOYWASM_UNPACK   = toywasm
diff --git a/lte/lapi/src/Make.defs b/lte/lapi/src/Make.defs
index 7ea2d4760..daa284365 100644
--- a/lte/lapi/src/Make.defs
+++ b/lte/lapi/src/Make.defs
@@ -35,6 +35,6 @@ CSRCS = lapi_evt.c      \
 
 DEPPATH += --dep-path src
 VPATH += :src
-CFLAGS += ${shell $(INCDIR) "$(CC)" $(APPDIR)/lte/lapi/src}
+CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/lte/lapi/src
 
 endif
diff --git a/sdr/liquid_dsp/Makefile b/sdr/liquid_dsp/Makefile
index 88c3188f3..2da12bee3 100644
--- a/sdr/liquid_dsp/Makefile
+++ b/sdr/liquid_dsp/Makefile
@@ -39,7 +39,7 @@ $(LIQUID_DSP_UNPACK)/.patch: $(LIQUID_DSP_UNPACK)
 	$(Q) touch $(LIQUID_DSP_UNPACK)/.patch
 
 CFLAGS += -std=c99
-CFLAGS += ${shell $(INCDIR) "$(CC)" $(APPDIR)/sdr/liquid_dsp}
+CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/sdr/liquid_dsp
 CFLAGS += -DM_SQRT1_2=0.7071067811865475244008443621048490
 CFLAGS += -DM_SQRT2=1.4142135623730950488016887242096981
 CFLAGS += -DM_PI=3.1415926535897932384626433832795029