summaryrefslogtreecommitdiff
path: root/apps/examples/elf/tests/errno/Makefile
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-09-05 13:59:20 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-09-05 13:59:20 -0600
commit294d526ed22c1aafa8b419f51632f31a673657aa (patch)
treefa22364c86bce9c8bc3c2e592d1d34ebed294fbe /apps/examples/elf/tests/errno/Makefile
parent59c6dda4d3d206130ca23542e2b812724196986c (diff)
downloadpx4-nuttx-294d526ed22c1aafa8b419f51632f31a673657aa.tar.gz
px4-nuttx-294d526ed22c1aafa8b419f51632f31a673657aa.tar.bz2
px4-nuttx-294d526ed22c1aafa8b419f51632f31a673657aa.zip
Provide library names and paths in apps/import/Make.defs
Diffstat (limited to 'apps/examples/elf/tests/errno/Makefile')
-rw-r--r--apps/examples/elf/tests/errno/Makefile14
1 files changed, 6 insertions, 8 deletions
diff --git a/apps/examples/elf/tests/errno/Makefile b/apps/examples/elf/tests/errno/Makefile
index d0f6f8256..b9029e163 100644
--- a/apps/examples/elf/tests/errno/Makefile
+++ b/apps/examples/elf/tests/errno/Makefile
@@ -41,28 +41,26 @@ else
NUTTXLIB = "$(TOPDIR)$(DELIM)lib"
endif
-LIBPATH =
ifeq ($(CONFIG_EXAMPLES_ELF_SYSCALL),y)
LDELFFLAGS += -Bstatic
-LIBPATH += -L $(NUTTXLIB)
+LDLIBPATH += -L $(NUTTXLIB)
else
ifeq ($(CONFIG_EXAMPLES_ELF_LIBC),y)
LDELFFLAGS += -Bstatic
-LIBPATH += -L $(NUTTXLIB)
+LDLIBPATH += -L $(NUTTXLIB)
endif
endif
-LIBS =
ifeq ($(CONFIG_EXAMPLES_ELF_LIBC),y)
ifeq ($(CONFIG_BUILD_PROTECTED),y)
-LIBS += -luc
+LDLIBS += -luc
else
-LIBS += -lc
+LDLIBS += -lc
endif
endif
ifeq ($(CONFIG_EXAMPLES_ELF_SYSCALL),y)
-LIBS += -lproxies
+LDLIBS += -lproxies
endif
BIN = errno
@@ -78,7 +76,7 @@ $(OBJS): %.o: %.c
$(BIN): $(OBJS)
@echo "LD: $<"
- $(Q) $(LD) $(LDELFFLAGS) $(LIBPATH) -o $@ $^ $(LIBS)
+ $(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) -o $@ $^ $(LDLIBS)
clean:
$(call DELFILE, $(BIN))