aboutsummaryrefslogtreecommitdiffstats
path: root/lcd.mk
diff options
context:
space:
mode:
Diffstat (limited to 'lcd.mk')
-rw-r--r--lcd.mk24
1 files changed, 12 insertions, 12 deletions
diff --git a/lcd.mk b/lcd.mk
index 030c4398..1c54d5e9 100644
--- a/lcd.mk
+++ b/lcd.mk
@@ -1,13 +1,13 @@
-# LCD files.
-LCDSRC = ${CHIBIOS}/ext/lcd/glcd.c \
- ${CHIBIOS}/ext/lcd/fonts.c \
- ${CHIBIOS}/ext/lcd/touchpad.c \
- ${CHIBIOS}/ext/lcd/graph.c \
- ${CHIBIOS}/ext/lcd/gui.c \
- ${CHIBIOS}/ext/lcd/drivers/ssd1289_lld.c \
- ${CHIBIOS}/ext/lcd/drivers/s6d1121_lld.c \
- ${CHIBIOS}/ext/lcd/drivers/ads7843_lld.c \
- ${CHIBIOS}/ext/lcd/drivers/xpt2046_lld.c \
+LCDLIB = $(CHIBIOS)/ext/lcd
-LCDINC = ${CHIBIOS}/ext/lcd \
- ${CHIBIOS}/etc/lcd/drivers
+include $(LCDLIB)/drivers/drivers.mk
+
+LCDSRC = $(LCDLIB)/glcd.c \
+ $(LCDLIB)/fonts.c \
+ $(LCDLIB)/touchpad.c \
+ $(LCDLIB)/graph.c \
+ $(LCDLIB)/gui.c \
+ $(LCD_DRIVERS_SRC)
+
+LCDINC = $(LCDLIB) \
+ $(LCD_DRIVERS_INC)