fde477a927
* implements leader key for planck experimental * allows override of leader timeout * adds ability to use the leader key in seq * fixes leader keycode * adds chording prototype * fixes keycode detection * moves music mode to quantum.c * disables chording by default * adds music sequencer functionality * implements audio/music functions in quantum.c * splits up process_action to allow independent processing of actions * moves midi stuff to quantum.c * adds additional scales for midi
59 lines
1.5 KiB
Makefile
59 lines
1.5 KiB
Makefile
QUANTUM_DIR = quantum
|
|
|
|
# # project specific files
|
|
SRC += $(QUANTUM_DIR)/quantum.c \
|
|
$(QUANTUM_DIR)/keymap_common.c \
|
|
$(QUANTUM_DIR)/led.c
|
|
|
|
# ifdef KEYMAP_FILE
|
|
# ifneq (,$(shell grep USING_MIDI '$(KEYMAP_FILE)'))
|
|
# MIDI_ENABLE=yes
|
|
# $(info * Overriding MIDI_ENABLE setting - $(KEYMAP_FILE) requires it)
|
|
# endif
|
|
# ifneq (,$(shell grep USING_UNICODE '$(KEYMAP_FILE)'))
|
|
# UNICODE_ENABLE=yes
|
|
# $(info * Overriding UNICODE_ENABLE setting - $(KEYMAP_FILE) requires it)
|
|
# endif
|
|
# ifneq (,$(shell grep USING_BACKLIGHT '$(KEYMAP_FILE)'))
|
|
# BACKLIGHT_ENABLE=yes
|
|
# $(info * Overriding BACKLIGHT_ENABLE setting - $(KEYMAP_FILE) requires it)
|
|
# endif
|
|
# endif
|
|
|
|
ifndef CUSTOM_MATRIX
|
|
SRC += $(QUANTUM_DIR)/matrix.c
|
|
endif
|
|
|
|
#ifeq ($(strip $(MIDI_ENABLE)), yes)
|
|
# SRC += $(QUANTUM_DIR)/keymap_midi.c
|
|
#endif
|
|
|
|
ifeq ($(strip $(AUDIO_ENABLE)), yes)
|
|
SRC += $(QUANTUM_DIR)/audio/audio.c
|
|
SRC += $(QUANTUM_DIR)/audio/voices.c
|
|
SRC += $(QUANTUM_DIR)/audio/luts.c
|
|
endif
|
|
|
|
ifeq ($(strip $(UNICODE_ENABLE)), yes)
|
|
SRC += $(QUANTUM_DIR)/keymap_unicode.c
|
|
endif
|
|
|
|
ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
|
|
SRC += $(QUANTUM_DIR)/light_ws2812.c
|
|
SRC += $(QUANTUM_DIR)/rgblight.c
|
|
OPT_DEFS += -DRGBLIGHT_ENABLE
|
|
endif
|
|
|
|
# Optimize size but this may cause error "relocation truncated to fit"
|
|
#EXTRALDFLAGS = -Wl,--relax
|
|
|
|
# Search Path
|
|
VPATH += $(TOP_DIR)/$(QUANTUM_DIR)
|
|
VPATH += $(TOP_DIR)/$(QUANTUM_DIR)/keymap_extras
|
|
VPATH += $(TOP_DIR)/$(QUANTUM_DIR)/audio
|
|
|
|
include $(TMK_DIR)/protocol/lufa.mk
|
|
|
|
include $(TMK_DIR)/common.mk
|
|
include $(TMK_DIR)/rules.mk
|