summaryrefslogtreecommitdiff
path: root/apps/examples/Makefile
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-07-22 20:12:50 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-07-22 20:12:50 +0000
commite3ba485a852fc10a85533d0c5a28c6e01d66a0d4 (patch)
treea33615148a3516b8d3b14be981e78fc49fa215c5 /apps/examples/Makefile
parent2d333142924f4e7396de449189e2fa383f29248f (diff)
downloadpx4-nuttx-e3ba485a852fc10a85533d0c5a28c6e01d66a0d4.tar.gz
px4-nuttx-e3ba485a852fc10a85533d0c5a28c6e01d66a0d4.tar.bz2
px4-nuttx-e3ba485a852fc10a85533d0c5a28c6e01d66a0d4.zip
apps/examples/usbstorage can now be built as NSH built-in commands; configs/stm3210e-eval/nsh2 now uses these usb storage commands
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3812 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/Makefile')
-rw-r--r--apps/examples/Makefile20
1 files changed, 18 insertions, 2 deletions
diff --git a/apps/examples/Makefile b/apps/examples/Makefile
index 45f05d8db..f5ab34a1c 100644
--- a/apps/examples/Makefile
+++ b/apps/examples/Makefile
@@ -38,13 +38,29 @@
# Sub-directories
SUBDIRS = buttons dhcpd ftpc hello helloxx hidkbd igmp mm mount nettest \
- nsh null nx nxffs nxflat nxhello nximage nxtext stest pashello pipe \
+ nsh null nx nxffs nxflat nxhello nximage nxtext ostest pashello pipe \
poll rgmp romfs sendmail serloop thttpd udp uip usbserial usbstorage \
wget wlan
# Sub-directories that might need context setup
-CNTXTDIRS = nx nxhello nximage nxtext
+CNTXTDIRS =
+
+ifeq ($(CONFIG_EXAMPLES_NX_BUILTIN),y)
+CNTXTDIRS += nx
+endif
+ifeq ($(CONFIG_EXAMPLES_NXHELLO_BUILTIN),y)
+CNTXTDIRS += nxhello
+endif
+ifeq ($(CONFIG_EXAMPLES_NXIMAGE_BUILTIN),y)
+CNTXTDIRS += nximage
+endif
+ifeq ($(CONFIG_EXAMPLES_NXTEXT_BUILTIN),y)
+CNTXTDIRS += nxtext
+endif
+ifeq ($(CONFIG_EXAMPLES_USBSTRG_BUILTIN),y)
+CNTXTDIRS += usbstorage
+endif
all: nothing
.PHONY: nothing context depend clean distclean