summaryrefslogtreecommitdiff
path: root/nuttx/Makefile.unix
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-08-30 10:43:58 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-08-30 10:43:58 -0600
commit994aa23afe0095bbb54a0bcf83d33508936ac479 (patch)
tree6112be4a4b268830b92ac656eec42587132e2446 /nuttx/Makefile.unix
parent9936518f53af0db714e8e5871fb08ef934111c2d (diff)
downloadpx4-nuttx-994aa23afe0095bbb54a0bcf83d33508936ac479.tar.gz
px4-nuttx-994aa23afe0095bbb54a0bcf83d33508936ac479.tar.bz2
px4-nuttx-994aa23afe0095bbb54a0bcf83d33508936ac479.zip
Separate flat, protected, and kernel mode library selected into separate files. The conditional logic as exceed my able to comprehend and maintain the selections.
Diffstat (limited to 'nuttx/Makefile.unix')
-rw-r--r--nuttx/Makefile.unix9
1 files changed, 8 insertions, 1 deletions
diff --git a/nuttx/Makefile.unix b/nuttx/Makefile.unix
index dfc0762d5..9c6ee8132 100644
--- a/nuttx/Makefile.unix
+++ b/nuttx/Makefile.unix
@@ -124,8 +124,15 @@ endif
# Library build selections
+ifeq ($(CONFIG_BUILD_PROTECTED),y)
+include ProtectedLibs.mk
+else
+ifeq ($(CONFIG_BUILD_KERNEL),y)
+include KernelLibs.mk
+else
include FlatLibs.mk
-
+endif
+endif
# LINKLIBS derives from NUTTXLIBS and is simply the same list with the
# subdirectory removed