qmk/quantum/quantum.mk

54 lines
1.2 KiB
Makefile
Raw Normal View History

2015-10-27 00:02:25 +00:00
QUANTUM_DIR = quantum
2015-10-26 18:49:46 +00:00
# # project specific files
SRC += $(QUANTUM_DIR)/keymap_common.c \
$(QUANTUM_DIR)/led.c
2015-10-26 18:49:46 +00:00
2016-01-20 05:15:29 +00: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-16 05:06:51 +00:00
2015-10-26 20:32:37 +00:00
ifndef CUSTOM_MATRIX
SRC += $(QUANTUM_DIR)/matrix.c
endif
2015-10-26 18:49:46 +00:00
ifdef MIDI_ENABLE
2016-01-20 05:06:52 +00:00
SRC += $(QUANTUM_DIR)/keymap_midi.c
endif
ifdef AUDIO_ENABLE
SRC += $(QUANTUM_DIR)/audio.c
2015-10-26 18:49:46 +00:00
endif
ifdef UNICODE_ENABLE
SRC += $(QUANTUM_DIR)/keymap_unicode.c
endif
ifdef RGBLIGHT_ENABLE
SRC += $(QUANTUM_DIR)/light_ws2812.c
SRC += $(QUANTUM_DIR)/rgblight.c
OPT_DEFS += -DRGBLIGHT_ENABLE
endif
2015-10-26 18:49:46 +00:00
# Optimize size but this may cause error "relocation truncated to fit"
#EXTRALDFLAGS = -Wl,--relax
# Search Path
2015-10-27 00:02:25 +00:00
VPATH += $(TOP_DIR)/$(QUANTUM_DIR)
2015-10-26 18:49:46 +00:00
2015-10-27 16:42:30 +00:00
include $(TMK_DIR)/protocol/lufa.mk
2015-10-26 18:49:46 +00:00
2015-10-27 16:42:30 +00:00
include $(TMK_DIR)/common.mk
include $(TMK_DIR)/rules.mk