mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
Add support for graphics add-on
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1302 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -55,12 +55,14 @@ BOARD_DIR = configs/$(CONFIG_ARCH_BOARD)
|
|||||||
# NuttX source tree (they must be specifically installed)
|
# NuttX source tree (they must be specifically installed)
|
||||||
|
|
||||||
PCODE_DIR := ${shell if [ -r pcode/Makefile ]; then echo "pcode"; fi}
|
PCODE_DIR := ${shell if [ -r pcode/Makefile ]; then echo "pcode"; fi}
|
||||||
|
NX_DIR := ${shell if [ -r graphics/nx/Makefile ]; then echo "graphics/nx"; fi}
|
||||||
|
ADDON_DIRS := $(PCODE_DIR) $(NX_DIR)
|
||||||
|
|
||||||
# FSDIRS depend on file descriptor support; NONFSDIRS do not
|
# FSDIRS depend on file descriptor support; NONFSDIRS do not
|
||||||
# (except for parts of FSDIRS). We will exclude FSDIRS
|
# (except for parts of FSDIRS). We will exclude FSDIRS
|
||||||
# from the build if file descriptor support is disabled
|
# from the build if file descriptor support is disabled
|
||||||
|
|
||||||
NONFSDIRS = sched lib $(ARCH_SRC) mm examples/$(CONFIG_EXAMPLE) $(PCODE_DIR)
|
NONFSDIRS = sched lib $(ARCH_SRC) mm examples/$(CONFIG_EXAMPLE) $(ADDON_DIRS)
|
||||||
FSDIRS = fs drivers
|
FSDIRS = fs drivers
|
||||||
|
|
||||||
ifeq ($(CONFIG_NET),y)
|
ifeq ($(CONFIG_NET),y)
|
||||||
@@ -109,7 +111,11 @@ LINKLIBS += fs/libfs$(LIBEXT) drivers/libdrivers$(LIBEXT)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(PCODE_DIR),)
|
ifneq ($(PCODE_DIR),)
|
||||||
LINKLIBS += pcode/libpcode$(LIBEXT)
|
LINKLIBS += $(PCODE_DIR)/libpcode$(LIBEXT)
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifneq ($(NX_DIR),)
|
||||||
|
LINKLIBS += $(NX_DIR)/libnx$(LIBEXT)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# This is the name of the final target
|
# This is the name of the final target
|
||||||
@@ -196,6 +202,9 @@ drivers/libdrivers$(LIBEXT): context
|
|||||||
pcode/libpcode$(LIBEXT): context
|
pcode/libpcode$(LIBEXT): context
|
||||||
@$(MAKE) -C pcode TOPDIR="$(TOPDIR)" libpcode$(LIBEXT)
|
@$(MAKE) -C pcode TOPDIR="$(TOPDIR)" libpcode$(LIBEXT)
|
||||||
|
|
||||||
|
graphics/nx/libnx$(LIBEXT): context
|
||||||
|
@$(MAKE) -C graphics/nx TOPDIR="$(TOPDIR)" libnx$(LIBEXT)
|
||||||
|
|
||||||
examples/$(CONFIG_EXAMPLE)/lib$(CONFIG_EXAMPLE)$(LIBEXT): context
|
examples/$(CONFIG_EXAMPLE)/lib$(CONFIG_EXAMPLE)$(LIBEXT): context
|
||||||
@$(MAKE) -C examples/$(CONFIG_EXAMPLE) TOPDIR="$(TOPDIR)" lib$(CONFIG_EXAMPLE)$(LIBEXT)
|
@$(MAKE) -C examples/$(CONFIG_EXAMPLE) TOPDIR="$(TOPDIR)" lib$(CONFIG_EXAMPLE)$(LIBEXT)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user