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/examples/nrf24l01_term/Makefile | |
parent | 8aabf57b45b523cbcc96c979826a8f809cd7bd73 (diff) | |
download | nuttx-beb70efffcde9f35e3ab80c748c38041677d1ac0.tar.gz nuttx-beb70efffcde9f35e3ab80c748c38041677d1ac0.tar.bz2 nuttx-beb70efffcde9f35e3ab80c748c38041677d1ac0.zip |
Add program installation for CONFIG_BUILD_KERNEL in all Makefiles that build a main()
Diffstat (limited to 'apps/examples/nrf24l01_term/Makefile')
-rw-r--r-- | apps/examples/nrf24l01_term/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
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: |