summaryrefslogtreecommitdiff
path: root/apps/examples/ftpd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/ftpd/Makefile')
-rw-r--r--apps/examples/ftpd/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/examples/ftpd/Makefile b/apps/examples/ftpd/Makefile
index 981489010..f6d23f737 100644
--- a/apps/examples/ftpd/Makefile
+++ b/apps/examples/ftpd/Makefile
@@ -78,8 +78,17 @@ $(COBJS): %$(OBJEXT): %.c
$(call ARCHIVE, $(BIN), $(OBJS))
@touch .built
+ifeq ($(CONFIG_BUILD_KERNEL),y)
+$(INSTALL_DIR)/$(PROGNAME): $(OBJS)
+ @echo "LD: $<"
+ $(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) -o $@ $(ARCHCRT0OBJ) $^ $(LDLIBS)
+
+install: $(INSTALL_DIR)/$(PROGNAME)
+
install:
+endif
+
ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)ftpd_start.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,ftpd_start,SCHED_PRIORITY_DEFAULT,2048,ftpd_main)