summaryrefslogtreecommitdiffstats
path: root/quantum/quantum.mk
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2016-01-24 02:37:00 +0100
committerJack Humbert <jack.humb@gmail.com>2016-01-24 02:37:00 +0100
commit9a1ae948c9e19d3153512c196801a969c9637732 (patch)
tree948641e82788ee298468da9090749f79ad765c00 /quantum/quantum.mk
parente5aee62e54d0b6f02ff170f4e9bf1e738d36fb4c (diff)
parentae620fe8562254a5c00a48b863cabd4c87abd613 (diff)
downloadqmk_firmware-9a1ae948c9e19d3153512c196801a969c9637732.tar.gz
qmk_firmware-9a1ae948c9e19d3153512c196801a969c9637732.tar.xz
Merge pull request #104 from jackhumbert/smarkefile
Rework Planck file structure
Diffstat (limited to 'quantum/quantum.mk')
-rw-r--r--quantum/quantum.mk22
1 files changed, 20 insertions, 2 deletions
diff --git a/quantum/quantum.mk b/quantum/quantum.mk
index c82e47872..df7224178 100644
--- a/quantum/quantum.mk
+++ b/quantum/quantum.mk
@@ -4,13 +4,31 @@ QUANTUM_DIR = quantum
SRC += $(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
ifdef MIDI_ENABLE
- SRC += $(QUANTUM_DIR)/keymap_midi.c \
- $(QUANTUM_DIR)/beeps.c
+ SRC += $(QUANTUM_DIR)/keymap_midi.c
+endif
+
+ifdef AUDIO_ENABLE
+ SRC += $(QUANTUM_DIR)/audio.c
endif
ifdef UNICODE_ENABLE