]> git.donarmstrong.com Git - tmk_firmware.git/blobdiff - keyboard/hhkb_rn42/Makefile
Updates to local gitignore
[tmk_firmware.git] / keyboard / hhkb_rn42 / Makefile
index 7a27a43c0468f8593cf0bdac6b19e7b6129d6eeb..3d9a602a587bf2bb3a883467e3d66747ae4c3921 100644 (file)
@@ -51,18 +51,7 @@ TARGET_DIR = .
 # List C source files here. (C dependencies are automatically generated.)
 SRC += keymap_common.c \
        matrix.c \
-       led.c \
-       serial_uart.c \
-       suart.S \
-       rn42.c \
-       rn42_task.c \
-       main.c
-
-ifdef KEYMAP
-    SRC := keymap_$(KEYMAP).c $(SRC)
-else
-    SRC := keymap_hasu.c $(SRC)
-endif
+       led.c
 
 CONFIG_H = config.h
 
@@ -122,19 +111,40 @@ OPT_DEFS += -DBOOTLOADER_SIZE=4096
 # Build Options
 #   comment out to disable the options.
 #
-BOOTMAGIC_ENABLE = yes         # Virtual DIP switch configuration
+#BOOTMAGIC_ENABLE = yes                # Virtual DIP switch configuration
 MOUSEKEY_ENABLE = yes          # Mouse keys
 EXTRAKEY_ENABLE = yes          # Audio control and System control
 CONSOLE_ENABLE = yes           # Console for debug
 COMMAND_ENABLE = yes           # Commands for debug and configuration
 #NKRO_ENABLE = yes             # USB Nkey Rollover
 #KEYMAP_SECTION_ENABLE = yes   # fixed address keymap for keymap editor
+#HHKB_JP = yes                 # HHKB JP support
+
+
+ifdef HHKB_JP
+    OPT_DEFS += -DHHKB_JP
+endif
+
+
+#
+# Keymap file
+#
+ifdef KEYMAP
+    SRC := keymap_$(KEYMAP).c $(SRC)
+else
+    ifdef HHKB_JP
+       SRC := keymap_jp.c $(SRC)
+    else
+       SRC := keymap_hasu.c $(SRC)
+    endif
+endif
 
 
 # Search Path
 VPATH += $(TARGET_DIR)
 VPATH += $(TOP_DIR)
 
+include rn42.mk
 include $(TOP_DIR)/protocol.mk
 include $(TOP_DIR)/protocol/lufa.mk
 include $(TOP_DIR)/common.mk