]> git.donarmstrong.com Git - qmk_firmware.git/blob - layouts/community/ergodox/algernon/rules.mk
The beginning of a simple led matrix driver for is31fl3731
[qmk_firmware.git] / layouts / community / ergodox / algernon / rules.mk
1 BOOTMAGIC_ENABLE=no
2 COMMAND_ENABLE=no
3 SLEEP_LED_ENABLE=no
4 FORCE_NKRO ?= yes
5 DEBUG_ENABLE = no
6 CONSOLE_ENABLE = no
7 TAP_DANCE_ENABLE = yes
8 KEYLOGGER_ENABLE ?= yes
9 UCIS_ENABLE = yes
10 MOUSEKEY_ENABLE = no
11 LEADER_ENABLE = yes
12 RGBLIGHT_ENABLE = no
13
14 AUTOLOG_ENABLE ?= yes
15
16 ifeq (${FORCE_NKRO},yes)
17 OPT_DEFS += -DFORCE_NKRO
18 endif
19
20 ifeq (${AUTOLOG_ENABLE},yes)
21 KEYLOGGER_ENABLE = yes
22 OPT_DEFS += -DAUTOLOG_ENABLE
23 endif
24
25 ifeq (${KEYLOGGER_ENABLE},yes)
26 OPT_DEFS += -DKEYLOGGER_ENABLE
27 CONSOLE_ENABLE = yes
28 endif
29
30 OPT_DEFS += -DUSER_PRINT
31
32 LAYOUT_ergodox_VERSION = $(shell \
33  if [ -d "${LAYOUT_ergodox_PATH}/.git" ]; then \
34   cd "${LAYOUT_ergodox_PATH}" && git describe --abbrev=6 --dirty --always --tags --match 'v*' 2>/dev/null; \
35  else echo QMK; fi)
36
37 LAYOUT_ergodox_BRANCH = $(shell \
38  if [ -d "${LAYOUT_ergodox_PATH}/.git" ]; then \
39   cd "${LAYOUT_ergodox_PATH}"; \
40  fi; \
41  git rev-parse --abbrev-ref HEAD 2>/dev/null)
42
43 OPT_DEFS += -DLAYOUT_ergodox_VERSION=\"$(LAYOUT_ergodox_VERSION)\\\#$(LAYOUT_ergodox_BRANCH)\"