summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-01-05 19:05:31 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-01-05 19:05:31 +0000
commitcfca401d4e154e1e95eb32673f44c9bb7c4e2d1f (patch)
tree22a7b0192a481346ae60e5e7d592eec89ccc6fad
parentd982872a71040806abb5bd52f4c3a510b13fc5d6 (diff)
downloadnuttx-cfca401d4e154e1e95eb32673f44c9bb7c4e2d1f.tar.gz
nuttx-cfca401d4e154e1e95eb32673f44c9bb7c4e2d1f.tar.bz2
nuttx-cfca401d4e154e1e95eb32673f44c9bb7c4e2d1f.zip
Add support for Pascal P-Code interpreter
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@511 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r--nuttx/ChangeLog1
-rw-r--r--nuttx/Documentation/NuttX.html1
-rw-r--r--nuttx/Makefile14
3 files changed, 15 insertions, 1 deletions
diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog
index 157ef922f..31f7eef2a 100644
--- a/nuttx/ChangeLog
+++ b/nuttx/ChangeLog
@@ -288,5 +288,6 @@
* Changes for use with SDCC compiler
* Added a simulated z80 target
* Fix deadlock errors when using stdio but with no buffering
+ * Add support for Pascal P-Code interpreter
diff --git a/nuttx/Documentation/NuttX.html b/nuttx/Documentation/NuttX.html
index 8aed05749..f41834c47 100644
--- a/nuttx/Documentation/NuttX.html
+++ b/nuttx/Documentation/NuttX.html
@@ -726,6 +726,7 @@ Other memory:
* Changes for use with SDCC compiler
* Added a simulated z80 target
* Fix deadlock errors when using stdio but with no buffering
+ * Add support for Pascal P-Code interpreter
</pre></ul>
<table width ="100%">
diff --git a/nuttx/Makefile b/nuttx/Makefile
index bac6e7399..087a1c2bd 100644
--- a/nuttx/Makefile
+++ b/nuttx/Makefile
@@ -44,11 +44,16 @@ ARCH_SRC = $(ARCH_DIR)/src
ARCH_INC = $(ARCH_DIR)/include
BOARD_DIR = configs/$(CONFIG_ARCH_BOARD)
+# Add-on directories. These may or may not be in place in the
+# NuttX source tree (they must be specifically installed)
+
+PCODE_DIR := `if [ -r pcode/Makefile ]; then echo "pcode"; fi`
+
# FSDIRS depend on file descriptor support; NONFSDIRS do not
# (except for parts of FSDIRS). We will exclude FSDIRS
# from the build if file descriptor support is disabled
-NONFSDIRS = sched lib $(ARCH_SRC) mm examples/$(CONFIG_EXAMPLE)
+NONFSDIRS = sched lib $(ARCH_SRC) mm examples/$(CONFIG_EXAMPLE) $(PCODE_DIR)
FSDIRS = fs drivers
ifeq ($(CONFIG_NET),y)
@@ -96,6 +101,10 @@ else
LINKLIBS += fs/libfs$(LIBEXT) drivers/libdrivers$(LIBEXT)
endif
+ifneq ($(PCODE_DIR),)
+LINKLIBS += pcode/libpcode$(LIBEXT)
+endif
+
# This is the name of the final target
BIN = nuttx$(EXEEXT)
@@ -217,6 +226,9 @@ fs/libfs$(LIBEXT): context
drivers/libdrivers$(LIBEXT): context
$(MAKE) -C drivers TOPDIR=$(TOPDIR) libdrivers$(LIBEXT)
+pcode/libpcode$(LIBEXT): context
+ $(MAKE) -C pcode TOPDIR=$(TOPDIR) libpcode$(LIBEXT)
+
examples/$(CONFIG_EXAMPLE)/lib$(CONFIG_EXAMPLE)$(LIBEXT): context
$(MAKE) -C examples/$(CONFIG_EXAMPLE) TOPDIR=$(TOPDIR) lib$(CONFIG_EXAMPLE)$(LIBEXT)