FlatLibs.mk 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. ############################################################################
  2. # tools/FlatLibs.mk
  3. #
  4. # Licensed to the Apache Software Foundation (ASF) under one or more
  5. # contributor license agreements. See the NOTICE file distributed with
  6. # this work for additional information regarding copyright ownership. The
  7. # ASF licenses this file to you under the Apache License, Version 2.0 (the
  8. # "License"); you may not use this file except in compliance with the
  9. # License. You may obtain a copy of the License at
  10. #
  11. # http://www.apache.org/licenses/LICENSE-2.0
  12. #
  13. # Unless required by applicable law or agreed to in writing, software
  14. # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  15. # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  16. # License for the specific language governing permissions and limitations
  17. # under the License.
  18. #
  19. ############################################################################
  20. # NUTTXLIBS is the list of NuttX libraries that is passed to the
  21. # processor-specific Makefile to build the final NuttX target.
  22. # USERLIBS is the list of libraries used to build the final user-space
  23. # application
  24. # EXPORTLIBS is the list of libraries that should be exported by
  25. # 'make export' is
  26. NUTTXLIBS = staging$(DELIM)libsched$(LIBEXT)
  27. USERLIBS =
  28. # Driver support.
  29. NUTTXLIBS += staging$(DELIM)libdrivers$(LIBEXT)
  30. # External code support
  31. ifeq ($(EXTERNALDIR),external)
  32. NUTTXLIBS += staging$(DELIM)libexternal$(LIBEXT)
  33. endif
  34. # Add libraries for board support
  35. NUTTXLIBS += staging$(DELIM)libboards$(LIBEXT)
  36. # Add libraries for syscall support.
  37. NUTTXLIBS += staging$(DELIM)libc$(LIBEXT) staging$(DELIM)libmm$(LIBEXT)
  38. NUTTXLIBS += staging$(DELIM)libarch$(LIBEXT)
  39. ifeq ($(CONFIG_LIB_SYSCALL),y)
  40. NUTTXLIBS += staging$(DELIM)libstubs$(LIBEXT)
  41. USERLIBS += staging$(DELIM)libproxies$(LIBEXT)
  42. endif
  43. # Add library for system call instrumentation if needed
  44. ifeq ($(CONFIG_SCHED_INSTRUMENTATION_SYSCALL),y)
  45. NUTTXLIBS += staging$(DELIM)libwraps$(LIBEXT)
  46. endif
  47. # Add libraries for two pass build support. The special directory pass1
  48. # may be populated so that application generated logic can be included into
  49. # the kernel build
  50. ifeq ($(CONFIG_BUILD_2PASS),y)
  51. NUTTXLIBS += staging$(DELIM)libpass1$(LIBEXT)
  52. endif
  53. # Add libraries for C++ support. CXX, CXXFLAGS, and COMPILEXX must
  54. # be defined in Make.defs for this to work!
  55. ifeq ($(CONFIG_HAVE_CXX),y)
  56. NUTTXLIBS += staging$(DELIM)libxx$(LIBEXT)
  57. endif
  58. # Add library for application support.
  59. ifneq ($(APPDIR),)
  60. NUTTXLIBS += staging$(DELIM)libapps$(LIBEXT)
  61. endif
  62. # Add libraries for network support
  63. ifeq ($(CONFIG_NET),y)
  64. NUTTXLIBS += staging$(DELIM)libnet$(LIBEXT)
  65. endif
  66. # Add libraries for Crypto API support
  67. ifeq ($(CONFIG_CRYPTO),y)
  68. NUTTXLIBS += staging$(DELIM)libcrypto$(LIBEXT)
  69. endif
  70. # Add libraries for file system support
  71. NUTTXLIBS += staging$(DELIM)libfs$(LIBEXT) staging$(DELIM)libbinfmt$(LIBEXT)
  72. # Add libraries for the NX graphics sub-system
  73. ifeq ($(CONFIG_NX),y)
  74. NUTTXLIBS += staging$(DELIM)libgraphics$(LIBEXT)
  75. NUTTXLIBS += staging$(DELIM)libnx$(LIBEXT)
  76. else ifeq ($(CONFIG_NXFONTS),y)
  77. NUTTXLIBS += staging$(DELIM)libnx$(LIBEXT)
  78. endif
  79. # Add libraries for the Audio sub-system
  80. ifeq ($(CONFIG_AUDIO),y)
  81. NUTTXLIBS += staging$(DELIM)libaudio$(LIBEXT)
  82. endif
  83. # Add libraries for the Video sub-system
  84. ifeq ($(CONFIG_VIDEO),y)
  85. NUTTXLIBS += staging$(DELIM)libvideo$(LIBEXT)
  86. endif
  87. # Add libraries for the Wireless sub-system
  88. ifeq ($(CONFIG_WIRELESS),y)
  89. NUTTXLIBS += staging$(DELIM)libwireless$(LIBEXT)
  90. endif
  91. # Add DSP library
  92. ifeq ($(CONFIG_LIBDSP),y)
  93. NUTTXLIBS += staging$(DELIM)libdsp$(LIBEXT)
  94. endif
  95. ifeq ($(CONFIG_OPENAMP),y)
  96. NUTTXLIBS += staging$(DELIM)libopenamp$(LIBEXT)
  97. endif
  98. # Export all libraries
  99. EXPORTLIBS = $(NUTTXLIBS)