diff options
Diffstat (limited to 'quantum/visualizer/visualizer.mk')
| -rw-r--r-- | quantum/visualizer/visualizer.mk | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/quantum/visualizer/visualizer.mk b/quantum/visualizer/visualizer.mk index 56525ffd9..b5dfad8e1 100644 --- a/quantum/visualizer/visualizer.mk +++ b/quantum/visualizer/visualizer.mk | |||
| @@ -20,14 +20,14 @@ | |||
| 20 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | 20 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 21 | # SOFTWARE. | 21 | # SOFTWARE. |
| 22 | 22 | ||
| 23 | GFXLIB = $(VISUALIZER_DIR)/ugfx | ||
| 24 | SRC += $(VISUALIZER_DIR)/visualizer.c | 23 | SRC += $(VISUALIZER_DIR)/visualizer.c |
| 25 | UINCDIR += $(GFXINC) $(VISUALIZER_DIR) | 24 | EXTRAINCDIRS += $(GFXINC) $(VISUALIZER_DIR) |
| 25 | GFXLIB = $(LIB_PATH)/ugfx | ||
| 26 | VPATH += $(VISUALIZER_PATH) | ||
| 26 | 27 | ||
| 27 | ifdef LCD_ENABLE | 28 | ifdef LCD_ENABLE |
| 28 | UDEFS += -DLCD_ENABLE | 29 | OPT_DEFS += -DLCD_ENABLE |
| 29 | ULIBS += -lm | 30 | ULIBS += -lm |
| 30 | USE_UGFX = yes | ||
| 31 | endif | 31 | endif |
| 32 | 32 | ||
| 33 | ifdef LCD_BACKLIGHT_ENABLE | 33 | ifdef LCD_BACKLIGHT_ENABLE |
| @@ -35,21 +35,21 @@ SRC += $(VISUALIZER_DIR)/lcd_backlight.c | |||
| 35 | ifndef EMULATOR | 35 | ifndef EMULATOR |
| 36 | SRC += lcd_backlight_hal.c | 36 | SRC += lcd_backlight_hal.c |
| 37 | endif | 37 | endif |
| 38 | UDEFS += -DLCD_BACKLIGHT_ENABLE | 38 | OPT_DEFS += -DLCD_BACKLIGHT_ENABLE |
| 39 | endif | 39 | endif |
| 40 | 40 | ||
| 41 | ifdef LED_ENABLE | 41 | ifdef LED_ENABLE |
| 42 | SRC += $(VISUALIZER_DIR)/led_test.c | 42 | SRC += $(VISUALIZER_DIR)/led_test.c |
| 43 | UDEFS += -DLED_ENABLE | 43 | UDEFS += -DLED_ENABLE |
| 44 | USE_UGFX = yes | ||
| 45 | endif | 44 | endif |
| 46 | 45 | ||
| 47 | ifdef USE_UGFX | ||
| 48 | include $(GFXLIB)/gfx.mk | 46 | include $(GFXLIB)/gfx.mk |
| 49 | SRC += $(GFXSRC) | 47 | #SERIAL_SRC = $(wildcard $(SERIAL_PATH)/protocol/*.c) |
| 50 | UDEFS += $(patsubst %,-D%,$(patsubst -D%,%,$(GFXDEFS))) | 48 | #SERIAL_SRC += $(wildcard $(SERIAL_PATH)/system/*.c) |
| 51 | ULIBS += $(patsubst %,-l%,$(patsubst -l%,%,$(GFXLIBS))) | 49 | #SRC += $(patsubst $(QUANTUM_PATH)/%,%,$(SERIAL_SRC)) |
| 52 | endif | 50 | #SRC += $(GFXSRC) |
| 51 | OPT_DEFS += $(patsubst %,-D%,$(patsubst -D%,%,$(GFXDEFS))) | ||
| 52 | #ULIBS += $(patsubst %,-l%,$(patsubst -l%,%,$(GFXLIBS))) | ||
| 53 | 53 | ||
| 54 | ifndef VISUALIZER_USER | 54 | ifndef VISUALIZER_USER |
| 55 | VISUALIZER_USER = visualizer_user.c | 55 | VISUALIZER_USER = visualizer_user.c |
