Make.defs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. ############################################################################
  2. # drivers/lcd/Make.defs
  3. #
  4. # Copyright (C) 2010-2012, 2017-2018 Gregory Nutt. All rights reserved.
  5. # Author: Gregory Nutt <gnutt@nuttx.org>
  6. #
  7. # Redistribution and use in source and binary forms, with or without
  8. # modification, are permitted provided that the following conditions
  9. # are met:
  10. #
  11. # 1. Redistributions of source code must retain the above copyright
  12. # notice, this list of conditions and the following disclaimer.
  13. # 2. Redistributions in binary form must reproduce the above copyright
  14. # notice, this list of conditions and the following disclaimer in
  15. # the documentation and/or other materials provided with the
  16. # distribution.
  17. # 3. Neither the name NuttX nor the names of its contributors may be
  18. # used to endorse or promote products derived from this software
  19. # without specific prior written permission.
  20. #
  21. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  22. # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  23. # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  24. # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  25. # COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  26. # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  27. # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  28. # OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  29. # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  30. # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
  31. # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  32. # POSSIBILITY OF SUCH DAMAGE.
  33. #
  34. ############################################################################
  35. ifeq ($(CONFIG_LCD),y)
  36. # Support for the generic LCD framebufer front-end
  37. ifeq ($(CONFIG_LCD_FRAMEBUFFER),y)
  38. CSRCS += lcd_framebuffer.c
  39. endif
  40. # Include support for Graphics LCD drivers
  41. ifeq ($(CONFIG_LCD_FT80X),y)
  42. CSRCS += ft80x.c
  43. ifeq ($(CONFIG_LCD_FT80X_SPI),y)
  44. CSRCS += ft80x_spi.c
  45. else ifeq ($(CONFIG_LCD_FT80X_I2C),y)
  46. CSRCS += ft80x_i2c.c
  47. endif
  48. endif
  49. ifeq ($(CONFIG_LCD_LPM013M091A),y)
  50. CSRCS += lpm013m091a.c
  51. endif
  52. ifeq ($(CONFIG_LCD_P14201),y)
  53. CSRCS += p14201.c
  54. endif
  55. ifeq ($(CONFIG_LCD_UG2864AMBAG01),y)
  56. CSRCS += ug-2864ambag01.c
  57. endif
  58. ifeq ($(CONFIG_LCD_UG9664HSWAG01),y)
  59. CSRCS += ug-9664hswag01.c
  60. endif
  61. ifeq ($(CONFIG_LCD_SSD1306),y)
  62. CSRCS += ssd1306_base.c
  63. endif
  64. ifeq ($(CONFIG_LCD_SSD1306_SPI),y)
  65. CSRCS += ssd1306_spi.c
  66. endif
  67. ifeq ($(CONFIG_LCD_SSD1306_I2C),y)
  68. CSRCS += ssd1306_i2c.c
  69. endif
  70. ifeq ($(CONFIG_LCD_SSD1289),y)
  71. CSRCS += ssd1289.c
  72. endif
  73. ifeq ($(CONFIG_LCD_SSD1351),y)
  74. CSRCS += ssd1351.c
  75. endif
  76. ifeq ($(CONFIG_LCD_MIO283QT2),y)
  77. CSRCS += mio283qt2.c
  78. endif
  79. ifeq ($(CONFIG_LCD_MAX7219),y)
  80. CSRCS += max7219.c
  81. endif
  82. ifeq ($(CONFIG_LCD_MIO283QT9A),y)
  83. CSRCS += mio283qt9a.c
  84. endif
  85. ifeq ($(CONFIG_LCD_PCD8544),y)
  86. CSRCS += pcd8544.c
  87. endif
  88. ifeq ($(CONFIG_LCD_ST7565),y)
  89. CSRCS += st7565.c
  90. endif
  91. ifeq ($(CONFIG_LCD_ST7567),y)
  92. CSRCS += st7567.c
  93. endif
  94. ifeq ($(CONFIG_LCD_SHARP_MEMLCD),y)
  95. CSRCS += memlcd.c
  96. endif
  97. ifeq ($(CONFIG_LCD_ILI9340),y)
  98. CSRCS += ili9340.c
  99. endif
  100. ifeq ($(CONFIG_LCD_ILI9341),y)
  101. CSRCS += ili9341.c
  102. endif
  103. ifeq ($(CONFIG_LCD_RA8875),y)
  104. CSRCS += ra8875.c
  105. endif
  106. endif # CONFIG_LCD
  107. ifeq ($(CONFIG_SLCD),y)
  108. # Include support for Alphanumeric/Segment LCD drivers
  109. ifeq ($(CONFIG_LCD_BACKPACK),y)
  110. CSRCS += pcf8574_lcd_backpack.c
  111. endif
  112. ifeq ($(CONFIG_LCD_ST7032),y)
  113. CSRCS += st7032.c
  114. endif
  115. endif # CONFIG_SLCD
  116. # Other LCD-related devices
  117. ifeq ($(CONFIG_LCD_TDA19988),y)
  118. CSRCS += tda19988.c
  119. endif
  120. # Include LCD driver build support (the nested if-then-else implements an OR)
  121. ifeq ($(CONFIG_LCD),y)
  122. DEPPATH += --dep-path lcd
  123. VPATH += :lcd
  124. CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)drivers$(DELIM)lcd}
  125. else ifeq ($(CONFIG_SLCD),y)
  126. DEPPATH += --dep-path lcd
  127. VPATH += :lcd
  128. CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)drivers$(DELIM)lcd}
  129. else ifeq ($(CONFIG_LCD_OTHER),y)
  130. DEPPATH += --dep-path lcd
  131. VPATH += :lcd
  132. CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)drivers$(DELIM)lcd}
  133. endif