summaryrefslogtreecommitdiff
path: root/apps/examples/rgmp
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/rgmp')
-rw-r--r--apps/examples/rgmp/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/examples/rgmp/Makefile b/apps/examples/rgmp/Makefile
index df9e333ae..f55dc8562 100644
--- a/apps/examples/rgmp/Makefile
+++ b/apps/examples/rgmp/Makefile
@@ -77,8 +77,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
+
context:
.depend: Makefile $(SRCS)