forked from mirrors/qmk_firmware
26 lines
462 B
Makefile
26 lines
462 B
Makefile
|
# Reduce firmware size
|
||
|
# https://thomasbaart.nl/2018/12/01/reducing-firmware-size-in-qmk/
|
||
|
# also requires in config.h
|
||
|
# NO_ACTION_MACRO
|
||
|
# NO_ACTION_FUNCTION
|
||
|
LTO_ENABLE = yes
|
||
|
|
||
|
SRC += muppetjones.c
|
||
|
SRC += features/casemodes.c
|
||
|
|
||
|
ifdef COMBO_ENABLE
|
||
|
SRC += ./features/combos.c
|
||
|
endif
|
||
|
|
||
|
ifdef ENCODER_ENABLE
|
||
|
SRC += ./features/etchamouse.c
|
||
|
endif
|
||
|
|
||
|
ifdef RGBLIGHT_ENABLE
|
||
|
SRC += ./features/rgblayers.c
|
||
|
endif
|
||
|
|
||
|
ifdef TAP_DANCE_ENABLE
|
||
|
SRC += ./features/dancelayers.c
|
||
|
endif
|