From 994aa23afe0095bbb54a0bcf83d33508936ac479 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 30 Aug 2014 10:43:58 -0600 Subject: Separate flat, protected, and kernel mode library selected into separate files. The conditional logic as exceed my able to comprehend and maintain the selections. --- nuttx/Makefile.unix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'nuttx/Makefile.unix') 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 -- cgit v1.2.3