summaryrefslogtreecommitdiff
path: root/visualizer.mk
diff options
context:
space:
mode:
Diffstat (limited to 'visualizer.mk')
-rw-r--r--visualizer.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/visualizer.mk b/visualizer.mk
index 8ffc1e4aca..ff4b61f089 100644
--- a/visualizer.mk
+++ b/visualizer.mk
@@ -23,11 +23,13 @@
GFXLIB = $(VISUALIZER_DIR)/ugfx
ifdef LCD_ENABLE
include $(GFXLIB)/gfx.mk
+OPT_DEFS += -DLCD_ENABLE
endif
-SRC += $(GFXSRC)
+SRC += $(GFXSRC) $(VISUALIZER_DIR)/visualizer.c
INC += $(GFXINC) $(VISUALIZER_DIR)
ifdef LCD_BACKLIGHT_ENABLE
SRC += $(VISUALIZER_DIR)/lcd_backlight.c
SRC += lcd_backlight_hal.c
+OPT_DEFS += -DLCD_BACKLIGHT_ENABLE
endif