mirror of
https://github.com/apache/nuttx.git
synced 2025-12-10 20:24:51 +08:00
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:
@@ -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))
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user