X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=keyboard%2Fnerd%2FMakefile;h=30149345cee96876b9c11adbf3042c8c6052f2ec;hb=81fe1fda6168dcbe989acef89c089e81dff6c4a5;hp=10fa144fbb88d79107da5ec0e394104d8a1eeb00;hpb=d9b5f5110ebf3e7da6a11e8640fb4367114aed67;p=max%2Ftmk_keyboard.git diff --git a/keyboard/nerd/Makefile b/keyboard/nerd/Makefile index 10fa144f..30149345 100644 --- a/keyboard/nerd/Makefile +++ b/keyboard/nerd/Makefile @@ -42,7 +42,7 @@ TARGET = nerd_lufa # Directory common source filess exist -TOP_DIR = ../.. +TMK_DIR = ../../tmk_core # Directory keyboard dependent files exist TARGET_DIR = . @@ -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 @@ -113,11 +119,8 @@ BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality # Search Path VPATH += $(TARGET_DIR) -VPATH += $(TOP_DIR) - -include $(TOP_DIR)/protocol/lufa.mk -include $(TOP_DIR)/common.mk -include $(TOP_DIR)/rules.mk +VPATH += $(TMK_DIR) -winkey: OPT_DEFS += -DLAYOUT_WINKEY -winkey: all +include $(TMK_DIR)/protocol/lufa.mk +include $(TMK_DIR)/common.mk +include $(TMK_DIR)/rules.mk