qmk_firmware/quantum/quantum.mk

59 lines
1.5 KiB
Makefile
Raw Normal View History

2015-10-26 17:02:25 -07:00
QUANTUM_DIR = quantum
2015-10-26 11:49:46 -07:00
# # project specific files
SRC += $(QUANTUM_DIR)/quantum.c \
$(QUANTUM_DIR)/keymap_common.c \
$(QUANTUM_DIR)/led.c
2015-10-26 11:49:46 -07:00
2016-01-19 21:15:29 -08:00
# 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
2016-01-15 21:06:51 -08:00
2015-10-26 13:32:37 -07:00
ifndef CUSTOM_MATRIX
SRC += $(QUANTUM_DIR)/matrix.c
endif
2016-04-14 21:26:22 -07:00
ifeq ($(strip $(MIDI_ENABLE)), yes)
2016-01-19 21:06:52 -08:00
SRC += $(QUANTUM_DIR)/keymap_midi.c
endif
2016-04-14 21:26:22 -07:00
ifeq ($(strip $(AUDIO_ENABLE)), yes)
SRC += $(QUANTUM_DIR)/audio/audio.c
SRC += $(QUANTUM_DIR)/audio/voices.c
SRC += $(QUANTUM_DIR)/audio/luts.c
2015-10-26 11:49:46 -07:00
endif
2016-04-14 21:26:22 -07:00
ifeq ($(strip $(UNICODE_ENABLE)), yes)
2015-10-26 11:49:46 -07:00
SRC += $(QUANTUM_DIR)/keymap_unicode.c
endif
2016-04-14 21:26:22 -07:00
ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
SRC += $(QUANTUM_DIR)/light_ws2812.c
SRC += $(QUANTUM_DIR)/rgblight.c
OPT_DEFS += -DRGBLIGHT_ENABLE
endif
2015-10-26 11:49:46 -07:00
# Optimize size but this may cause error "relocation truncated to fit"
#EXTRALDFLAGS = -Wl,--relax
# Search Path
2015-10-26 17:02:25 -07:00
VPATH += $(TOP_DIR)/$(QUANTUM_DIR)
2016-04-15 22:23:08 -07:00
VPATH += $(TOP_DIR)/$(QUANTUM_DIR)/keymap_extras
2016-04-20 21:37:45 -07:00
VPATH += $(TOP_DIR)/$(QUANTUM_DIR)/audio
2015-10-26 11:49:46 -07:00
2015-10-27 09:42:30 -07:00
include $(TMK_DIR)/protocol/lufa.mk
2015-10-26 11:49:46 -07:00
2015-10-27 09:42:30 -07:00
include $(TMK_DIR)/common.mk
include $(TMK_DIR)/rules.mk