summaryrefslogtreecommitdiff
path: root/nuttx/Makefile.unix
diff options
context:
space:
mode:
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