summaryrefslogtreecommitdiff
path: root/users/brandonschlack/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'users/brandonschlack/rules.mk')
-rw-r--r--users/brandonschlack/rules.mk34
1 files changed, 34 insertions, 0 deletions
diff --git a/users/brandonschlack/rules.mk b/users/brandonschlack/rules.mk
new file mode 100644
index 0000000000..2dfc332ab9
--- /dev/null
+++ b/users/brandonschlack/rules.mk
@@ -0,0 +1,34 @@
+SRC += brandonschlack.c \
+ process_records.c
+
+SPACE_CADET_ENABLE = no
+
+# Use LTO except for ChibiOS
+ifneq ($(PLATFORM),CHIBIOS)
+ LTO_ENABLE = yes
+endif
+
+ifeq ($(strip $(IS_MACROPAD)), yes)
+ OPT_DEFS += -DIS_MACROPAD
+endif
+
+ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
+ SRC += rgb_bs.c
+endif
+
+RGB_MATRIX_ENABLE ?= no
+ifneq ($(strip $(RGB_MATRIX_ENABLE)), no)
+ SRC += rgb_bs.c
+endif
+
+ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
+ SRC += tap_dances.c
+endif
+
+ifeq ($(strip $(FLASH_BOOTLOADER)), yes)
+ OPT_DEFS += -DFLASH_BOOTLOADER
+endif
+
+ifneq ($(FORCE_LAYOUT),)
+ OPT_DEFS += -DFORCE_LAYOUT=\"$(FORCE_LAYOUT)\"
+endif