Make.defs 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. ############################################################################
  2. # drivers/lcd/Make.defs
  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. ifeq ($(CONFIG_LCD),y)
  21. # Support for the generic LCD framebuffer front-end
  22. ifeq ($(CONFIG_LCD_FRAMEBUFFER),y)
  23. CSRCS += lcd_framebuffer.c
  24. endif
  25. ifeq ($(CONFIG_LCD_DEV),y)
  26. CSRCS += lcd_dev.c
  27. endif
  28. # Include support for Graphics LCD drivers
  29. ifeq ($(CONFIG_LCD_FT80X),y)
  30. CSRCS += ft80x.c
  31. ifeq ($(CONFIG_LCD_FT80X_SPI),y)
  32. CSRCS += ft80x_spi.c
  33. else ifeq ($(CONFIG_LCD_FT80X_I2C),y)
  34. CSRCS += ft80x_i2c.c
  35. endif
  36. endif
  37. ifeq ($(CONFIG_LCD_LPM013M091A),y)
  38. CSRCS += lpm013m091a.c
  39. endif
  40. ifeq ($(CONFIG_LCD_P14201),y)
  41. CSRCS += p14201.c
  42. endif
  43. ifeq ($(CONFIG_LCD_UG2864AMBAG01),y)
  44. CSRCS += ug-2864ambag01.c
  45. endif
  46. ifeq ($(CONFIG_LCD_UG9664HSWAG01),y)
  47. CSRCS += ug-9664hswag01.c
  48. endif
  49. ifeq ($(CONFIG_LCD_SSD1306),y)
  50. CSRCS += ssd1306_base.c
  51. endif
  52. ifeq ($(CONFIG_LCD_SSD1306_SPI),y)
  53. CSRCS += ssd1306_spi.c
  54. endif
  55. ifeq ($(CONFIG_LCD_SSD1306_I2C),y)
  56. CSRCS += ssd1306_i2c.c
  57. endif
  58. ifeq ($(CONFIG_LCD_SSD1289),y)
  59. CSRCS += ssd1289.c
  60. endif
  61. ifeq ($(CONFIG_LCD_SSD1351),y)
  62. CSRCS += ssd1351.c
  63. endif
  64. ifeq ($(CONFIG_LCD_MIO283QT2),y)
  65. CSRCS += mio283qt2.c
  66. endif
  67. ifeq ($(CONFIG_LCD_MAX7219),y)
  68. CSRCS += max7219.c
  69. endif
  70. ifeq ($(CONFIG_LCD_MIO283QT9A),y)
  71. CSRCS += mio283qt9a.c
  72. endif
  73. ifeq ($(CONFIG_LCD_PCD8544),y)
  74. CSRCS += pcd8544.c
  75. endif
  76. ifeq ($(CONFIG_LCD_ST7565),y)
  77. CSRCS += st7565.c
  78. endif
  79. ifeq ($(CONFIG_LCD_ST7567),y)
  80. CSRCS += st7567.c
  81. endif
  82. ifeq ($(CONFIG_LCD_SHARP_MEMLCD),y)
  83. CSRCS += memlcd.c
  84. endif
  85. ifeq ($(CONFIG_LCD_ILI9225),y)
  86. CSRCS += ili9225.c
  87. endif
  88. ifeq ($(CONFIG_LCD_ILI9340),y)
  89. CSRCS += ili9340.c
  90. endif
  91. ifeq ($(CONFIG_LCD_ILI9341),y)
  92. CSRCS += ili9341.c
  93. endif
  94. ifeq ($(CONFIG_LCD_LCDDRV_SPIIF),y)
  95. CSRCS += lcddrv_spiif.c
  96. endif
  97. ifeq ($(CONFIG_LCD_RA8875),y)
  98. CSRCS += ra8875.c
  99. endif
  100. ifeq ($(CONFIG_LCD_ST7735),y)
  101. CSRCS += st7735.c
  102. endif
  103. ifeq ($(CONFIG_LCD_ST7789),y)
  104. CSRCS += st7789.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. ifeq ($(CONFIG_LCD_HT16K33),y)
  116. CSRCS += ht16k33_14seg.c
  117. endif
  118. endif # CONFIG_SLCD
  119. # Other LCD-related devices
  120. ifeq ($(CONFIG_LCD_TDA19988),y)
  121. CSRCS += tda19988.c
  122. endif
  123. # Include LCD driver build support (the nested if-then-else implements an OR)
  124. ifeq ($(CONFIG_LCD),y)
  125. DEPPATH += --dep-path lcd
  126. VPATH += :lcd
  127. CFLAGS += ${shell $(INCDIR) "$(CC)" $(TOPDIR)$(DELIM)drivers$(DELIM)lcd}
  128. else ifeq ($(CONFIG_SLCD),y)
  129. DEPPATH += --dep-path lcd
  130. VPATH += :lcd
  131. CFLAGS += ${shell $(INCDIR) "$(CC)" $(TOPDIR)$(DELIM)drivers$(DELIM)lcd}
  132. else ifeq ($(CONFIG_LCD_OTHER),y)
  133. DEPPATH += --dep-path lcd
  134. VPATH += :lcd
  135. CFLAGS += ${shell $(INCDIR) "$(CC)" $(TOPDIR)$(DELIM)drivers$(DELIM)lcd}
  136. endif