diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-12-02 18:18:59 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-12-02 18:18:59 +0000 |
commit | 3fd3ce2c6946e6162a2895f7e031231f64ebf6f3 (patch) | |
tree | bef21208f8dd5756a663dc937dde70fd43280be4 /nuttx/examples/nsh/Makefile | |
parent | eb4d3300acdff3332ca4ad06ff1a5ae3bbc1449d (diff) | |
download | px4-nuttx-3fd3ce2c6946e6162a2895f7e031231f64ebf6f3.tar.gz px4-nuttx-3fd3ce2c6946e6162a2895f7e031231f64ebf6f3.tar.bz2 px4-nuttx-3fd3ce2c6946e6162a2895f7e031231f64ebf6f3.zip |
Add TELNET front end to NSH
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@421 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/nsh/Makefile')
-rw-r--r-- | nuttx/examples/nsh/Makefile | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/nuttx/examples/nsh/Makefile b/nuttx/examples/nsh/Makefile index faeb30246..ef812a00d 100644 --- a/nuttx/examples/nsh/Makefile +++ b/nuttx/examples/nsh/Makefile @@ -1,5 +1,5 @@ -############################################################ -# Makefile +############################################################################ +# examples/nsh/Makefile # # Copyright (C) 2007 Gregory Nutt. All rights reserved. # Author: Gregory Nutt <spudmonkey@racsa.co.cr> @@ -31,7 +31,7 @@ # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. # -############################################################ +############################################################################ -include $(TOPDIR)/.config -include $(TOPDIR)/Make.defs @@ -39,8 +39,15 @@ MKDEP = $(TOPDIR)/tools/mkdeps.sh ASRCS = -AOBJS = $(ASRCS:.S=$(OBJEXT)) CSRCS = nsh_main.c nsh_fscmds.c nsh_proccmds.c nsh_envcmds.c + +ifeq ($(CONFIG_EXAMPLES_NSH_TELNET),y) +CSRCS += nsh_telnetd.c +else +CSRCS += nsh_serial.c +endif + +AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) |