-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (40 loc) · 1.27 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
ifndef KEYMAP
KEYMAP = default
endif
# Target file name (without extension).
TARGET = monarch
TARGET_DIR = .
TMK_DIR = ../../module/tmk/tmk_core
SRC = keymap_common.c \
matrix.c \
led.c \
init.c \
keymaps/$(KEYMAP).c
CONFIG_H = config.h
# MCU-specific settings
ARCH = AVR8
MCU = atmega32u4
F_CPU = 16000000
F_USB = $(F_CPU)
OPT_DEFS += -DBOOTLOADER_SIZE=4096
# Interrupt driven control endpoint task(+60)
# Basically all HID devices use this. --njb
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
# Build Options
BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
CONSOLE_ENABLE = yes # Console for debug(+400)
COMMAND_ENABLE = yes # Commands for debug and configuration
KEYBOARD_LOCK_ENABLE = yes # Child lock
NKRO_ENABLE = yes # USB Nkey Rollover
#MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
#SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
BACKLIGHT_ENABLE = yes # Monarch underlighting support
# Optimize size but this may cause error "relocation truncated to fit"
EXTRALDFLAGS = -Wl,--relax
include $(TMK_DIR)/protocol/lufa.mk
include $(TMK_DIR)/common.mk
include $(TMK_DIR)/rules.mk
# Search Path
VPATH += $(TARGET_DIR)
VPATH += $(TMK_DIR)