From beb70efffcde9f35e3ab80c748c38041677d1ac0 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 6 Sep 2014 10:42:03 -0600 Subject: Add program installation for CONFIG_BUILD_KERNEL in all Makefiles that build a main() --- apps/examples/webserver/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'apps/examples/webserver/Makefile') diff --git a/apps/examples/webserver/Makefile b/apps/examples/webserver/Makefile index f207eebfe..6eb77e0f5 100644 --- a/apps/examples/webserver/Makefile +++ b/apps/examples/webserver/Makefile @@ -80,8 +80,17 @@ $(COBJS): %$(OBJEXT): %.c httpd_fsdata.c: httpd-fs/* $(TOPDIR)/tools/mkfsdata.pl +ifeq ($(CONFIG_BUILD_KERNEL),y) +$(INSTALL_DIR)/$(PROGNAME): $(OBJS) + @echo "LD: $<" + $(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) -o $@ $(ARCHCRT0OBJ) $^ $(LDLIBS) + +install: $(INSTALL_DIR)/$(PROGNAME) + install: +endif + context: .depend: Makefile $(SRCS) -- cgit v1.2.3