aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/40percentclub/ut47/post_rules.mk4
-rw-r--r--keyboards/40percentclub/ut47/rules.mk5
-rw-r--r--keyboards/converter/palm_usb/post_rules.mk7
-rw-r--r--keyboards/converter/palm_usb/rules.mk7
-rw-r--r--keyboards/converter/sun_usb/post_rules.mk6
-rw-r--r--keyboards/converter/sun_usb/rules.mk6
-rw-r--r--keyboards/dm9records/ergoinu/post_rules.mk9
-rw-r--r--keyboards/dm9records/ergoinu/rules.mk10
-rw-r--r--keyboards/ergotaco/post_rules.mk8
-rw-r--r--keyboards/ergotaco/rules.mk3
-rw-r--r--keyboards/hhkb/ansi/post_rules.mk18
-rw-r--r--keyboards/hhkb/ansi/rules.mk20
-rw-r--r--keyboards/hhkb/jp/post_rules.mk18
-rw-r--r--keyboards/hhkb/jp/rules.mk20
-rw-r--r--keyboards/lfkeyboards/lfk78/post_rules.mk14
-rw-r--r--keyboards/lfkeyboards/lfk78/rules.mk15
-rw-r--r--keyboards/lfkeyboards/lfk87/post_rules.mk13
-rw-r--r--keyboards/lfkeyboards/lfk87/rules.mk15
-rw-r--r--keyboards/lfkeyboards/lfkpad/post_rules.mk7
-rw-r--r--keyboards/lfkeyboards/lfkpad/rules.mk8
-rw-r--r--keyboards/lfkeyboards/mini1800/post_rules.mk9
-rw-r--r--keyboards/lfkeyboards/mini1800/rules.mk9
-rw-r--r--keyboards/manta60/post_rules.mk3
-rw-r--r--keyboards/manta60/rules.mk4
-rw-r--r--keyboards/mschwingen/modelm/post_rules.mk3
-rw-r--r--keyboards/mschwingen/modelm/rules.mk4
-rw-r--r--keyboards/newgame40/post_rules.mk3
-rw-r--r--keyboards/newgame40/rules.mk4
-rw-r--r--keyboards/numatreus/post_rules.mk3
-rw-r--r--keyboards/numatreus/rules.mk4
-rw-r--r--keyboards/rgbkb/zen/post_rules.mk14
-rw-r--r--keyboards/rgbkb/zen/rev2/post_rules.mk5
-rw-r--r--keyboards/rgbkb/zen/rev2/rules.mk6
-rw-r--r--keyboards/rgbkb/zen/rules.mk15
34 files changed, 144 insertions, 155 deletions
diff --git a/keyboards/40percentclub/ut47/post_rules.mk b/keyboards/40percentclub/ut47/post_rules.mk
new file mode 100644
index 000000000..7051ee413
--- /dev/null
+++ b/keyboards/40percentclub/ut47/post_rules.mk
@@ -0,0 +1,4 @@
1ifeq ($(strip $(LED_ENABLE)), yes)
2 OPT_DEFS += -DLED_ENABLE
3 SRC += led.c
4endif
diff --git a/keyboards/40percentclub/ut47/rules.mk b/keyboards/40percentclub/ut47/rules.mk
index 4f0d0bdb2..9c0e3a206 100644
--- a/keyboards/40percentclub/ut47/rules.mk
+++ b/keyboards/40percentclub/ut47/rules.mk
@@ -24,8 +24,3 @@ AUDIO_ENABLE = no # Audio output on port C6
24# custom matrix setup 24# custom matrix setup
25CUSTOM_MATRIX = yes 25CUSTOM_MATRIX = yes
26SRC += matrix.c protocol/serial_uart.c 26SRC += matrix.c protocol/serial_uart.c
27
28ifeq ($(strip $(LED_ENABLE)), yes)
29 OPT_DEFS += -DLED_ENABLE
30 SRC += led.c
31endif
diff --git a/keyboards/converter/palm_usb/post_rules.mk b/keyboards/converter/palm_usb/post_rules.mk
new file mode 100644
index 000000000..9c1107670
--- /dev/null
+++ b/keyboards/converter/palm_usb/post_rules.mk
@@ -0,0 +1,7 @@
1ifdef HARDWARE_SERIAL
2 # Untested with palm_usb
3 SRC += protocol/serial_uart.c
4 OPT_DEFS += -DHARDWARE_SERIAL
5else
6 SRC += protocol/serial_soft.c
7endif
diff --git a/keyboards/converter/palm_usb/rules.mk b/keyboards/converter/palm_usb/rules.mk
index ff1ddc8f4..dc8cf1740 100644
--- a/keyboards/converter/palm_usb/rules.mk
+++ b/keyboards/converter/palm_usb/rules.mk
@@ -25,12 +25,5 @@ SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
25CUSTOM_MATRIX = yes 25CUSTOM_MATRIX = yes
26 26
27SRC += matrix.c 27SRC += matrix.c
28ifdef HARDWARE_SERIAL
29 # Untested with palm_usb
30 SRC += protocol/serial_uart.c
31 OPT_DEFS += -DHARDWARE_SERIAL
32else
33 SRC += protocol/serial_soft.c
34endif
35 28
36DEFAULT_FOLDER = converter/palm_usb/stowaway 29DEFAULT_FOLDER = converter/palm_usb/stowaway
diff --git a/keyboards/converter/sun_usb/post_rules.mk b/keyboards/converter/sun_usb/post_rules.mk
new file mode 100644
index 000000000..2ea1f0a5b
--- /dev/null
+++ b/keyboards/converter/sun_usb/post_rules.mk
@@ -0,0 +1,6 @@
1ifdef HARDWARE_SERIAL
2 SRC += protocol/serial_uart.c
3 OPT_DEFS += -DHARDWARE_SERIAL
4else
5 SRC += protocol/serial_soft.c
6endif
diff --git a/keyboards/converter/sun_usb/rules.mk b/keyboards/converter/sun_usb/rules.mk
index e863d2574..14dd57e1b 100644
--- a/keyboards/converter/sun_usb/rules.mk
+++ b/keyboards/converter/sun_usb/rules.mk
@@ -25,11 +25,5 @@ SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
25CUSTOM_MATRIX = yes 25CUSTOM_MATRIX = yes
26 26
27SRC += matrix.c led.c 27SRC += matrix.c led.c
28ifdef HARDWARE_SERIAL
29 SRC += protocol/serial_uart.c
30 OPT_DEFS += -DHARDWARE_SERIAL
31else
32 SRC += protocol/serial_soft.c
33endif
34 28
35DEFAULT_FOLDER = converter/sun_usb/type5 29DEFAULT_FOLDER = converter/sun_usb/type5
diff --git a/keyboards/dm9records/ergoinu/post_rules.mk b/keyboards/dm9records/ergoinu/post_rules.mk
new file mode 100644
index 000000000..02aa48104
--- /dev/null
+++ b/keyboards/dm9records/ergoinu/post_rules.mk
@@ -0,0 +1,9 @@
1ifneq ($(strip $(ERGOINU)),)
2 ifeq ($(findstring promicroled, $(ERGOINU)), promicroled)
3 DISABLE_PROMICRO_LEDs = no
4 endif
5endif
6
7ifeq ($(strip $(DISABLE_PROMICRO_LEDs)), yes)
8 OPT_DEFS += -DDISABLE_PROMICRO_LEDs
9endif
diff --git a/keyboards/dm9records/ergoinu/rules.mk b/keyboards/dm9records/ergoinu/rules.mk
index e3362ea31..4d98df442 100644
--- a/keyboards/dm9records/ergoinu/rules.mk
+++ b/keyboards/dm9records/ergoinu/rules.mk
@@ -29,13 +29,3 @@ SRC += matrix.c serial.c split_util.c
29 29
30# ergoinu configs 30# ergoinu configs
31DISABLE_PROMICRO_LEDs = yes 31DISABLE_PROMICRO_LEDs = yes
32
33ifneq ($(strip $(ERGOINU)),)
34 ifeq ($(findstring promicroled, $(ERGOINU)), promicroled)
35 DISABLE_PROMICRO_LEDs = no
36 endif
37endif
38
39ifeq ($(strip $(DISABLE_PROMICRO_LEDs)), yes)
40 OPT_DEFS += -DDISABLE_PROMICRO_LEDs
41endif
diff --git a/keyboards/ergotaco/post_rules.mk b/keyboards/ergotaco/post_rules.mk
new file mode 100644
index 000000000..0db3171b3
--- /dev/null
+++ b/keyboards/ergotaco/post_rules.mk
@@ -0,0 +1,8 @@
1
2# A bunch of stuff that you shouldn't touch unless you
3# know what you're doing.
4#
5# No touchy, capiche?
6ifeq ($(strip $(DEBUG_MATRIX)), yes)
7 OPT_DEFS += -DDEBUG_MATRIX
8endif
diff --git a/keyboards/ergotaco/rules.mk b/keyboards/ergotaco/rules.mk
index 9fe0992ff..db236477b 100644
--- a/keyboards/ergotaco/rules.mk
+++ b/keyboards/ergotaco/rules.mk
@@ -14,6 +14,3 @@ COMMAND_ENABLE = yes
14# 14#
15# No touchy, capiche? 15# No touchy, capiche?
16SRC += matrix.c i2c_master.c 16SRC += matrix.c i2c_master.c
17ifeq ($(strip $(DEBUG_MATRIX)), yes)
18 OPT_DEFS += -DDEBUG_MATRIX
19endif
diff --git a/keyboards/hhkb/ansi/post_rules.mk b/keyboards/hhkb/ansi/post_rules.mk
new file mode 100644
index 000000000..bc6ad5cd4
--- /dev/null
+++ b/keyboards/hhkb/ansi/post_rules.mk
@@ -0,0 +1,18 @@
1ifeq ($(strip $(HHKB_RN42_ENABLE)), yes)
2
3OPT_DEFS += -DHHKB_RN42_ENABLE
4
5# Support for the RN42 Bluetooth module. This is the BT module in Hasu's BT
6# HHKB Alt controller.
7RN42_DIR = ../rn42
8
9SRC += serial_uart.c \
10 ../rn42/suart.S \
11 ../rn42/rn42.c \
12 ../rn42/rn42_task.c \
13 ../rn42/battery.c \
14 ../rn42/main.c
15
16VPATH += $(RN42_DIR)
17
18endif
diff --git a/keyboards/hhkb/ansi/rules.mk b/keyboards/hhkb/ansi/rules.mk
index b0f17c93a..56898e260 100644
--- a/keyboards/hhkb/ansi/rules.mk
+++ b/keyboards/hhkb/ansi/rules.mk
@@ -33,26 +33,6 @@ MIDI_ENABLE = no # MIDI support
33# project specific files 33# project specific files
34SRC = matrix.c 34SRC = matrix.c
35 35
36ifeq ($(strip $(HHKB_RN42_ENABLE)), yes)
37
38OPT_DEFS += -DHHKB_RN42_ENABLE
39
40# Support for the RN42 Bluetooth module. This is the BT module in Hasu's BT
41# HHKB Alt controller.
42RN42_DIR = ../rn42
43
44SRC += serial_uart.c \
45 ../rn42/suart.S \
46 ../rn42/rn42.c \
47 ../rn42/rn42_task.c \
48 ../rn42/battery.c \
49 ../rn42/main.c
50
51VPATH += $(RN42_DIR)
52
53endif
54
55
56# debug-on: EXTRAFLAGS += -DDEBUG -DDEBUG_ACTION 36# debug-on: EXTRAFLAGS += -DDEBUG -DDEBUG_ACTION
57# debug-on: all 37# debug-on: all
58 38
diff --git a/keyboards/hhkb/jp/post_rules.mk b/keyboards/hhkb/jp/post_rules.mk
new file mode 100644
index 000000000..bc6ad5cd4
--- /dev/null
+++ b/keyboards/hhkb/jp/post_rules.mk
@@ -0,0 +1,18 @@
1ifeq ($(strip $(HHKB_RN42_ENABLE)), yes)
2
3OPT_DEFS += -DHHKB_RN42_ENABLE
4
5# Support for the RN42 Bluetooth module. This is the BT module in Hasu's BT
6# HHKB Alt controller.
7RN42_DIR = ../rn42
8
9SRC += serial_uart.c \
10 ../rn42/suart.S \
11 ../rn42/rn42.c \
12 ../rn42/rn42_task.c \
13 ../rn42/battery.c \
14 ../rn42/main.c
15
16VPATH += $(RN42_DIR)
17
18endif
diff --git a/keyboards/hhkb/jp/rules.mk b/keyboards/hhkb/jp/rules.mk
index 50e2c2c41..9b5b0b48b 100644
--- a/keyboards/hhkb/jp/rules.mk
+++ b/keyboards/hhkb/jp/rules.mk
@@ -33,26 +33,6 @@ MIDI_ENABLE = no # MIDI support
33# project specific files 33# project specific files
34SRC = matrix.c 34SRC = matrix.c
35 35
36ifeq ($(strip $(HHKB_RN42_ENABLE)), yes)
37
38OPT_DEFS += -DHHKB_RN42_ENABLE
39
40# Support for the RN42 Bluetooth module. This is the BT module in Hasu's BT
41# HHKB Alt controller.
42RN42_DIR = ../rn42
43
44SRC += serial_uart.c \
45 ../rn42/suart.S \
46 ../rn42/rn42.c \
47 ../rn42/rn42_task.c \
48 ../rn42/battery.c \
49 ../rn42/main.c
50
51VPATH += $(RN42_DIR)
52
53endif
54
55
56# debug-on: EXTRAFLAGS += -DDEBUG -DDEBUG_ACTION 36# debug-on: EXTRAFLAGS += -DDEBUG -DDEBUG_ACTION
57# debug-on: all 37# debug-on: all
58 38
diff --git a/keyboards/lfkeyboards/lfk78/post_rules.mk b/keyboards/lfkeyboards/lfk78/post_rules.mk
new file mode 100644
index 000000000..03f975b9d
--- /dev/null
+++ b/keyboards/lfkeyboards/lfk78/post_rules.mk
@@ -0,0 +1,14 @@
1# Extra source files for IS3731 lighting
2SRC += TWIlib.c issi.c lighting.c
3
4ifeq ($(strip $(ISSI_ENABLE)), yes)
5 TMK_COMMON_DEFS += -DISSI_ENABLE
6endif
7
8ifeq ($(strip $(WATCHDOG_ENABLE)), yes)
9 TMK_COMMON_DEFS += -DWATCHDOG_ENABLE
10endif
11
12ifeq ($(strip $(CAPSLOCK_LED)), yes)
13 TMK_COMMON_DEFS += -DCAPSLOCK_LED
14endif
diff --git a/keyboards/lfkeyboards/lfk78/rules.mk b/keyboards/lfkeyboards/lfk78/rules.mk
index 81f532615..972e09af5 100644
--- a/keyboards/lfkeyboards/lfk78/rules.mk
+++ b/keyboards/lfkeyboards/lfk78/rules.mk
@@ -24,19 +24,4 @@ ISSI_ENABLE = yes # If the I2C pullup resistors aren't install thi
24WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms 24WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms
25CAPSLOCK_LED = no # Toggle back light LED of Caps Lock 25CAPSLOCK_LED = no # Toggle back light LED of Caps Lock
26 26
27# Extra source files for IS3731 lighting
28SRC = TWIlib.c issi.c lighting.c
29
30ifeq ($(strip $(ISSI_ENABLE)), yes)
31 TMK_COMMON_DEFS += -DISSI_ENABLE
32endif
33
34ifeq ($(strip $(WATCHDOG_ENABLE)), yes)
35 TMK_COMMON_DEFS += -DWATCHDOG_ENABLE
36endif
37
38ifeq ($(strip $(CAPSLOCK_LED)), yes)
39 TMK_COMMON_DEFS += -DCAPSLOCK_LED
40endif
41
42DEFAULT_FOLDER = lfkeyboards/lfk78/revj 27DEFAULT_FOLDER = lfkeyboards/lfk78/revj
diff --git a/keyboards/lfkeyboards/lfk87/post_rules.mk b/keyboards/lfkeyboards/lfk87/post_rules.mk
new file mode 100644
index 000000000..563462dd9
--- /dev/null
+++ b/keyboards/lfkeyboards/lfk87/post_rules.mk
@@ -0,0 +1,13 @@
1ifeq ($(LFK_REV), A)
2 MCU = at90usb1286
3else
4 MCU = at90usb646
5endif
6
7ifeq ($(strip $(ISSI_ENABLE)), yes)
8 OPT_DEFS += -DISSI_ENABLE
9endif
10
11ifeq ($(strip $(WATCHDOG_ENABLE)), yes)
12 OPT_DEFS += -DWATCHDOG_ENABLE
13endif
diff --git a/keyboards/lfkeyboards/lfk87/rules.mk b/keyboards/lfkeyboards/lfk87/rules.mk
index 7f5621b03..bc988f15a 100644
--- a/keyboards/lfkeyboards/lfk87/rules.mk
+++ b/keyboards/lfkeyboards/lfk87/rules.mk
@@ -6,11 +6,6 @@
6# 6#
7LFK_REV = C 7LFK_REV = C
8 8
9ifeq ($(LFK_REV), A)
10 MCU = at90usb1286
11else
12 MCU = at90usb646
13endif
14BOOTLOADER = atmel-dfu 9BOOTLOADER = atmel-dfu
15OPT_DEFS += -DLFK_TKL_REV_$(LFK_REV) 10OPT_DEFS += -DLFK_TKL_REV_$(LFK_REV)
16 11
@@ -42,13 +37,3 @@ TAP_DANCE_ENABLE = no
42 37
43ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be disabled 38ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be disabled
44WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms 39WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms
45
46
47
48ifeq ($(strip $(ISSI_ENABLE)), yes)
49 OPT_DEFS += -DISSI_ENABLE
50endif
51
52ifeq ($(strip $(WATCHDOG_ENABLE)), yes)
53 OPT_DEFS += -DWATCHDOG_ENABLE
54endif
diff --git a/keyboards/lfkeyboards/lfkpad/post_rules.mk b/keyboards/lfkeyboards/lfkpad/post_rules.mk
new file mode 100644
index 000000000..ad997587b
--- /dev/null
+++ b/keyboards/lfkeyboards/lfkpad/post_rules.mk
@@ -0,0 +1,7 @@
1ifeq ($(strip $(ISSI_ENABLE)), yes)
2 TMK_COMMON_DEFS += -DISSI_ENABLE
3endif
4
5ifeq ($(strip $(WATCHDOG_ENABLE)), yes)
6 TMK_COMMON_DEFS += -DWATCHDOG_ENABLE
7endif
diff --git a/keyboards/lfkeyboards/lfkpad/rules.mk b/keyboards/lfkeyboards/lfkpad/rules.mk
index 942f11368..392a0bdb9 100644
--- a/keyboards/lfkeyboards/lfkpad/rules.mk
+++ b/keyboards/lfkeyboards/lfkpad/rules.mk
@@ -29,12 +29,4 @@ WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan() isn't run every
29 29
30SRC = TWIlib.c issi.c lighting.c 30SRC = TWIlib.c issi.c lighting.c
31 31
32ifeq ($(strip $(ISSI_ENABLE)), yes)
33 TMK_COMMON_DEFS += -DISSI_ENABLE
34endif
35
36ifeq ($(strip $(WATCHDOG_ENABLE)), yes)
37 TMK_COMMON_DEFS += -DWATCHDOG_ENABLE
38endif
39
40LAYOUTS = numpad_6x4 32LAYOUTS = numpad_6x4
diff --git a/keyboards/lfkeyboards/mini1800/post_rules.mk b/keyboards/lfkeyboards/mini1800/post_rules.mk
new file mode 100644
index 000000000..f04e10e4a
--- /dev/null
+++ b/keyboards/lfkeyboards/mini1800/post_rules.mk
@@ -0,0 +1,9 @@
1ifeq ($(LFK_REV), A)
2 MCU = at90usb1286
3else
4 MCU = at90usb646
5endif
6
7ifeq ($(strip $(ISSI_ENABLE)), yes)
8 # TMK_COMMON_DEFS += -DISSI_ENABLE
9endif
diff --git a/keyboards/lfkeyboards/mini1800/rules.mk b/keyboards/lfkeyboards/mini1800/rules.mk
index a9c29c4b9..c9a9b0105 100644
--- a/keyboards/lfkeyboards/mini1800/rules.mk
+++ b/keyboards/lfkeyboards/mini1800/rules.mk
@@ -7,21 +7,12 @@
7# Set to A or C 7# Set to A or C
8LFK_REV = C 8LFK_REV = C
9 9
10ifeq ($(LFK_REV), A)
11 MCU = at90usb1286
12else
13 MCU = at90usb646
14endif
15BOOTLOADER = atmel-dfu 10BOOTLOADER = atmel-dfu
16OPT_DEFS += -DLFK_TKL_REV_$(LFK_REV) 11OPT_DEFS += -DLFK_TKL_REV_$(LFK_REV)
17 12
18# Extra source files for IS3731 lighting 13# Extra source files for IS3731 lighting
19SRC = TWIlib.c issi.c lighting.c 14SRC = TWIlib.c issi.c lighting.c
20 15
21ifeq ($(strip $(ISSI_ENABLE)), yes)
22 # TMK_COMMON_DEFS += -DISSI_ENABLE
23endif
24
25# Build Options 16# Build Options
26# change yes to no to disable 17# change yes to no to disable
27# 18#
diff --git a/keyboards/manta60/post_rules.mk b/keyboards/manta60/post_rules.mk
new file mode 100644
index 000000000..e26b52df3
--- /dev/null
+++ b/keyboards/manta60/post_rules.mk
@@ -0,0 +1,3 @@
1ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes)
2 OPT_DEFS += -DIOS_DEVICE_ENABLE
3endif
diff --git a/keyboards/manta60/rules.mk b/keyboards/manta60/rules.mk
index db012a155..dbd3ce309 100644
--- a/keyboards/manta60/rules.mk
+++ b/keyboards/manta60/rules.mk
@@ -23,7 +23,3 @@ AUDIO_ENABLE = no # Audio output
23SPLIT_KEYBOARD = yes 23SPLIT_KEYBOARD = yes
24 24
25IOS_DEVICE_ENABLE = no # connect to IOS device (iPad, iPhone) 25IOS_DEVICE_ENABLE = no # connect to IOS device (iPad, iPhone)
26
27ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes)
28 OPT_DEFS += -DIOS_DEVICE_ENABLE
29endif
diff --git a/keyboards/mschwingen/modelm/post_rules.mk b/keyboards/mschwingen/modelm/post_rules.mk
new file mode 100644
index 000000000..a1c2040f4
--- /dev/null
+++ b/keyboards/mschwingen/modelm/post_rules.mk
@@ -0,0 +1,3 @@
1ifeq ($(strip $(UART_DEBUG)), yes)
2 OPT_DEFS += -DUART_DEBUG
3endif
diff --git a/keyboards/mschwingen/modelm/rules.mk b/keyboards/mschwingen/modelm/rules.mk
index ef70f5449..d8bcf9b4a 100644
--- a/keyboards/mschwingen/modelm/rules.mk
+++ b/keyboards/mschwingen/modelm/rules.mk
@@ -36,8 +36,4 @@ OPT_DEFS += -DSLEEP_LED_ENABLE # we need our own sleep callbacks to turn of WS28
36 36
37LTO_ENABLE = yes 37LTO_ENABLE = yes
38 38
39ifeq ($(strip $(UART_DEBUG)), yes)
40 OPT_DEFS += -DUART_DEBUG
41endif
42
43DEFAULT_FOLDER = mschwingen/modelm/led_wired 39DEFAULT_FOLDER = mschwingen/modelm/led_wired
diff --git a/keyboards/newgame40/post_rules.mk b/keyboards/newgame40/post_rules.mk
new file mode 100644
index 000000000..68229fe12
--- /dev/null
+++ b/keyboards/newgame40/post_rules.mk
@@ -0,0 +1,3 @@
1ifeq ($(strip $(IOS_DEVICE_ENABLE )), yes)
2 OPT_DEFS += -DIOS_DEVICE_ENABLE
3endif
diff --git a/keyboards/newgame40/rules.mk b/keyboards/newgame40/rules.mk
index 87d565cff..4b580c7d2 100644
--- a/keyboards/newgame40/rules.mk
+++ b/keyboards/newgame40/rules.mk
@@ -21,10 +21,6 @@ BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
21RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. 21RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
22IOS_DEVICE_ENABLE = no # connect to IOS Device 22IOS_DEVICE_ENABLE = no # connect to IOS Device
23 23
24 ifeq ($(strip $(IOS_DEVICE_ENABLE )), yes)
25 OPT_DEFS += -DIOS_DEVICE_ENABLE
26 endif
27
28# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE 24# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
29SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 25SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
30 26
diff --git a/keyboards/numatreus/post_rules.mk b/keyboards/numatreus/post_rules.mk
new file mode 100644
index 000000000..1f49875d0
--- /dev/null
+++ b/keyboards/numatreus/post_rules.mk
@@ -0,0 +1,3 @@
1ifeq ($(strip $(LED_ANIMATIONS)), yes)
2 OPT_DEFS += -DLED_ANIMATIONS
3endif
diff --git a/keyboards/numatreus/rules.mk b/keyboards/numatreus/rules.mk
index 1dd016ab0..f9d549896 100644
--- a/keyboards/numatreus/rules.mk
+++ b/keyboards/numatreus/rules.mk
@@ -19,9 +19,5 @@ UNICODE_ENABLE = yes # Unicode
19RGBLIGHT_ENABLE = no 19RGBLIGHT_ENABLE = no
20LED_ANIMATIONS = no 20LED_ANIMATIONS = no
21 21
22ifeq ($(strip $(LED_ANIMATIONS)), yes)
23 OPT_DEFS += -DLED_ANIMATIONS
24endif
25
26# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE 22# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
27SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 23SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
diff --git a/keyboards/rgbkb/zen/post_rules.mk b/keyboards/rgbkb/zen/post_rules.mk
new file mode 100644
index 000000000..3ddb449ef
--- /dev/null
+++ b/keyboards/rgbkb/zen/post_rules.mk
@@ -0,0 +1,14 @@
1ifeq ($(strip $(CTPC)), yes)
2 CONVERT_TO_PROTON_C=yes
3endif
4
5ifeq ($(strip $(CONVERT_TO_PROTON_C)), yes)
6 SPLIT_KEYBOARD = no # currently unsupported on ARM
7 RGBLIGHT_ENABLE = no # currently unsupported on ARM
8
9 EXTRAFLAGS += -DUSE_PROTON_C
10else
11 # Currently moved to Pro Micro only section because of lack of Proton-C support
12 SPLIT_KEYBOARD = yes
13 RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
14endif
diff --git a/keyboards/rgbkb/zen/rev2/post_rules.mk b/keyboards/rgbkb/zen/rev2/post_rules.mk
new file mode 100644
index 000000000..2a4397e98
--- /dev/null
+++ b/keyboards/rgbkb/zen/rev2/post_rules.mk
@@ -0,0 +1,5 @@
1# Setup so that OLED can be turned on/off easily
2ifeq ($(strip $(OLED_ENABLE)), yes)
3 # Custom local font file
4 OPT_DEFS += -DOLED_FONT_H=\"common/glcdfont.c\"
5endif
diff --git a/keyboards/rgbkb/zen/rev2/rules.mk b/keyboards/rgbkb/zen/rev2/rules.mk
index 9bb8b8cd0..6dd9d2e27 100644
--- a/keyboards/rgbkb/zen/rev2/rules.mk
+++ b/keyboards/rgbkb/zen/rev2/rules.mk
@@ -1,9 +1,3 @@
1ENCODER_ENABLE = yes 1ENCODER_ENABLE = yes
2 2
3OLED_ENABLE = no 3OLED_ENABLE = no
4
5# Setup so that OLED can be turned on/off easily
6ifeq ($(strip $(OLED_ENABLE)), yes)
7 # Custom local font file
8 OPT_DEFS += -DOLED_FONT_H=\"common/glcdfont.c\"
9endif
diff --git a/keyboards/rgbkb/zen/rules.mk b/keyboards/rgbkb/zen/rules.mk
index c18c84be5..0bf7eae65 100644
--- a/keyboards/rgbkb/zen/rules.mk
+++ b/keyboards/rgbkb/zen/rules.mk
@@ -4,21 +4,6 @@ MCU = atmega32u4
4# Bootloader selection 4# Bootloader selection
5BOOTLOADER = caterina 5BOOTLOADER = caterina
6 6
7ifeq ($(strip $(CTPC)), yes)
8 CONVERT_TO_PROTON_C=yes
9endif
10
11ifeq ($(strip $(CONVERT_TO_PROTON_C)), yes)
12 SPLIT_KEYBOARD = no # currently unsupported on ARM
13 RGBLIGHT_ENABLE = no # currently unsupported on ARM
14
15 EXTRAFLAGS += -DUSE_PROTON_C
16else
17 # Currently moved to Pro Micro only section because of lack of Proton-C support
18 SPLIT_KEYBOARD = yes
19 RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
20endif
21
22# Build Options 7# Build Options
23# change to "no" to disable the options, or define them in the Makefile in 8# change to "no" to disable the options, or define them in the Makefile in
24# the appropriate keymap folder that will get included automatically 9# the appropriate keymap folder that will get included automatically