aboutsummaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
Diffstat (limited to 'quantum')
-rw-r--r--quantum/quantum.mk58
-rw-r--r--quantum/template/Makefile51
-rw-r--r--quantum/template/README.md2
-rw-r--r--quantum/template/keymaps/default/keymap.c (renamed from quantum/template/keymaps/default.c)0
4 files changed, 4 insertions, 107 deletions
diff --git a/quantum/quantum.mk b/quantum/quantum.mk
deleted file mode 100644
index 00d3e8114..000000000
--- a/quantum/quantum.mk
+++ /dev/null
@@ -1,58 +0,0 @@
1QUANTUM_DIR = quantum
2
3ifndef VERBOSE
4.SILENT:
5endif
6
7# # project specific files
8SRC += $(QUANTUM_DIR)/quantum.c \
9 $(QUANTUM_DIR)/keymap_common.c \
10 $(QUANTUM_DIR)/led.c
11
12# ifdef KEYMAP_FILE
13# ifneq (,$(shell grep USING_MIDI '$(KEYMAP_FILE)'))
14# MIDI_ENABLE=yes
15# $(info * Overriding MIDI_ENABLE setting - $(KEYMAP_FILE) requires it)
16# endif
17# ifneq (,$(shell grep USING_UNICODE '$(KEYMAP_FILE)'))
18# UNICODE_ENABLE=yes
19# $(info * Overriding UNICODE_ENABLE setting - $(KEYMAP_FILE) requires it)
20# endif
21# ifneq (,$(shell grep USING_BACKLIGHT '$(KEYMAP_FILE)'))
22# BACKLIGHT_ENABLE=yes
23# $(info * Overriding BACKLIGHT_ENABLE setting - $(KEYMAP_FILE) requires it)
24# endif
25# endif
26
27ifndef CUSTOM_MATRIX
28 SRC += $(QUANTUM_DIR)/matrix.c
29endif
30
31#ifeq ($(strip $(MIDI_ENABLE)), yes)
32# SRC += $(QUANTUM_DIR)/keymap_midi.c
33#endif
34
35ifeq ($(strip $(AUDIO_ENABLE)), yes)
36 SRC += $(QUANTUM_DIR)/audio/audio.c
37 SRC += $(QUANTUM_DIR)/audio/voices.c
38 SRC += $(QUANTUM_DIR)/audio/luts.c
39endif
40
41ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
42 SRC += $(QUANTUM_DIR)/light_ws2812.c
43 SRC += $(QUANTUM_DIR)/rgblight.c
44 OPT_DEFS += -DRGBLIGHT_ENABLE
45endif
46
47# Optimize size but this may cause error "relocation truncated to fit"
48#EXTRALDFLAGS = -Wl,--relax
49
50# Search Path
51VPATH += $(TOP_DIR)/$(QUANTUM_DIR)
52VPATH += $(TOP_DIR)/$(QUANTUM_DIR)/keymap_extras
53VPATH += $(TOP_DIR)/$(QUANTUM_DIR)/audio
54
55include $(TMK_DIR)/protocol/lufa.mk
56
57include $(TMK_DIR)/common.mk
58include $(TMK_DIR)/rules.mk
diff --git a/quantum/template/Makefile b/quantum/template/Makefile
index f101eb7a6..8772b0920 100644
--- a/quantum/template/Makefile
+++ b/quantum/template/Makefile
@@ -38,28 +38,6 @@
38# To rebuild project do "make clean" then "make all". 38# To rebuild project do "make clean" then "make all".
39#---------------------------------------------------------------------------- 39#----------------------------------------------------------------------------
40 40
41# Target file name (without extension).
42TARGET = %KEYBOARD%
43
44
45# Directory common source filess exist
46TOP_DIR = ../..
47TMK_DIR = ../../tmk_core
48
49# Directory keyboard dependent files exist
50TARGET_DIR = .
51
52# # project specific files
53SRC = %KEYBOARD%.c
54
55ifdef KEYMAP
56 SRC := keymaps/$(KEYMAP).c $(SRC)
57else
58 SRC := keymaps/default.c $(SRC)
59endif
60
61CONFIG_H = config.h
62
63# MCU name 41# MCU name
64#MCU = at90usb1287 42#MCU = at90usb1287
65MCU = atmega32u4 43MCU = atmega32u4
@@ -113,12 +91,11 @@ OPT_DEFS += -DBOOTLOADER_SIZE=512
113# Build Options 91# Build Options
114# change yes to no to disable 92# change yes to no to disable
115# 93#
116BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) 94BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
117MOUSEKEY_ENABLE = yes # Mouse keys(+4700) 95MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
118EXTRAKEY_ENABLE = yes # Audio control and System control(+450) 96EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
119CONSOLE_ENABLE = yes # Console for debug(+400) 97CONSOLE_ENABLE = yes # Console for debug(+400)
120COMMAND_ENABLE = yes # Commands for debug and configuration 98COMMAND_ENABLE = yes # Commands for debug and configuration
121KEYBOARD_LOCK_ENABLE = yes # Allow locking of keyboard via magic key
122# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE 99# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
123SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 100SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
124# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 101# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
@@ -129,30 +106,8 @@ UNICODE_ENABLE = no # Unicode
129BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 106BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
130AUDIO_ENABLE = no # Audio output on port C6 107AUDIO_ENABLE = no # Audio output on port C6
131 108
132 109ifndef QUANTUM_DIR
133ifdef KEYMAP 110 include ../../Makefile
134
135ifeq ("$(wildcard keymaps/$(KEYMAP).c)","")
136ifneq ("$(wildcard keymaps/$(KEYMAP)/makefile.mk)","")
137 include keymaps/$(KEYMAP)/makefile.mk
138endif
139endif
140
141else
142
143ifneq ("$(wildcard keymaps/default/makefile.mk)","")
144 include keymaps/default/makefile.mk
145endif 111endif
146 112
147endif
148
149# Optimize size but this may cause error "relocation truncated to fit"
150#EXTRALDFLAGS = -Wl,--relax
151
152# Search Path
153VPATH += $(TARGET_DIR)
154VPATH += $(TOP_DIR)
155VPATH += $(TMK_DIR)
156
157include $(TOP_DIR)/quantum/quantum.mk
158 113
diff --git a/quantum/template/README.md b/quantum/template/README.md
index 39f9f59d1..baaeef473 100644
--- a/quantum/template/README.md
+++ b/quantum/template/README.md
@@ -3,7 +3,7 @@
3 3
4## Quantum MK Firmware 4## Quantum MK Firmware
5 5
6For the full Quantum feature list, see [the parent README.md](/README.md). 6For the full Quantum feature list, see [the parent README.md](/doc/README.md).
7 7
8## Building 8## Building
9 9
diff --git a/quantum/template/keymaps/default.c b/quantum/template/keymaps/default/keymap.c
index 4121fd860..4121fd860 100644
--- a/quantum/template/keymaps/default.c
+++ b/quantum/template/keymaps/default/keymap.c