pana_m8: Add initial files
[tmk_keyboard.git] / keyboard / pana_m8 / Makefile
1 TARGET ?= pana_m8
2 TARGET_DIR ?= .
3 TMK_DIR ?= ../../tmk_core
4
5 MCU ?= atmega32u4
6 F_CPU ?= 16000000
7 # Boot Section Size in *bytes*
8 OPT_DEFS += -DBOOTLOADER_SIZE=4096
9
10 # LUFA specific
11 ARCH ?= AVR8
12 F_USB ?= $(F_CPU)
13 OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
14
15
16 # Build Options
17 #BOOTMAGIC_ENABLE ?= yes # Virtual DIP switch configuration
18 #MOUSEKEY_ENABLE ?= yes # Mouse keys
19 #EXTRAKEY_ENABLE ?= yes # Audio control and System control
20 CONSOLE_ENABLE ?= yes # Console for debug
21 COMMAND_ENABLE ?= yes # Commands for debug and configuration
22 #NKRO_ENABLE ?= yes # USB Nkey Rollover
23 #ACTIONMAP_ENABLE ?= yes # Use 16bit actionmap instead of 8bit keymap
24 UNIMAP_ENABLE ?= yes # Universal keymap
25 KEYMAP_SECTION_ENABLE ?= yes # fixed address keymap for keymap editor
26
27
28 # List C source files
29 SRC ?= pana_m8.c
30
31 CONFIG_H ?= config.h
32
33
34 # Keymap file
35 ifeq (yes,$(strip $(UNIMAP_ENABLE)))
36 KEYMAP_FILE = unimap
37 else
38 ifeq (yes,$(strip $(ACTIONMAP_ENABLE)))
39 KEYMAP_FILE = actionmap
40 else
41 KEYMAP_FILE = keymap
42 endif
43 endif
44 ifdef KEYMAP
45 SRC := $(KEYMAP_FILE)_$(KEYMAP).c $(SRC)
46 else
47 SRC := $(KEYMAP_FILE).c $(SRC)
48 endif
49
50
51 # Search Path
52 VPATH += $(TARGET_DIR)
53 VPATH += $(TMK_DIR)
54
55 include $(TMK_DIR)/protocol/lufa.mk
56 include $(TMK_DIR)/common.mk
57 include $(TMK_DIR)/rules.mk
Imprint / Impressum