diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-10-05 14:37:39 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-10-05 14:37:39 +0000 |
commit | 18d1f3e8c8813f17f7b064dc9f96f805efb76cf3 (patch) | |
tree | c6cbe64279b48b3b9d15643a569cca1787b1ef6d /apps/Makefile | |
parent | 20f03203b8c699bc97b1ba4c0661a125ac4182e4 (diff) | |
download | nuttx-18d1f3e8c8813f17f7b064dc9f96f805efb76cf3.tar.gz nuttx-18d1f3e8c8813f17f7b064dc9f96f805efb76cf3.tar.bz2 nuttx-18d1f3e8c8813f17f7b064dc9f96f805efb76cf3.zip |
apps/ build now supports an 'external' directory
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4021 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/Makefile')
-rw-r--r-- | apps/Makefile | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/apps/Makefile b/apps/Makefile index 1e80685e3..db75855ca 100644 --- a/apps/Makefile +++ b/apps/Makefile @@ -53,19 +53,28 @@ SUBDIRS = examples graphics interpreters namedapp nshlib netutils system vsn -include .config # INSTALLED_APPS is the list of currently available application directories. It -# is the same as CONFIGURED_APPS, but filtered to exclude any non-existent apps. -# namedapp is always in the list of applications to be built +# is the same as CONFIGURED_APPS, but filtered to exclude any non-existent +# application directory. namedapp is always in the list of applications to be +# built. INSTALLED_APPS = namedapp # Create the list of available applications (INSTALLED_APPS) define ADD_BUILTIN -INSTALLED_APPS += ${shell if [ -r $1/Makefile ]; then echo "$1"; fi} +INSTALLED_APPS += ${shell if [ -r $1/Makefile ]; then echo "$1"; fi} endef $(foreach BUILTIN, $(CONFIGURED_APPS), $(eval $(call ADD_BUILTIN,$(BUILTIN)))) +# The external/ directory may also be added to the INSTALLED_APPS. But there +# is no external/ directory in the repository. Rather, this directory may be +# provided by the user (possibly as a symbolic link) to add libraries and +# applications to the standard build from the repository. + +INSTALLED_APPS += ${shell if [ -r external/Makefile ]; then echo "external"; fi} +SUBDIRS += ${shell if [ -r external/Makefile ]; then echo "external"; fi} + # The final build target BIN = libapps$(LIBEXT) |