-# Increase verbosity level. Please use this when submitting bug
-# reports about avrdude. See <http://savannah.nongnu.org/projects/avrdude>
-# to submit bug reports.
-#AVRDUDE_VERBOSE = -v -v
+# Build Options
+# *Comment out* to disable the options.
+#
+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
+#HARDWARE_SERIAL ?= yes # Use hardware serial (requires inverted serial, see README)
+#NKRO_ENABLE ?= yes # USB Nkey Rollover
+UNIMAP_ENABLE = yes
+KEYMAP_SECTION_ENABLE = yes
+
+ifdef HARDWARE_SERIAL
+ SRC := protocol/serial_uart.c $(SRC)
+ OPT_DEFS += -DHARDWARE_SERIAL
+else
+ SRC := protocol/serial_soft.c $(SRC)
+endif
+
+# Boot Section Size in bytes
+# Teensy halfKay 512
+# Atmel DFU loader 4096
+# LUFA bootloader 4096
+# Bootloader size can be calculated from fuse bits
+#OPT_DEFS += -DBOOTLOADER_SIZE=4096