build: Replace "$(shell $(INCDIR) $(CC) ...)" with $(INCDIR_PREFIX)

to unify the way to get include directories

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2023-06-22 23:41:02 +08:00 committed by Petro Karashchenko
parent 3bd106081f
commit 7986f66006
3 changed files with 5 additions and 5 deletions

View File

@ -74,9 +74,9 @@ CSRCS += wasi_fdtable.c
# TOYWASM_ENABLE_WASI_THREADS # TOYWASM_ENABLE_WASI_THREADS
CSRCS += wasi_threads.c CSRCS += wasi_threads.c
CFLAGS += ${shell $(INCDIR) "$(CC)" $(APPDIR)/interpreters/toywasm/include} CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/interpreters/toywasm/include
CFLAGS += ${shell $(INCDIR) "$(CC)" $(APPDIR)/interpreters/toywasm/toywasm/lib} CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/interpreters/toywasm/toywasm/lib
CFLAGS += ${shell $(INCDIR) "$(CC)" $(APPDIR)/interpreters/toywasm/toywasm/libwasi} CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/interpreters/toywasm/toywasm/libwasi
TOYWASM_VERSION = 99468253ca11c9b8df444e3e23865b5030f6af69 TOYWASM_VERSION = 99468253ca11c9b8df444e3e23865b5030f6af69
TOYWASM_UNPACK = toywasm TOYWASM_UNPACK = toywasm

View File

@ -35,6 +35,6 @@ CSRCS = lapi_evt.c \
DEPPATH += --dep-path src DEPPATH += --dep-path src
VPATH += :src VPATH += :src
CFLAGS += ${shell $(INCDIR) "$(CC)" $(APPDIR)/lte/lapi/src} CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/lte/lapi/src
endif endif

View File

@ -39,7 +39,7 @@ $(LIQUID_DSP_UNPACK)/.patch: $(LIQUID_DSP_UNPACK)
$(Q) touch $(LIQUID_DSP_UNPACK)/.patch $(Q) touch $(LIQUID_DSP_UNPACK)/.patch
CFLAGS += -std=c99 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_SQRT1_2=0.7071067811865475244008443621048490
CFLAGS += -DM_SQRT2=1.4142135623730950488016887242096981 CFLAGS += -DM_SQRT2=1.4142135623730950488016887242096981
CFLAGS += -DM_PI=3.1415926535897932384626433832795029 CFLAGS += -DM_PI=3.1415926535897932384626433832795029