pana_m8: Move keyboard to converter directory
[tmk_keyboard.git] / converter / pana_m8 / Makefile
CommitLineData
353afe87 1TARGET ?= pana_m8
2TARGET_DIR ?= .
3TMK_DIR ?= ../../tmk_core
4
5MCU ?= atmega32u4
6F_CPU ?= 16000000
7# Boot Section Size in *bytes*
8OPT_DEFS += -DBOOTLOADER_SIZE=4096
9
10# LUFA specific
11ARCH ?= AVR8
12F_USB ?= $(F_CPU)
13OPT_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
20CONSOLE_ENABLE ?= yes # Console for debug
21COMMAND_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
24UNIMAP_ENABLE ?= yes # Universal keymap
25KEYMAP_SECTION_ENABLE ?= yes # fixed address keymap for keymap editor
26
27
28# List C source files
29SRC ?= pana_m8.c
30
31CONFIG_H ?= config.h
32
33
34# Keymap file
35ifeq (yes,$(strip $(UNIMAP_ENABLE)))
36 KEYMAP_FILE = unimap
37else
38 ifeq (yes,$(strip $(ACTIONMAP_ENABLE)))
39 KEYMAP_FILE = actionmap
40 else
41 KEYMAP_FILE = keymap
42 endif
43endif
44ifdef KEYMAP
45 SRC := $(KEYMAP_FILE)_$(KEYMAP).c $(SRC)
46else
47 SRC := $(KEYMAP_FILE).c $(SRC)
48endif
49
50
51# Search Path
52VPATH += $(TARGET_DIR)
53VPATH += $(TMK_DIR)
54
55include $(TMK_DIR)/protocol/lufa.mk
56include $(TMK_DIR)/common.mk
57include $(TMK_DIR)/rules.mk
Imprint / Impressum