tools: replace INCDIR to Makefile variable

In the past, header file paths were generated by the incdir command
Now they are generated by concatenating environment variables

In this way, when executing makefile, no shell command will be executed,
it will improve the speed of executing makfile
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai
2022-11-01 21:47:53 +08:00
committed by Xiang Xiao
parent 95d9abcf58
commit 85f727f232
79 changed files with 153 additions and 151 deletions

View File

@@ -25,7 +25,7 @@ include nxbe/Make.defs
include nxmu/Make.defs
include nxterm/Make.defs
CFLAGS += ${shell $(INCDIR) "$(CC)" $(TOPDIR)$(DELIM)graphics}
CFLAGS += ${INCDIR_PREFIX}$(TOPDIR)$(DELIM)graphics
AOBJS = $(ASRCS:.S=$(OBJEXT))
COBJS = $(CSRCS:.c=$(OBJEXT))

View File

@@ -40,5 +40,5 @@ CSRCS += nxbe_notify_rectangle.c
endif
DEPPATH += --dep-path nxbe
CFLAGS += ${shell $(INCDIR) "$(CC)" $(TOPDIR)/graphics/nxbe}
CFLAGS += ${INCDIR_PREFIX}$(TOPDIR)/graphics/nxbe
VPATH += :nxbe

View File

@@ -96,6 +96,6 @@ CSRCS += nxglib_cursor_backup_24bpp.c nxglib_cursor_backup_32bpp.c
endif
DEPPATH += --dep-path nxglib
CFLAGS += ${shell $(INCDIR) "$(CC)" $(TOPDIR)/graphics/nxglib}
CFLAGS += ${INCDIR_PREFIX}$(TOPDIR)/graphics/nxglib
#VPATH += :nxglib
VPATH = nxglib

View File

@@ -20,7 +20,7 @@
include $(TOPDIR)/Make.defs
CPPFLAGS += ${shell $(INCDIR) "$(CC)" $(TOPDIR)$(DELIM)graphics$(DELIM)nxglib}
CPPFLAGS += ${INCDIR_PREFIX}$(TOPDIR)$(DELIM)graphics$(DELIM)nxglib
ifeq ($(NXGLIB_BITSPERPIXEL),8)
NXGLIB_SUFFIX := _8bpp

View File

@@ -20,7 +20,7 @@
include $(TOPDIR)/Make.defs
CPPFLAGS += ${shell $(INCDIR) "$(CC)" $(TOPDIR)$(DELIM)graphics$(DELIM)nxglib}
CPPFLAGS += ${INCDIR_PREFIX}$(TOPDIR)$(DELIM)graphics$(DELIM)nxglib
ifeq ($(NXGLIB_BITSPERPIXEL),1)
NXGLIB_SUFFIX := _1bpp

View File

@@ -20,7 +20,7 @@
include $(TOPDIR)/Make.defs
CPPFLAGS += ${shell $(INCDIR) "$(CC)" $(TOPDIR)$(DELIM)graphics$(DELIM)nxglib}
CPPFLAGS += ${INCDIR_PREFIX}$(TOPDIR)$(DELIM)graphics$(DELIM)nxglib
ifeq ($(NXGLIB_BITSPERPIXEL),1)
NXGLIB_SUFFIX := _1bpp

View File

@@ -24,5 +24,5 @@ CSRCS += nxmu_sendclient.c nxmu_sendclientwindow.c nxmu_server.c
CSRCS += nxmu_start.c
DEPPATH += --dep-path nxmu
CFLAGS += ${shell $(INCDIR) "$(CC)" $(TOPDIR)/graphics/nxmu}
CFLAGS += ${INCDIR_PREFIX}$(TOPDIR)/graphics/nxmu
VPATH += :nxmu

View File

@@ -33,7 +33,7 @@ CSRCS += nxterm_kbdin.c
endif
DEPPATH += --dep-path nxterm
CFLAGS += ${shell $(INCDIR) "$(CC)" $(TOPDIR)/graphics/nxterm}
CFLAGS += ${INCDIR_PREFIX}$(TOPDIR)/graphics/nxterm
VPATH += :nxterm
endif