aboutsummaryrefslogtreecommitdiffstats
path: root/quantum/quantum.mk
diff options
context:
space:
mode:
authorGravatar Nicholas Keene <git@nicholaskeene.com>2016-05-02 21:35:58 -0500
committerGravatar Nicholas Keene <git@nicholaskeene.com>2016-05-02 21:35:58 -0500
commit8b0274f60a47eae523e28b5a7c6c7f581b6d605a (patch)
treeb8c6194d89712ddaf5e22aef85274c12c53cb2f1 /quantum/quantum.mk
parent1076c2b1226ed049a364971bf8e1edcd9ed45f6d (diff)
parent2c070163ffffffde546fb00acaa2fbb96b93da64 (diff)
downloadqmk_firmware-8b0274f60a47eae523e28b5a7c6c7f581b6d605a.tar.gz
Merge branch 'master' of https://github.com/jackhumbert/qmk_firmware
Diffstat (limited to 'quantum/quantum.mk')
-rw-r--r--quantum/quantum.mk12
1 files changed, 7 insertions, 5 deletions
diff --git a/quantum/quantum.mk b/quantum/quantum.mk
index de93af7e8..83c4f1d1d 100644
--- a/quantum/quantum.mk
+++ b/quantum/quantum.mk
@@ -23,19 +23,19 @@ ifndef CUSTOM_MATRIX
SRC += $(QUANTUM_DIR)/matrix.c
endif
-ifdef MIDI_ENABLE
+ifeq ($(strip $(MIDI_ENABLE)), yes)
SRC += $(QUANTUM_DIR)/keymap_midi.c
endif
-ifdef AUDIO_ENABLE
- SRC += $(QUANTUM_DIR)/audio.c
+ifeq ($(strip $(AUDIO_ENABLE)), yes)
+ SRC += $(QUANTUM_DIR)/audio/audio.c $(QUANTUM_DIR)/audio/voices.c
endif
-ifdef UNICODE_ENABLE
+ifeq ($(strip $(UNICODE_ENABLE)), yes)
SRC += $(QUANTUM_DIR)/keymap_unicode.c
endif
-ifdef RGBLIGHT_ENABLE
+ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
SRC += $(QUANTUM_DIR)/light_ws2812.c
SRC += $(QUANTUM_DIR)/rgblight.c
OPT_DEFS += -DRGBLIGHT_ENABLE
@@ -46,6 +46,8 @@ endif
# 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