55 lines
1.2 KiB
Makefile
55 lines
1.2 KiB
Makefile
# Copyright 2022 Manna Harbour
|
|
# https://github.com/manna-harbour/miryoku
|
|
|
|
# alternative layout options
|
|
|
|
ifneq ($(strip $(MIRYOKU_ALPHAS)),)
|
|
OPT_DEFS += -DMIRYOKU_ALPHAS_$(MIRYOKU_ALPHAS)
|
|
endif
|
|
|
|
ifneq ($(strip $(MIRYOKU_EXTRA)),)
|
|
OPT_DEFS += -DMIRYOKU_EXTRA_$(MIRYOKU_EXTRA)
|
|
endif
|
|
|
|
ifneq ($(strip $(MIRYOKU_TAP)),)
|
|
OPT_DEFS += -DMIRYOKU_TAP_$(MIRYOKU_TAP)
|
|
endif
|
|
|
|
ifneq ($(strip $(MIRYOKU_NAV)),)
|
|
OPT_DEFS += -DMIRYOKU_NAV_$(MIRYOKU_NAV)
|
|
endif
|
|
|
|
ifneq ($(strip $(MIRYOKU_CLIPBOARD)),)
|
|
OPT_DEFS += -DMIRYOKU_CLIPBOARD_$(MIRYOKU_CLIPBOARD)
|
|
endif
|
|
|
|
ifneq ($(strip $(MIRYOKU_LAYERS)),)
|
|
OPT_DEFS += -DMIRYOKU_LAYERS_$(MIRYOKU_LAYERS)
|
|
endif
|
|
|
|
# subset mappings
|
|
|
|
ifneq ($(strip $(MIRYOKU_MAPPING)),)
|
|
OPT_DEFS += -DMIRYOKU_MAPPING_$(MIRYOKU_MAPPING)
|
|
endif
|
|
|
|
# kludges
|
|
|
|
# thumb combos
|
|
ifeq ($(strip $(MIRYOKU_KLUDGE_THUMBCOMBOS)),yes)
|
|
COMBO_ENABLE = yes
|
|
OPT_DEFS += -DMIRYOKU_KLUDGE_THUMBCOMBOS
|
|
endif
|
|
|
|
ifeq ($(PLATFORM_KEY),avr)
|
|
ifneq ($(strip $(LTO_SUPPORTED)), no)
|
|
LTO_ENABLE = yes
|
|
endif
|
|
SPACE_CADET_ENABLE = no
|
|
GRAVE_ESC_ENABLE = no
|
|
MAGIC_ENABLE ?= no
|
|
SEND_STRING_ENABLE ?= no
|
|
CONSOLE_ENABLE = no
|
|
COMMAND_ENABLE = no
|
|
AVR_USE_MINIMAL_PRINTF = yes
|
|
endif
|