summaryrefslogtreecommitdiff
path: root/users/gourdo1/rules.mk
diff options
context:
space:
mode:
authorgourdo1 <gourdo1@users.noreply.github.com>2022-04-19 04:05:13 -0700
committerGitHub <noreply@github.com>2022-04-19 21:05:13 +1000
commitbe7198ca49543a5e7b8d5ec38de7d7b6f2acc53d (patch)
tree767629508fdf22c8e398886407de675391777495 /users/gourdo1/rules.mk
parentad31ea3f515630f922ccad54cc879e13a05020fa (diff)
New custom keymap for Glorious GMMK Pro ANSI layout (#16199)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'users/gourdo1/rules.mk')
-rw-r--r--users/gourdo1/rules.mk29
1 files changed, 29 insertions, 0 deletions
diff --git a/users/gourdo1/rules.mk b/users/gourdo1/rules.mk
new file mode 100644
index 0000000000..e02f9e8e08
--- /dev/null
+++ b/users/gourdo1/rules.mk
@@ -0,0 +1,29 @@
+SRC += gourdo1.c
+ifdef ENCODER_ENABLE
+ # include encoder related code when enabled
+ ifeq ($(strip $(ENCODER_DEFAULTACTIONS_ENABLE)), yes)
+ OPT_DEFS += -DENCODER_DEFAULTACTIONS_ENABLE
+ endif
+ ifeq ($(strip $(ALTTAB_SCROLL_ENABLE)), yes)
+ OPT_DEFS += -DALTTAB_SCROLL_ENABLE
+ endif
+ SRC += gourdo1_encoder.c
+endif
+ifeq ($(strip $(TD_LSFT_CAPSLOCK_ENABLE)), yes)
+ OPT_DEFS += -DTD_LSFT_CAPSLOCK_ENABLE
+endif
+ifeq ($(strip $(IDLE_TIMEOUT_ENABLE)), yes)
+ OPT_DEFS += -DIDLE_TIMEOUT_ENABLE
+endif
+ifeq ($(strip $(STARTUP_NUMLOCK_ON)), yes)
+ OPT_DEFS += -DSTARTUP_NUMLOCK_ON
+endif
+ifeq ($(strip $(COLEMAK_LAYER_ENABLE)), yes)
+ OPT_DEFS += -DCOLEMAK_LAYER_ENABLE
+endif
+ifeq ($(strip $(EMOTICON_ENABLE)), yes)
+ OPT_DEFS += -DEMOTICON_ENABLE
+endif
+ifeq ($(strip $(INVERT_NUMLOCK_INDICATOR)), yes)
+ OPT_DEFS += -DINVERT_NUMLOCK_INDICATOR
+endif