-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (38 loc) · 1.23 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
KEYMAP ?= default
# Target file name (without extension).
TARGET ?= epiphanies_tmk_pegasushoof_20150108_lufa
TARGET_DIR ?= .
TMK_DIR ?= ../../module/tmk/tmk_core
NJBAIR_COMMON_DIR ?= ../../common
SRC ?= \
matrix.c \
led.c \
$(NJBAIR_COMMON_DIR)/init.c \
keymaps/$(KEYMAP).c
CONFIG_H ?= config.h
# MCU-specific settings
ARCH ?= AVR8
MCU ?= atmega32u2
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)
# Optimize size but this may cause error "relocation truncated to fit"
EXTRALDFLAGS = -Wl,--relax
# Search Path
VPATH += $(NJBAIR_COMMON_DIR)
VPATH += $(TARGET_DIR)
VPATH += $(TMK_DIR)
include $(TMK_DIR)/protocol/lufa.mk
include $(TMK_DIR)/common.mk
include $(TMK_DIR)/rules.mk