aboutsummaryrefslogtreecommitdiffstats
path: root/visualizer.mk
diff options
context:
space:
mode:
Diffstat (limited to 'visualizer.mk')
-rw-r--r--visualizer.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/visualizer.mk b/visualizer.mk
index 5cc199cf4..c51f8ba5d 100644
--- a/visualizer.mk
+++ b/visualizer.mk
@@ -21,7 +21,9 @@
# SOFTWARE.
GFXLIB = $(VISUALIZER_DIR)/ugfx
+ifndef EMULATOR
SRC += $(VISUALIZER_DIR)/visualizer.c
+endif
UINCDIR += $(GFXINC) $(VISUALIZER_DIR)
ifdef LCD_ENABLE
@@ -45,9 +47,13 @@ endif
ifdef USE_UGFX
include $(GFXLIB)/gfx.mk
SRC += $(GFXSRC)
+UDEFS += $(patsubst %,-D%,$(patsubst -D%,%,$(GFXDEFS)))
+ULIBS += $(patsubst %,-l%,$(patsubst -l%,%,$(GFXLIBS)))
endif
ifndef VISUALIZER_USER
+ifndef EMULATOR
VISUALIZER_USER = visualizer_user.c
endif
+endif
SRC += $(VISUALIZER_USER) \ No newline at end of file