Make building cli, ncp, and examples optional. (#132)

By default, only core is built.  Added the following configure options:
--enable-cli
--enable-ncp
--with-examples=TARGET
This commit is contained in:
Jonathan Hui
2016-06-11 10:32:05 -07:00
committed by GitHub
parent 0a65eca0ab
commit e03396282e
7 changed files with 116 additions and 12 deletions
+3 -3
View File
@@ -36,9 +36,9 @@ DIST_SUBDIRS = \
# Always build (e.g. for 'make all') these subdirectories.
SUBDIRS = \
posix \
$(NULL)
if OPENTHREAD_EXAMPLES_POSIX
SUBDIRS = posix
endif
# Always pretty (e.g. for 'make pretty') these subdirectories.
+8 -2
View File
@@ -38,10 +38,16 @@ DIST_SUBDIRS = \
# Always build (e.g. for 'make all') these subdirectories.
SUBDIRS = \
cli \
ncp \
$(NULL)
if OPENTHREAD_ENABLE_CLI
SUBDIRS += cli
endif
if OPENTHREAD_ENABLE_NCP
SUBDIRS += ncp
endif
# Always pretty (e.g. for 'make pretty') these subdirectories.
PRETTY_SUBDIRS = \
+2 -1
View File
@@ -10,7 +10,8 @@ another emulated Thread device.
```bash
$ cd openthread
$ ./bootstrap-configure
$ ./bootstrap
$ ./configure --enable-cli --with-examples=posix
$ make
```