diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-06 10:42:03 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-06 10:42:03 -0600 |
commit | beb70efffcde9f35e3ab80c748c38041677d1ac0 (patch) | |
tree | 9b01e6cd3afec91d278316c9a149f34e8e0e00d0 /apps | |
parent | 8aabf57b45b523cbcc96c979826a8f809cd7bd73 (diff) | |
download | px4-nuttx-beb70efffcde9f35e3ab80c748c38041677d1ac0.tar.gz px4-nuttx-beb70efffcde9f35e3ab80c748c38041677d1ac0.tar.bz2 px4-nuttx-beb70efffcde9f35e3ab80c748c38041677d1ac0.zip |
Add program installation for CONFIG_BUILD_KERNEL in all Makefiles that build a main()
Diffstat (limited to 'apps')
88 files changed, 792 insertions, 0 deletions
diff --git a/apps/examples/adc/Makefile b/apps/examples/adc/Makefile index b4a240bcf..ceb59d9d6 100644 --- a/apps/examples/adc/Makefile +++ b/apps/examples/adc/Makefile @@ -83,7 +83,16 @@ $(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 diff --git a/apps/examples/buttons/Makefile b/apps/examples/buttons/Makefile index 72ef2eae0..88e093f53 100644 --- a/apps/examples/buttons/Makefile +++ b/apps/examples/buttons/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) diff --git a/apps/examples/can/Makefile b/apps/examples/can/Makefile index 6472efaee..565acdf3f 100644 --- a/apps/examples/can/Makefile +++ b/apps/examples/can/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) diff --git a/apps/examples/cc3000/Makefile b/apps/examples/cc3000/Makefile index e4c45ffe0..d9cdadc6f 100644 --- a/apps/examples/cc3000/Makefile +++ b/apps/examples/cc3000/Makefile @@ -87,8 +87,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) diff --git a/apps/examples/configdata/Makefile b/apps/examples/configdata/Makefile index 4f1b474fe..03b9c12a3 100644 --- a/apps/examples/configdata/Makefile +++ b/apps/examples/configdata/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) diff --git a/apps/examples/cpuhog/Makefile b/apps/examples/cpuhog/Makefile index 751cc2fee..98ae1a21a 100644 --- a/apps/examples/cpuhog/Makefile +++ b/apps/examples/cpuhog/Makefile @@ -86,8 +86,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) diff --git a/apps/examples/dhcpd/Makefile b/apps/examples/dhcpd/Makefile index 1c6ce1c61..7526408b0 100644 --- a/apps/examples/dhcpd/Makefile +++ b/apps/examples/dhcpd/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) diff --git a/apps/examples/discover/Makefile b/apps/examples/discover/Makefile index 9e227dee1..2c82b8e5e 100644 --- a/apps/examples/discover/Makefile +++ b/apps/examples/discover/Makefile @@ -84,8 +84,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) diff --git a/apps/examples/elf/Makefile b/apps/examples/elf/Makefile index afeab7a1b..d1ffce5c8 100644 --- a/apps/examples/elf/Makefile +++ b/apps/examples/elf/Makefile @@ -86,8 +86,17 @@ really_build: $(OBJS) @$(MAKE) -C tests TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" CROSSDEV=$(CROSSDEV) @$(MAKE) TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" really_build +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: # We can't make dependencies in this directory because the required diff --git a/apps/examples/flash_test/Makefile b/apps/examples/flash_test/Makefile index 5eb840bbc..28b7aa7ec 100644 --- a/apps/examples/flash_test/Makefile +++ b/apps/examples/flash_test/Makefile @@ -86,8 +86,17 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) 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 + # Register application ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) diff --git a/apps/examples/ftpc/Makefile b/apps/examples/ftpc/Makefile index 250d20d2e..cb93f56af 100644 --- a/apps/examples/ftpc/Makefile +++ b/apps/examples/ftpc/Makefile @@ -81,8 +81,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 + # Register application ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) 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) diff --git a/apps/examples/hello/Makefile b/apps/examples/hello/Makefile index 09891604b..701b9b13f 100644 --- a/apps/examples/hello/Makefile +++ b/apps/examples/hello/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) diff --git a/apps/examples/hidkbd/Makefile b/apps/examples/hidkbd/Makefile index 19ec6d840..431173ce2 100644 --- a/apps/examples/hidkbd/Makefile +++ b/apps/examples/hidkbd/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) diff --git a/apps/examples/i2schar/Makefile b/apps/examples/i2schar/Makefile index 01ebafe9b..81e7556d0 100644 --- a/apps/examples/i2schar/Makefile +++ b/apps/examples/i2schar/Makefile @@ -89,8 +89,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) diff --git a/apps/examples/igmp/Makefile b/apps/examples/igmp/Makefile index 7a1b67463..4820b442d 100644 --- a/apps/examples/igmp/Makefile +++ b/apps/examples/igmp/Makefile @@ -81,8 +81,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) diff --git a/apps/examples/json/Makefile b/apps/examples/json/Makefile index f4c37aeae..7fb1a73f2 100644 --- a/apps/examples/json/Makefile +++ b/apps/examples/json/Makefile @@ -81,8 +81,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) diff --git a/apps/examples/keypadtest/Makefile b/apps/examples/keypadtest/Makefile index f11a1d98f..f75af3f6e 100644 --- a/apps/examples/keypadtest/Makefile +++ b/apps/examples/keypadtest/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) diff --git a/apps/examples/lcdrw/Makefile b/apps/examples/lcdrw/Makefile index 462af80a1..7dd649b67 100644 --- a/apps/examples/lcdrw/Makefile +++ b/apps/examples/lcdrw/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) diff --git a/apps/examples/mm/Makefile b/apps/examples/mm/Makefile index 55b06ea58..eeac51f93 100644 --- a/apps/examples/mm/Makefile +++ b/apps/examples/mm/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) diff --git a/apps/examples/modbus/Makefile b/apps/examples/modbus/Makefile index 07c04c51e..df86b76a4 100644 --- a/apps/examples/modbus/Makefile +++ b/apps/examples/modbus/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) diff --git a/apps/examples/mount/Makefile b/apps/examples/mount/Makefile index 52c4af1b9..41d015c77 100644 --- a/apps/examples/mount/Makefile +++ b/apps/examples/mount/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) diff --git a/apps/examples/mtdpart/Makefile b/apps/examples/mtdpart/Makefile index be431c46e..77583260f 100755 --- a/apps/examples/mtdpart/Makefile +++ b/apps/examples/mtdpart/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) diff --git a/apps/examples/netpkt/Makefile b/apps/examples/netpkt/Makefile index 015151713..fda4db240 100644 --- a/apps/examples/netpkt/Makefile +++ b/apps/examples/netpkt/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) diff --git a/apps/examples/nettest/Makefile b/apps/examples/nettest/Makefile index e4b0f3263..f7bd0f9ae 100644 --- a/apps/examples/nettest/Makefile +++ b/apps/examples/nettest/Makefile @@ -116,8 +116,17 @@ $(HOST_BIN): $(HOST_OBJS) $(call ARCHIVE, $(TARG_BIN), $(TARG_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) diff --git a/apps/examples/nrf24l01_term/Makefile b/apps/examples/nrf24l01_term/Makefile index 429e2bd34..f7203a6c1 100644 --- a/apps/examples/nrf24l01_term/Makefile +++ b/apps/examples/nrf24l01_term/Makefile @@ -87,8 +87,17 @@ $(COBJS): %$(OBJEXT): %.c $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) +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: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat #else #context: diff --git a/apps/examples/nsh/Makefile b/apps/examples/nsh/Makefile index 554c5fdf5..7432cd5d9 100644 --- a/apps/examples/nsh/Makefile +++ b/apps/examples/nsh/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) diff --git a/apps/examples/null/Makefile b/apps/examples/null/Makefile index 9d33cef3c..5e1716be4 100644 --- a/apps/examples/null/Makefile +++ b/apps/examples/null/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) diff --git a/apps/examples/nx/Makefile b/apps/examples/nx/Makefile index 2da9513b7..6add3b2be 100644 --- a/apps/examples/nx/Makefile +++ b/apps/examples/nx/Makefile @@ -86,8 +86,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) diff --git a/apps/examples/nxconsole/Makefile b/apps/examples/nxconsole/Makefile index c78c7b48a..18256d591 100644 --- a/apps/examples/nxconsole/Makefile +++ b/apps/examples/nxconsole/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) diff --git a/apps/examples/nxffs/Makefile b/apps/examples/nxffs/Makefile index 81b1b30bf..3bc9a2a87 100644 --- a/apps/examples/nxffs/Makefile +++ b/apps/examples/nxffs/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) diff --git a/apps/examples/nxflat/Makefile b/apps/examples/nxflat/Makefile index 1d46ad74d..e6882622d 100644 --- a/apps/examples/nxflat/Makefile +++ b/apps/examples/nxflat/Makefile @@ -80,8 +80,17 @@ headers: $(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: # We can't make dependencies in this directory because the required diff --git a/apps/examples/nxhello/Makefile b/apps/examples/nxhello/Makefile index 3a051ff8d..cebb07328 100644 --- a/apps/examples/nxhello/Makefile +++ b/apps/examples/nxhello/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) diff --git a/apps/examples/nximage/Makefile b/apps/examples/nximage/Makefile index b5b958583..5b5bb61c6 100644 --- a/apps/examples/nximage/Makefile +++ b/apps/examples/nximage/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) diff --git a/apps/examples/nxlines/Makefile b/apps/examples/nxlines/Makefile index 5076e28ae..191c3168b 100644 --- a/apps/examples/nxlines/Makefile +++ b/apps/examples/nxlines/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) diff --git a/apps/examples/nxtext/Makefile b/apps/examples/nxtext/Makefile index 983ce73bd..c1db8a40b 100644 --- a/apps/examples/nxtext/Makefile +++ b/apps/examples/nxtext/Makefile @@ -87,8 +87,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) diff --git a/apps/examples/ostest/Makefile b/apps/examples/ostest/Makefile index 9191e019b..7c4cca4bf 100644 --- a/apps/examples/ostest/Makefile +++ b/apps/examples/ostest/Makefile @@ -132,8 +132,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) diff --git a/apps/examples/pashello/Makefile b/apps/examples/pashello/Makefile index 0473e3d64..042e96dd4 100644 --- a/apps/examples/pashello/Makefile +++ b/apps/examples/pashello/Makefile @@ -85,8 +85,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) diff --git a/apps/examples/pipe/Makefile b/apps/examples/pipe/Makefile index 4f6e233e0..5d2c63db2 100644 --- a/apps/examples/pipe/Makefile +++ b/apps/examples/pipe/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) diff --git a/apps/examples/poll/Makefile b/apps/examples/poll/Makefile index e7cd88307..b621a2e93 100644 --- a/apps/examples/poll/Makefile +++ b/apps/examples/poll/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) diff --git a/apps/examples/posix_spawn/Makefile b/apps/examples/posix_spawn/Makefile index 8ef9e81d7..f07da05ca 100644 --- a/apps/examples/posix_spawn/Makefile +++ b/apps/examples/posix_spawn/Makefile @@ -85,8 +85,17 @@ build: @$(MAKE) -C filesystem TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" CROSSDEV=$(CROSSDEV) @$(MAKE) TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" build_lib +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: # We can't make dependencies in this directory because the required 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) diff --git a/apps/examples/qencoder/Makefile b/apps/examples/qencoder/Makefile index 377fa896f..bbde810ea 100644 --- a/apps/examples/qencoder/Makefile +++ b/apps/examples/qencoder/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) diff --git a/apps/examples/random/Makefile b/apps/examples/random/Makefile index cbcca8fe3..055cd12b9 100644 --- a/apps/examples/random/Makefile +++ b/apps/examples/random/Makefile @@ -81,8 +81,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) diff --git a/apps/examples/relays/Makefile b/apps/examples/relays/Makefile index c0b0b2e28..fa16181d6 100644 --- a/apps/examples/relays/Makefile +++ b/apps/examples/relays/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) 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) diff --git a/apps/examples/romfs/Makefile b/apps/examples/romfs/Makefile index 48145a52b..53572ac04 100644 --- a/apps/examples/romfs/Makefile +++ b/apps/examples/romfs/Makefile @@ -93,8 +93,17 @@ romfs_testdir.h : testdir.img $(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) diff --git a/apps/examples/sendmail/Makefile b/apps/examples/sendmail/Makefile index 3a19d879b..46b74b21a 100644 --- a/apps/examples/sendmail/Makefile +++ b/apps/examples/sendmail/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) diff --git a/apps/examples/serialblaster/Makefile b/apps/examples/serialblaster/Makefile index e3b36f84a..c512bca81 100644 --- a/apps/examples/serialblaster/Makefile +++ b/apps/examples/serialblaster/Makefile @@ -86,8 +86,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) diff --git a/apps/examples/serialrx/Makefile b/apps/examples/serialrx/Makefile index 04ba2129c..b12596194 100644 --- a/apps/examples/serialrx/Makefile +++ b/apps/examples/serialrx/Makefile @@ -86,8 +86,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) diff --git a/apps/examples/serloop/Makefile b/apps/examples/serloop/Makefile index 6a6db3e1f..7a91fe7c9 100644 --- a/apps/examples/serloop/Makefile +++ b/apps/examples/serloop/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) diff --git a/apps/examples/slcd/Makefile b/apps/examples/slcd/Makefile index 7753e578d..2f48b2014 100644 --- a/apps/examples/slcd/Makefile +++ b/apps/examples/slcd/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) diff --git a/apps/examples/smart/Makefile b/apps/examples/smart/Makefile index e754b1400..a0e92754b 100644 --- a/apps/examples/smart/Makefile +++ b/apps/examples/smart/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) diff --git a/apps/examples/smart_test/Makefile b/apps/examples/smart_test/Makefile index 464492d2f..9ce38f9cb 100644 --- a/apps/examples/smart_test/Makefile +++ b/apps/examples/smart_test/Makefile @@ -86,8 +86,17 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) 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 + # Register application ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) diff --git a/apps/examples/tcpecho/Makefile b/apps/examples/tcpecho/Makefile index bf640e0dc..55164114a 100644 --- a/apps/examples/tcpecho/Makefile +++ b/apps/examples/tcpecho/Makefile @@ -84,8 +84,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) diff --git a/apps/examples/telnetd/Makefile b/apps/examples/telnetd/Makefile index e2755d833..548d94476 100644 --- a/apps/examples/telnetd/Makefile +++ b/apps/examples/telnetd/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) diff --git a/apps/examples/thttpd/Makefile b/apps/examples/thttpd/Makefile index 8ce70cc70..a0bb30c96 100644 --- a/apps/examples/thttpd/Makefile +++ b/apps/examples/thttpd/Makefile @@ -80,8 +80,17 @@ headers: $(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) diff --git a/apps/examples/tiff/Makefile b/apps/examples/tiff/Makefile index 3a39fb778..527176b10 100644 --- a/apps/examples/tiff/Makefile +++ b/apps/examples/tiff/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) diff --git a/apps/examples/touchscreen/Makefile b/apps/examples/touchscreen/Makefile index f692ee7eb..77a740207 100644 --- a/apps/examples/touchscreen/Makefile +++ b/apps/examples/touchscreen/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) diff --git a/apps/examples/udp/Makefile b/apps/examples/udp/Makefile index d40aa089c..818578b0e 100644 --- a/apps/examples/udp/Makefile +++ b/apps/examples/udp/Makefile @@ -107,8 +107,17 @@ $(HOST_BIN): $(HOST_OBJS) .built: $(TARG_BIN) $(HOST_BIN) @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 $(TARG_SRCS) diff --git a/apps/examples/usbserial/Makefile b/apps/examples/usbserial/Makefile index c251d1ab9..a227dfadf 100644 --- a/apps/examples/usbserial/Makefile +++ b/apps/examples/usbserial/Makefile @@ -76,8 +76,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) diff --git a/apps/examples/usbterm/Makefile b/apps/examples/usbterm/Makefile index bc989b6a7..c64195709 100644 --- a/apps/examples/usbterm/Makefile +++ b/apps/examples/usbterm/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) diff --git a/apps/examples/watchdog/Makefile b/apps/examples/watchdog/Makefile index 0b4f632ff..16b78b43c 100644 --- a/apps/examples/watchdog/Makefile +++ b/apps/examples/watchdog/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) 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) diff --git a/apps/examples/wget/Makefile b/apps/examples/wget/Makefile index 5144cce62..a48a8d3eb 100644 --- a/apps/examples/wget/Makefile +++ b/apps/examples/wget/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) diff --git a/apps/examples/wgetjson/Makefile b/apps/examples/wgetjson/Makefile index 607148d17..de7f96248 100644 --- a/apps/examples/wgetjson/Makefile +++ b/apps/examples/wgetjson/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) diff --git a/apps/examples/xmlrpc/Makefile b/apps/examples/xmlrpc/Makefile index d02abeaa8..6e9340afd 100644 --- a/apps/examples/xmlrpc/Makefile +++ b/apps/examples/xmlrpc/Makefile @@ -84,8 +84,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) diff --git a/apps/graphics/screenshot/Makefile b/apps/graphics/screenshot/Makefile index 34322bcca..73e5ff28a 100644 --- a/apps/graphics/screenshot/Makefile +++ b/apps/graphics/screenshot/Makefile @@ -87,8 +87,17 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) 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) diff --git a/apps/netutils/thttpd/Makefile b/apps/netutils/thttpd/Makefile index 60c7fbe14..c9d952000 100644 --- a/apps/netutils/thttpd/Makefile +++ b/apps/netutils/thttpd/Makefile @@ -113,8 +113,17 @@ endif $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) 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) diff --git a/apps/system/cdcacm/Makefile b/apps/system/cdcacm/Makefile index 727bc16e3..be8c8dfdd 100644 --- a/apps/system/cdcacm/Makefile +++ b/apps/system/cdcacm/Makefile @@ -87,8 +87,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)$(APPNAME1)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME1),$(PRIORITY1),$(STACKSIZE1),$(APPNAME1)_main) diff --git a/apps/system/composite/Makefile b/apps/system/composite/Makefile index eb76546ca..837e159bd 100644 --- a/apps/system/composite/Makefile +++ b/apps/system/composite/Makefile @@ -87,8 +87,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)$(APPNAME1)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME1),$(PRIORITY1),$(STACKSIZE1),$(APPNAME1)_main) diff --git a/apps/system/flash_eraseall/Makefile b/apps/system/flash_eraseall/Makefile index 93f686e81..f9784d0a3 100644 --- a/apps/system/flash_eraseall/Makefile +++ b/apps/system/flash_eraseall/Makefile @@ -91,8 +91,17 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) 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 + # Register application ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) diff --git a/apps/system/free/Makefile b/apps/system/free/Makefile index 56d1019eb..5b6ac431a 100644 --- a/apps/system/free/Makefile +++ b/apps/system/free/Makefile @@ -87,8 +87,17 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) 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 + # Register application ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) diff --git a/apps/system/hex2bin/Makefile b/apps/system/hex2bin/Makefile index 61e0a69ee..0eeecb131 100644 --- a/apps/system/hex2bin/Makefile +++ b/apps/system/hex2bin/Makefile @@ -116,8 +116,17 @@ else rhex2mem: endif +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: rhex2bin rhex2mem .depend: Makefile $(SRCS) diff --git a/apps/system/i2c/Makefile b/apps/system/i2c/Makefile index 6b70957e3..baff663ec 100644 --- a/apps/system/i2c/Makefile +++ b/apps/system/i2c/Makefile @@ -80,8 +80,17 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) 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) diff --git a/apps/system/install/Makefile b/apps/system/install/Makefile index 9ff931e22..55e51398c 100644 --- a/apps/system/install/Makefile +++ b/apps/system/install/Makefile @@ -91,8 +91,17 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) 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 + # Register application ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) diff --git a/apps/system/mdio/Makefile b/apps/system/mdio/Makefile index e9cfb48d9..1c9b668e1 100644 --- a/apps/system/mdio/Makefile +++ b/apps/system/mdio/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) diff --git a/apps/system/nxplayer/Makefile b/apps/system/nxplayer/Makefile index 58a9e3d8a..2c2ae823d 100644 --- a/apps/system/nxplayer/Makefile +++ b/apps/system/nxplayer/Makefile @@ -93,8 +93,17 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) 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 + # Register application ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) diff --git a/apps/system/poweroff/Makefile b/apps/system/poweroff/Makefile index 1498c5751..98f47bfae 100644 --- a/apps/system/poweroff/Makefile +++ b/apps/system/poweroff/Makefile @@ -91,8 +91,17 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) 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 + # Register application ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) diff --git a/apps/system/prun/Makefile b/apps/system/prun/Makefile index 1ee853d8e..4cccbc492 100644 --- a/apps/system/prun/Makefile +++ b/apps/system/prun/Makefile @@ -97,8 +97,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) ifeq ($(CONFIG_SYSTEM_PEXEC),y) $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile diff --git a/apps/system/ramtest/Makefile b/apps/system/ramtest/Makefile index 997c8ea8f..0471dd25c 100644 --- a/apps/system/ramtest/Makefile +++ b/apps/system/ramtest/Makefile @@ -84,8 +84,17 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) 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 + # Register application ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) diff --git a/apps/system/ramtron/Makefile b/apps/system/ramtron/Makefile index c0f272066..62a25e609 100644 --- a/apps/system/ramtron/Makefile +++ b/apps/system/ramtron/Makefile @@ -91,8 +91,17 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) 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 + # Register application ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) diff --git a/apps/system/sdcard/Makefile b/apps/system/sdcard/Makefile index 3492f0adb..e314ab682 100644 --- a/apps/system/sdcard/Makefile +++ b/apps/system/sdcard/Makefile @@ -91,8 +91,17 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) 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 + # Register application ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) diff --git a/apps/system/sudoku/Makefile b/apps/system/sudoku/Makefile index dad32b458..f92d845d2 100644 --- a/apps/system/sudoku/Makefile +++ b/apps/system/sudoku/Makefile @@ -87,8 +87,17 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) 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 + # Register application ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) diff --git a/apps/system/sysinfo/Makefile b/apps/system/sysinfo/Makefile index 21388f3bc..7c0fa677e 100644 --- a/apps/system/sysinfo/Makefile +++ b/apps/system/sysinfo/Makefile @@ -92,8 +92,17 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) 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 + # Register application ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) diff --git a/apps/system/usbmsc/Makefile b/apps/system/usbmsc/Makefile index b9ad17576..781dc6da6 100644 --- a/apps/system/usbmsc/Makefile +++ b/apps/system/usbmsc/Makefile @@ -90,8 +90,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)$(APPNAME1)_main.bdat: $(DEPCONFIG) Makefile $(call REGISTER,$(APPNAME1),$(PRIORITY1),$(STACKSIZE1),$(APPNAME1)_main) diff --git a/apps/system/vi/Makefile b/apps/system/vi/Makefile index 9a71fe0cf..3fcafeac1 100644 --- a/apps/system/vi/Makefile +++ b/apps/system/vi/Makefile @@ -88,8 +88,17 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) 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 + # Register application ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) diff --git a/apps/system/zmodem/Makefile b/apps/system/zmodem/Makefile index ac87750ac..2f07eb1bd 100644 --- a/apps/system/zmodem/Makefile +++ b/apps/system/zmodem/Makefile @@ -87,8 +87,17 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) $(Q) 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 + # Register application ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) |