Make.defs 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. ############################################################################
  2. # libs/libc/misc/Make.defs
  3. #
  4. # Copyright (C) 2011-2012, 2014, 2016, 2018-2019 Gregory Nutt. All rights
  5. # reserved.
  6. # Author: Gregory Nutt <gnutt@nuttx.org>
  7. #
  8. # Redistribution and use in source and binary forms, with or without
  9. # modification, are permitted provided that the following conditions
  10. # are met:
  11. #
  12. # 1. Redistributions of source code must retain the above copyright
  13. # notice, this list of conditions and the following disclaimer.
  14. # 2. Redistributions in binary form must reproduce the above copyright
  15. # notice, this list of conditions and the following disclaimer in
  16. # the documentation and/or other materials provided with the
  17. # distribution.
  18. # 3. Neither the name NuttX nor the names of its contributors may be
  19. # used to endorse or promote products derived from this software
  20. # without specific prior written permission.
  21. #
  22. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  23. # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  24. # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  25. # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  26. # COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  27. # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  28. # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  29. # OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  30. # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  31. # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
  32. # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  33. # POSSIBILITY OF SUCH DAMAGE.
  34. #
  35. ############################################################################
  36. # Add the internal C files to the build
  37. CSRCS += lib_stream.c lib_utsname.c
  38. CSRCS += lib_xorshift128.c lib_tea_encrypt.c lib_tea_decrypt.c
  39. ifneq ($(CONFIG_STDIO_DISABLE_BUFFERING),y)
  40. CSRCS += lib_filesem.c
  41. endif
  42. # Support for platforms that do not have long long types
  43. CSRCS += lib_umul32.c lib_umul64.c lib_umul32x64.c
  44. CSRCS += lib_uadd32x64.c lib_uadd64.c lib_usub64x32.c lib_usub64.c
  45. # Add C files that depend on file OR socket descriptors
  46. CSRCS += lib_sendfile.c
  47. ifneq ($(CONFIG_NFILE_STREAMS),0)
  48. CSRCS += lib_streamsem.c
  49. endif
  50. ifeq ($(CONFIG_PIPES),y)
  51. CSRCS += lib_mkfifo.c
  52. endif
  53. # Add the miscellaneous C files to the build
  54. CSRCS += lib_crc64.c lib_crc32.c lib_crc16.c lib_crc8.c lib_crc8ccitt.c
  55. CSRCS += lib_dumpbuffer.c lib_match.c lib_debug.c
  56. # Keyboard driver encoder/decoder
  57. ifeq ($(CONFIG_LIB_KBDCODEC),y)
  58. CSRCS += lib_kbdencode.c lib_kbddecode.c
  59. endif
  60. # SLCD driver encoder/decoder
  61. ifeq ($(CONFIG_LIB_SLCDCODEC),y)
  62. CSRCS += lib_slcdencode.c lib_slcddecode.c
  63. endif
  64. # Environment search path support
  65. ifeq ($(CONFIG_LIB_ENVPATH),y)
  66. CSRCS += lib_envpath.c
  67. endif
  68. # To ensure uname information is newest,
  69. # add lib_utsname.o to phony target for force rebuild
  70. .PHONY: lib_utsname$(OBJEXT)
  71. # Add the misc directory to the build
  72. DEPPATH += --dep-path misc
  73. VPATH += :misc