qmk-firmware/quantum/quantum.mk

46 lines
1.0 KiB
Makefile
Raw Normal View History

2015-10-27 01:02:25 +01:00
QUANTUM_DIR = quantum
2015-10-26 19:49:46 +01:00
# # project specific files
SRC += $(QUANTUM_DIR)/keymap_common.c \
$(QUANTUM_DIR)/led.c
ifdef KEYMAP_FILE
ifneq (,$(shell grep USING_MIDI '$(KEYMAP_FILE)'))
2016-01-16 06:06:51 +01:00
MIDI_ENABLE=yes
$(info * Overriding MIDI_ENABLE setting - $(KEYMAP_FILE) requires it)
2016-01-16 06:06:51 +01:00
endif
ifneq (,$(shell grep USING_UNICODE '$(KEYMAP_FILE)'))
2016-01-16 06:06:51 +01:00
UNICODE_ENABLE=yes
$(info * Overriding UNICODE_ENABLE setting - $(KEYMAP_FILE) requires it)
2016-01-16 06:06:51 +01:00
endif
ifneq (,$(shell grep USING_BACKLIGHT '$(KEYMAP_FILE)'))
2016-01-16 06:06:51 +01:00
BACKLIGHT_ENABLE=yes
$(info * Overriding BACKLIGHT_ENABLE setting - $(KEYMAP_FILE) requires it)
2016-01-16 06:06:51 +01:00
endif
endif
2015-10-26 21:32:37 +01:00
ifndef CUSTOM_MATRIX
SRC += $(QUANTUM_DIR)/matrix.c
endif
2015-10-26 19:49:46 +01:00
ifdef MIDI_ENABLE
SRC += $(QUANTUM_DIR)/keymap_midi.c \
$(QUANTUM_DIR)/beeps.c
endif
ifdef UNICODE_ENABLE
SRC += $(QUANTUM_DIR)/keymap_unicode.c
endif
# Optimize size but this may cause error "relocation truncated to fit"
#EXTRALDFLAGS = -Wl,--relax
# Search Path
2015-10-27 01:02:25 +01:00
VPATH += $(TOP_DIR)/$(QUANTUM_DIR)
2015-10-26 19:49:46 +01:00
2015-10-27 17:42:30 +01:00
include $(TMK_DIR)/protocol/lufa.mk
2015-10-26 19:49:46 +01:00
2015-10-27 17:42:30 +01:00
include $(TMK_DIR)/common.mk
include $(TMK_DIR)/rules.mk
2015-10-26 19:49:46 +01:00