You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qmk_firmware/quantum/quantum.mk

46 lines
1.0 KiB
Makefile

QUANTUM_DIR = quantum
# # project specific files
SRC += $(QUANTUM_DIR)/keymap_common.c \
$(QUANTUM_DIR)/led.c
ifdef KEYMAP_FILE
ifneq (,$(shell grep USING_MIDI '$(KEYMAP_FILE)'))
9 years ago
MIDI_ENABLE=yes
$(info * Overriding MIDI_ENABLE setting - $(KEYMAP_FILE) requires it)
9 years ago
endif
ifneq (,$(shell grep USING_UNICODE '$(KEYMAP_FILE)'))
9 years ago
UNICODE_ENABLE=yes
$(info * Overriding UNICODE_ENABLE setting - $(KEYMAP_FILE) requires it)
9 years ago
endif
ifneq (,$(shell grep USING_BACKLIGHT '$(KEYMAP_FILE)'))
9 years ago
BACKLIGHT_ENABLE=yes
$(info * Overriding BACKLIGHT_ENABLE setting - $(KEYMAP_FILE) requires it)
9 years ago
endif
endif
9 years ago
ifndef CUSTOM_MATRIX
SRC += $(QUANTUM_DIR)/matrix.c
endif
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
VPATH += $(TOP_DIR)/$(QUANTUM_DIR)
9 years ago
include $(TMK_DIR)/protocol/lufa.mk
9 years ago
include $(TMK_DIR)/common.mk
include $(TMK_DIR)/rules.mk