]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/zinc/keymaps/monks/rules.mk
Remove deprecated QUANTUM_DIR code blocks from makefiles (#4754)
[qmk_firmware.git] / keyboards / zinc / keymaps / monks / rules.mk
1
2 # Build Options
3 #   change to "no" to disable the options, or define them in the Makefile in
4 #   the appropriate keymap folder that will get included automatically
5 #
6 BOOTMAGIC_ENABLE = no       # Virtual DIP switch configuration(+1000)
7 MOUSEKEY_ENABLE = no       # Mouse keys(+4700)
8 EXTRAKEY_ENABLE = yes       # Audio control and System control(+450)
9 CONSOLE_ENABLE = no         # Console for debug(+400)
10 COMMAND_ENABLE = no        # Commands for debug and configuration
11 NKRO_ENABLE = no            # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
12 BACKLIGHT_ENABLE = no      # Enable keyboard backlight functionality
13 MIDI_ENABLE = no            # MIDI controls
14 AUDIO_ENABLE = no           # Audio output on port C6
15 UNICODE_ENABLE = no         # Unicode
16 BLUETOOTH_ENABLE = no       # Enable Bluetooth with the Adafruit EZ-Key HID
17 RGBLIGHT_ENABLE = no        # Enable WS2812 RGB underlight.  Do not enable this with audio at the same time.
18 SWAP_HANDS_ENABLE = no        # Enable one-hand typing
19
20 define ZINC_CUSTOMISE_MSG
21   $(info Zinc customize)
22   $(info -  LED_BACK_ENABLE=$(LED_BACK_ENABLE))
23   $(info -  LED_UNDERGLOW_ENABLE=$(LED_UNDERGLOW_ENABLE))
24   $(info -  LED_ANIMATION=$(LED_ANIMATIONS))
25   $(info -  IOS_DEVICE_ENABLE=$(IOS_DEVICE_ENABLE))
26 endef
27
28 # Zinc keyboard customize
29 LED_BACK_ENABLE = no        # LED backlight (Enable SK6812mini backlight)
30 LED_UNDERGLOW_ENABLE = no   # LED underglow (Enable WS2812 RGB underlight)
31 LED_ANIMATIONS = yes        # LED animations
32 IOS_DEVICE_ENABLE = no      # connect to IOS device (iPad,iPhone)
33 Link_Time_Optimization = no # if firmware size over limit, try this option
34
35 ####  LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
36 ####    Do not enable these with audio at the same time.
37
38 ### Zinc keyboard 'default' keymap: convenient command line option
39 ##    make ZINC=<options> zinc:defualt
40 ##    option= back | under | na | ios
41 ##    ex.
42 ##      make ZINC=under    zinc:defualt
43 ##      make ZINC=under,ios zinc:defualt
44 ##      make ZINC=back     zinc:default
45 ##      make ZINC=back,na  zinc:default
46 ##      make ZINC=back,ios zinc:default
47
48 ifneq ($(strip $(ZINC)),)
49   ifeq ($(findstring back,$(ZINC)), back)
50     LED_BACK_ENABLE = yes
51   else ifeq ($(findstring under,$(ZINC)), under)
52     LED_UNDERGLOW_ENABLE = yes
53   endif
54   ifeq ($(findstring na,$(ZINC)), na)
55     LED_ANIMATIONS = no
56   endif
57   ifeq ($(findstring ios,$(ZINC)), ios)
58     IOS_DEVICE_ENABLE = yes
59   endif
60   $(eval $(call ZINC_CUSTOMISE_MSG))
61   $(info )
62 endif
63
64 ifeq ($(strip $(LED_BACK_ENABLE)), yes)
65   RGBLIGHT_ENABLE = yes
66   OPT_DEFS += -DRGBLED_BACK
67   ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
68     $(eval $(call ZINC_CUSTOMISE_MSG))
69     $(error LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE both 'yes')
70   endif
71 else ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
72   RGBLIGHT_ENABLE = yes
73 else
74   RGBLIGHT_ENABLE = no
75 endif
76
77 ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes)
78     OPT_DEFS += -DIOS_DEVICE_ENABLE
79 endif
80
81 ifeq ($(strip $(LED_ANIMATIONS)), yes)
82 #    OPT_DEFS += -DRGBLIGHT_ANIMATIONS
83     OPT_DEFS += -DLED_ANIMATIONS
84 endif
85
86 ifeq ($(strip $(Link_Time_Optimization)),yes)
87     EXTRAFLAGS += -flto -DUSE_Link_Time_Optimization
88 endif
89
90 # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
91 SLEEP_LED_ENABLE = no    # Breathing sleep LED during USB suspend
92
93 # Uncomment these for debugging
94 # $(info -- RGBLIGHT_ENABLE=$(RGBLIGHT_ENABLE))
95 # $(info -- OPT_DEFS=$(OPT_DEFS))
96 # $(info )
97