summaryrefslogtreecommitdiff
path: root/apps/examples/posix_spawn/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/posix_spawn/Makefile')
-rw-r--r--apps/examples/posix_spawn/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/examples/posix_spawn/Makefile b/apps/examples/posix_spawn/Makefile
index 41502a282..9a447efa7 100644
--- a/apps/examples/posix_spawn/Makefile
+++ b/apps/examples/posix_spawn/Makefile
@@ -86,11 +86,11 @@ build:
@$(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)
+$(BIN_DIR)$(DELIM)$(PROGNAME): $(OBJS)
+ @echo "LD: $(PROGNAME)"
+ $(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) -o $(INSTALL_DIR)$(DELIM)$(PROGNAME) $(ARCHCRT0OBJ) $(LDLIBS)
-install: $(INSTALL_DIR)/$(PROGNAME)
+install: $(BIN_DIR)$(DELIM)$(PROGNAME)
else
install: