diff --git a/examples/telnetd/Kconfig b/examples/telnetd/Kconfig index a94c944e3..99533dbad 100644 --- a/examples/telnetd/Kconfig +++ b/examples/telnetd/Kconfig @@ -6,6 +6,7 @@ config EXAMPLES_TELNETD bool "Telnet daemon example" default n + depends on NETUTILS_TELNETD ---help--- Enable the Telnet daemon example diff --git a/examples/thttpd/content/Makefile.binfs b/examples/thttpd/content/Makefile.binfs index 67e09b2c8..204608c07 100644 --- a/examples/thttpd/content/Makefile.binfs +++ b/examples/thttpd/content/Makefile.binfs @@ -50,7 +50,7 @@ ROMFS_IMG = $(CONTENT_DIR)/romfs.img ROMFS_HDR = $(CONTENT_DIR)/romfs.h ASRCS = -CSRCS = hello.c netstat.c tasks.c +CSRCS = hello.c tasks.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) @@ -74,8 +74,8 @@ else INSTALL_DIR = $(BIN_DIR) endif -ROOTDEPPATH = --dep-path hello --dep-path netstat --dep-path tasks -VPATH = hello:netstat:tasks +ROOTDEPPATH = --dep-path hello --dep-path tasks +VPATH = hello:tasks all: .built .PHONY: context headers binaries depend clean @@ -122,13 +122,10 @@ headers: $(ROMFS_HDR) $(BUILTIN_REGISTRY)$(DELIM)hello_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,hello,$(PRIORITY),$(STACKSIZE),hello_main) -$(BUILTIN_REGISTRY)$(DELIM)netstat_main.bdat: $(DEPCONFIG) Makefile - $(call REGISTER,netstat,$(PRIORITY),$(STACKSIZE),netstat_main) - $(BUILTIN_REGISTRY)$(DELIM)tasks_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,tasks,$(PRIORITY),$(STACKSIZE),tasks_main) -context: $(BUILTIN_REGISTRY)$(DELIM)hello_main.bdat $(BUILTIN_REGISTRY)$(DELIM)netstat_main.bdat $(BUILTIN_REGISTRY)$(DELIM)tasks_main.bdat +context: $(BUILTIN_REGISTRY)$(DELIM)hello_main.bdat $(BUILTIN_REGISTRY)$(DELIM)tasks_main.bdat .depend: Makefile $(SRCS) @$(MKDEP) $(ROOTDEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep diff --git a/examples/thttpd/content/Makefile.nxflat b/examples/thttpd/content/Makefile.nxflat index 519b91b4d..3f24447cb 100644 --- a/examples/thttpd/content/Makefile.nxflat +++ b/examples/thttpd/content/Makefile.nxflat @@ -33,7 +33,7 @@ # ############################################################################ -SUBDIRS = hello tasks netstat +SUBDIRS = hello tasks INSTALL_FILES = index.html style.css THTTPD_DIR = $(APPDIR)/examples/thttpd diff --git a/examples/thttpd/content/hello/hello.c b/examples/thttpd/content/hello/hello.c index e46f49c45..18009bb24 100644 --- a/examples/thttpd/content/hello/hello.c +++ b/examples/thttpd/content/hello/hello.c @@ -69,7 +69,6 @@ int main(int argc, char *argv[]) "
\r\n" "\r\n" "\r\n" - "\r\n" "