diff options
Diffstat (limited to 'nuttx/examples/nsh/Makefile')
-rw-r--r-- | nuttx/examples/nsh/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nuttx/examples/nsh/Makefile b/nuttx/examples/nsh/Makefile index ef812a00d..56c5611a0 100644 --- a/nuttx/examples/nsh/Makefile +++ b/nuttx/examples/nsh/Makefile @@ -41,6 +41,12 @@ MKDEP = $(TOPDIR)/tools/mkdeps.sh ASRCS = CSRCS = nsh_main.c nsh_fscmds.c nsh_proccmds.c nsh_envcmds.c +ifeq ($(CONFIG_NET),y) +ifneq ($(CONFIG_NSOCKET_DESCRIPTORS),0) +CSRCS += nsh_netcmds.c +endif +endif + ifeq ($(CONFIG_EXAMPLES_NSH_TELNET),y) CSRCS += nsh_telnetd.c else |