summaryrefslogtreecommitdiff
path: root/keyboard/nerd/Makefile
diff options
context:
space:
mode:
authorRalf Schmitt <ralf@bunkertor.net>2014-11-23 13:29:07 +0100
committerRalf Schmitt <ralf@bunkertor.net>2015-01-18 11:45:24 +0100
commit2d740203318e2b0164e584a853bd0172dd9127cb (patch)
treee121f8e3ee75fbe4698eca805dd9826c316805d8 /keyboard/nerd/Makefile
parentd9b5f5110ebf3e7da6a11e8640fb4367114aed67 (diff)
Added NerD 80% (TKL) support
Diffstat (limited to 'keyboard/nerd/Makefile')
-rw-r--r--keyboard/nerd/Makefile17
1 files changed, 10 insertions, 7 deletions
diff --git a/keyboard/nerd/Makefile b/keyboard/nerd/Makefile
index 10fa144fbb..5fd382841f 100644
--- a/keyboard/nerd/Makefile
+++ b/keyboard/nerd/Makefile
@@ -50,9 +50,15 @@ TARGET_DIR = .
# project specific files
SRC = keymap_common.c \
matrix.c \
- backlight.c \
- led.c \
- keymap_ansi150.c
+ backlight.c
+
+ifdef LAYOUT
+ OPT_DEFS += -DNERD_LAYOUT_$(LAYOUT)
+endif
+
+ifdef KEYMAP
+ SRC := keymap_$(LAYOUT)_$(KEYMAP).c $(SRC)
+endif
CONFIG_H = config.h
@@ -103,7 +109,7 @@ OPT_DEFS += -DBOOTLOADER_SIZE=4096
# comment out to disable the options.
#
BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
-#MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
+MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
CONSOLE_ENABLE = yes # Console for debug(+400)
COMMAND_ENABLE = yes # Commands for debug and configuration
@@ -118,6 +124,3 @@ VPATH += $(TOP_DIR)
include $(TOP_DIR)/protocol/lufa.mk
include $(TOP_DIR)/common.mk
include $(TOP_DIR)/rules.mk
-
-winkey: OPT_DEFS += -DLAYOUT_WINKEY
-winkey: all