summaryrefslogtreecommitdiff
path: root/apps/examples/pwm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/pwm/Makefile')
-rw-r--r--apps/examples/pwm/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/examples/pwm/Makefile b/apps/examples/pwm/Makefile
index e8daa9b16..c88f6c82d 100644
--- a/apps/examples/pwm/Makefile
+++ b/apps/examples/pwm/Makefile
@@ -83,8 +83,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)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)