aboutsummaryrefslogtreecommitdiff
path: root/build_keyboard.mk
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2017-06-16 21:34:01 +0300
committerFred Sundvik <fsundvik@gmail.com>2017-06-18 21:10:42 +0300
commit7424261dae180d1cc0e4e46b4ee2d51ef5524e0a (patch)
treec2180efd00452bfca7dfd9754a66d17d5efdd751 /build_keyboard.mk
parent30f22d450da19c65584e6deb8515a1fa5b074e07 (diff)
downloadqmk_firmware-7424261dae180d1cc0e4e46b4ee2d51ef5524e0a.tar.gz
qmk_firmware-7424261dae180d1cc0e4e46b4ee2d51ef5524e0a.zip
Try to build tmk_common
Diffstat (limited to 'build_keyboard.mk')
-rw-r--r--build_keyboard.mk122
1 files changed, 0 insertions, 122 deletions
diff --git a/build_keyboard.mk b/build_keyboard.mk
index 36eab3a9e..f13d5b6d6 100644
--- a/build_keyboard.mk
+++ b/build_keyboard.mk
@@ -131,128 +131,6 @@ ifndef CUSTOM_MATRIX
131 SRC += $(QUANTUM_DIR)/matrix.c 131 SRC += $(QUANTUM_DIR)/matrix.c
132endif 132endif
133 133
134ifeq ($(strip $(API_SYSEX_ENABLE)), yes)
135 OPT_DEFS += -DAPI_SYSEX_ENABLE
136 SRC += $(QUANTUM_DIR)/api/api_sysex.c
137 OPT_DEFS += -DAPI_ENABLE
138 SRC += $(QUANTUM_DIR)/api.c
139 MIDI_ENABLE=yes
140endif
141
142MUSIC_ENABLE := 0
143
144ifeq ($(strip $(AUDIO_ENABLE)), yes)
145 OPT_DEFS += -DAUDIO_ENABLE
146 MUSIC_ENABLE := 1
147 SRC += $(QUANTUM_DIR)/process_keycode/process_audio.c
148 SRC += $(QUANTUM_DIR)/audio/audio.c
149 SRC += $(QUANTUM_DIR)/audio/voices.c
150 SRC += $(QUANTUM_DIR)/audio/luts.c
151endif
152
153ifeq ($(strip $(MIDI_ENABLE)), yes)
154 OPT_DEFS += -DMIDI_ENABLE
155 MUSIC_ENABLE := 1
156 SRC += $(QUANTUM_DIR)/process_keycode/process_midi.c
157endif
158
159ifeq ($(MUSIC_ENABLE), 1)
160 SRC += $(QUANTUM_DIR)/process_keycode/process_music.c
161endif
162
163ifeq ($(strip $(COMBO_ENABLE)), yes)
164 OPT_DEFS += -DCOMBO_ENABLE
165 SRC += $(QUANTUM_DIR)/process_keycode/process_combo.c
166endif
167
168ifeq ($(strip $(VIRTSER_ENABLE)), yes)
169 OPT_DEFS += -DVIRTSER_ENABLE
170endif
171
172ifeq ($(strip $(FAUXCLICKY_ENABLE)), yes)
173 OPT_DEFS += -DFAUXCLICKY_ENABLE
174 SRC += $(QUANTUM_DIR)/fauxclicky.c
175endif
176
177ifeq ($(strip $(UCIS_ENABLE)), yes)
178 OPT_DEFS += -DUCIS_ENABLE
179 UNICODE_COMMON = yes
180 SRC += $(QUANTUM_DIR)/process_keycode/process_ucis.c
181endif
182
183ifeq ($(strip $(UNICODEMAP_ENABLE)), yes)
184 OPT_DEFS += -DUNICODEMAP_ENABLE
185 UNICODE_COMMON = yes
186 SRC += $(QUANTUM_DIR)/process_keycode/process_unicodemap.c
187endif
188
189ifeq ($(strip $(UNICODE_ENABLE)), yes)
190 OPT_DEFS += -DUNICODE_ENABLE
191 UNICODE_COMMON = yes
192 SRC += $(QUANTUM_DIR)/process_keycode/process_unicode.c
193endif
194
195ifeq ($(strip $(UNICODE_COMMON)), yes)
196 SRC += $(QUANTUM_DIR)/process_keycode/process_unicode_common.c
197endif
198
199ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
200 OPT_DEFS += -DRGBLIGHT_ENABLE
201 SRC += $(QUANTUM_DIR)/light_ws2812.c
202 SRC += $(QUANTUM_DIR)/rgblight.c
203 CIE1931_CURVE = yes
204 LED_BREATHING_TABLE = yes
205endif
206
207ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
208 OPT_DEFS += -DTAP_DANCE_ENABLE
209 SRC += $(QUANTUM_DIR)/process_keycode/process_tap_dance.c
210endif
211
212ifeq ($(strip $(PRINTING_ENABLE)), yes)
213 OPT_DEFS += -DPRINTING_ENABLE
214 SRC += $(QUANTUM_DIR)/process_keycode/process_printer.c
215 SRC += $(TMK_DIR)/protocol/serial_uart.c
216endif
217
218ifeq ($(strip $(SERIAL_LINK_ENABLE)), yes)
219 SRC += $(patsubst $(QUANTUM_PATH)/%,%,$(SERIAL_SRC))
220 OPT_DEFS += $(SERIAL_DEFS)
221 VAPTH += $(SERIAL_PATH)
222endif
223
224ifneq ($(strip $(VARIABLE_TRACE)),)
225 SRC += $(QUANTUM_DIR)/variable_trace.c
226 OPT_DEFS += -DNUM_TRACED_VARIABLES=$(strip $(VARIABLE_TRACE))
227ifneq ($(strip $(MAX_VARIABLE_TRACE_SIZE)),)
228 OPT_DEFS += -DMAX_VARIABLE_TRACE_SIZE=$(strip $(MAX_VARIABLE_TRACE_SIZE))
229endif
230endif
231
232ifeq ($(strip $(LCD_ENABLE)), yes)
233 CIE1931_CURVE = yes
234endif
235
236ifeq ($(strip $(BACKLIGHT_ENABLE)), yes)
237 ifeq ($(strip $(VISUALIZER_ENABLE)), yes)
238 CIE1931_CURVE = yes
239 endif
240endif
241
242ifeq ($(strip $(CIE1931_CURVE)), yes)
243 OPT_DEFS += -DUSE_CIE1931_CURVE
244 LED_TABLES = yes
245endif
246
247ifeq ($(strip $(LED_BREATHING_TABLE)), yes)
248 OPT_DEFS += -DUSE_LED_BREATHING_TABLE
249 LED_TABLES = yes
250endif
251
252ifeq ($(strip $(LED_TABLES)), yes)
253 SRC += $(QUANTUM_DIR)/led_tables.c
254endif
255
256# Optimize size but this may cause error "relocation truncated to fit" 134# Optimize size but this may cause error "relocation truncated to fit"
257#EXTRALDFLAGS = -Wl,--relax 135#EXTRALDFLAGS = -Wl,--relax
258 136