summaryrefslogtreecommitdiff
path: root/apps/examples/elf/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/elf/Makefile')
-rw-r--r--apps/examples/elf/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/examples/elf/Makefile b/apps/examples/elf/Makefile
index e06b000d4..24bd85921 100644
--- a/apps/examples/elf/Makefile
+++ b/apps/examples/elf/Makefile
@@ -100,7 +100,7 @@ really_build: $(OBJS)
@$(MAKE) TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" really_build
ifeq ($(CONFIG_BUILD_KERNEL),y)
-$(BIN_DIR)$(DELIM)$(PROGNAME): $(OBJS)
+$(BIN_DIR)$(DELIM)$(PROGNAME): $(OBJS) $(MAINOBJ)
@echo "LD: $(PROGNAME)"
$(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) -o $(INSTALL_DIR)$(DELIM)$(PROGNAME) $(ARCHCRT0OBJ) $(LDLIBS)