Peter's keyboard firmware (QMK) https://qmk.fm/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build_keyboard.mk 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  1. # Determine what keyboard we are building and setup the build environment.
  2. #
  3. # We support folders up to 5 levels deep below `keyboards/`. This file is
  4. # responsible for determining which folder is being used and doing the
  5. # corresponding environment setup.
  6. ifndef VERBOSE
  7. .SILENT:
  8. endif
  9. .DEFAULT_GOAL := all
  10. include common.mk
  11. # Set the filename for the final firmware binary
  12. KEYBOARD_FILESAFE := $(subst /,_,$(KEYBOARD))
  13. TARGET ?= $(KEYBOARD_FILESAFE)_$(KEYMAP)
  14. KEYBOARD_OUTPUT := $(BUILD_DIR)/obj_$(KEYBOARD_FILESAFE)
  15. STM32_PATH := quantum/stm32
  16. # Force expansion
  17. TARGET := $(TARGET)
  18. # For split boards we need to set a master half.
  19. MASTER ?= left
  20. ifdef master
  21. MASTER = $(master)
  22. endif
  23. ifeq ($(MASTER),right)
  24. OPT_DEFS += -DMASTER_IS_ON_RIGHT
  25. else
  26. ifneq ($(MASTER),left)
  27. $(error MASTER does not have a valid value(left/right))
  28. endif
  29. endif
  30. ifdef SKIP_VERSION
  31. OPT_DEFS += -DSKIP_VERSION
  32. endif
  33. # Determine which subfolders exist.
  34. KEYBOARD_FOLDER_PATH_1 := $(KEYBOARD)
  35. KEYBOARD_FOLDER_PATH_2 := $(patsubst %/,%,$(dir $(KEYBOARD_FOLDER_PATH_1)))
  36. KEYBOARD_FOLDER_PATH_3 := $(patsubst %/,%,$(dir $(KEYBOARD_FOLDER_PATH_2)))
  37. KEYBOARD_FOLDER_PATH_4 := $(patsubst %/,%,$(dir $(KEYBOARD_FOLDER_PATH_3)))
  38. KEYBOARD_FOLDER_PATH_5 := $(patsubst %/,%,$(dir $(KEYBOARD_FOLDER_PATH_4)))
  39. KEYBOARD_FOLDER_1 := $(notdir $(KEYBOARD_FOLDER_PATH_1))
  40. KEYBOARD_FOLDER_2 := $(notdir $(KEYBOARD_FOLDER_PATH_2))
  41. KEYBOARD_FOLDER_3 := $(notdir $(KEYBOARD_FOLDER_PATH_3))
  42. KEYBOARD_FOLDER_4 := $(notdir $(KEYBOARD_FOLDER_PATH_4))
  43. KEYBOARD_FOLDER_5 := $(notdir $(KEYBOARD_FOLDER_PATH_5))
  44. KEYBOARD_PATHS :=
  45. KEYBOARD_PATH_1 := keyboards/$(KEYBOARD_FOLDER_PATH_1)
  46. KEYBOARD_PATH_2 := keyboards/$(KEYBOARD_FOLDER_PATH_2)
  47. KEYBOARD_PATH_3 := keyboards/$(KEYBOARD_FOLDER_PATH_3)
  48. KEYBOARD_PATH_4 := keyboards/$(KEYBOARD_FOLDER_PATH_4)
  49. KEYBOARD_PATH_5 := keyboards/$(KEYBOARD_FOLDER_PATH_5)
  50. ifneq ("$(wildcard $(KEYBOARD_PATH_5)/)","")
  51. KEYBOARD_PATHS += $(KEYBOARD_PATH_5)
  52. endif
  53. ifneq ("$(wildcard $(KEYBOARD_PATH_4)/)","")
  54. KEYBOARD_PATHS += $(KEYBOARD_PATH_4)
  55. endif
  56. ifneq ("$(wildcard $(KEYBOARD_PATH_3)/)","")
  57. KEYBOARD_PATHS += $(KEYBOARD_PATH_3)
  58. endif
  59. ifneq ("$(wildcard $(KEYBOARD_PATH_2)/)","")
  60. KEYBOARD_PATHS += $(KEYBOARD_PATH_2)
  61. endif
  62. ifneq ("$(wildcard $(KEYBOARD_PATH_1)/)","")
  63. KEYBOARD_PATHS += $(KEYBOARD_PATH_1)
  64. endif
  65. # Pull in rules.mk files from all our subfolders
  66. ifneq ("$(wildcard $(KEYBOARD_PATH_5)/rules.mk)","")
  67. include $(KEYBOARD_PATH_5)/rules.mk
  68. endif
  69. ifneq ("$(wildcard $(KEYBOARD_PATH_4)/rules.mk)","")
  70. include $(KEYBOARD_PATH_4)/rules.mk
  71. endif
  72. ifneq ("$(wildcard $(KEYBOARD_PATH_3)/rules.mk)","")
  73. include $(KEYBOARD_PATH_3)/rules.mk
  74. endif
  75. ifneq ("$(wildcard $(KEYBOARD_PATH_2)/rules.mk)","")
  76. include $(KEYBOARD_PATH_2)/rules.mk
  77. endif
  78. ifneq ("$(wildcard $(KEYBOARD_PATH_1)/rules.mk)","")
  79. include $(KEYBOARD_PATH_1)/rules.mk
  80. endif
  81. MAIN_KEYMAP_PATH_1 := $(KEYBOARD_PATH_1)/keymaps/$(KEYMAP)
  82. MAIN_KEYMAP_PATH_2 := $(KEYBOARD_PATH_2)/keymaps/$(KEYMAP)
  83. MAIN_KEYMAP_PATH_3 := $(KEYBOARD_PATH_3)/keymaps/$(KEYMAP)
  84. MAIN_KEYMAP_PATH_4 := $(KEYBOARD_PATH_4)/keymaps/$(KEYMAP)
  85. MAIN_KEYMAP_PATH_5 := $(KEYBOARD_PATH_5)/keymaps/$(KEYMAP)
  86. ifneq ("$(wildcard $(MAIN_KEYMAP_PATH_5)/keymap.c)","")
  87. -include $(MAIN_KEYMAP_PATH_5)/rules.mk
  88. KEYMAP_C := $(MAIN_KEYMAP_PATH_5)/keymap.c
  89. KEYMAP_PATH := $(MAIN_KEYMAP_PATH_5)
  90. else ifneq ("$(wildcard $(MAIN_KEYMAP_PATH_4)/keymap.c)","")
  91. -include $(MAIN_KEYMAP_PATH_4)/rules.mk
  92. KEYMAP_C := $(MAIN_KEYMAP_PATH_4)/keymap.c
  93. KEYMAP_PATH := $(MAIN_KEYMAP_PATH_4)
  94. else ifneq ("$(wildcard $(MAIN_KEYMAP_PATH_3)/keymap.c)","")
  95. -include $(MAIN_KEYMAP_PATH_3)/rules.mk
  96. KEYMAP_C := $(MAIN_KEYMAP_PATH_3)/keymap.c
  97. KEYMAP_PATH := $(MAIN_KEYMAP_PATH_3)
  98. else ifneq ("$(wildcard $(MAIN_KEYMAP_PATH_2)/keymap.c)","")
  99. -include $(MAIN_KEYMAP_PATH_2)/rules.mk
  100. KEYMAP_C := $(MAIN_KEYMAP_PATH_2)/keymap.c
  101. KEYMAP_PATH := $(MAIN_KEYMAP_PATH_2)
  102. else ifneq ("$(wildcard $(MAIN_KEYMAP_PATH_1)/keymap.c)","")
  103. -include $(MAIN_KEYMAP_PATH_1)/rules.mk
  104. KEYMAP_C := $(MAIN_KEYMAP_PATH_1)/keymap.c
  105. KEYMAP_PATH := $(MAIN_KEYMAP_PATH_1)
  106. else ifneq ($(LAYOUTS),)
  107. include build_layout.mk
  108. else
  109. $(error Could not find keymap)
  110. # this state should never be reached
  111. endif
  112. ifeq ($(strip $(CTPC)), yes)
  113. CONVERT_TO_PROTON_C=yes
  114. endif
  115. ifeq ($(strip $(CONVERT_TO_PROTON_C)), yes)
  116. TARGET := $(TARGET)_proton_c
  117. include $(STM32_PATH)/proton_c.mk
  118. OPT_DEFS += -DCONVERT_TO_PROTON_C
  119. endif
  120. ifneq ($(FORCE_LAYOUT),)
  121. TARGET := $(TARGET)_$(FORCE_LAYOUT)
  122. endif
  123. include quantum/mcu_selection.mk
  124. ifdef MCU_FAMILY
  125. OPT_DEFS += -DQMK_STM32
  126. KEYBOARD_PATHS += $(STM32_PATH)
  127. endif
  128. # Find all the C source files to be compiled in subfolders.
  129. KEYBOARD_SRC :=
  130. KEYBOARD_C_1 := $(KEYBOARD_PATH_1)/$(KEYBOARD_FOLDER_1).c
  131. KEYBOARD_C_2 := $(KEYBOARD_PATH_2)/$(KEYBOARD_FOLDER_2).c
  132. KEYBOARD_C_3 := $(KEYBOARD_PATH_3)/$(KEYBOARD_FOLDER_3).c
  133. KEYBOARD_C_4 := $(KEYBOARD_PATH_4)/$(KEYBOARD_FOLDER_4).c
  134. KEYBOARD_C_5 := $(KEYBOARD_PATH_5)/$(KEYBOARD_FOLDER_5).c
  135. ifneq ("$(wildcard $(KEYBOARD_C_5))","")
  136. KEYBOARD_SRC += $(KEYBOARD_C_5)
  137. endif
  138. ifneq ("$(wildcard $(KEYBOARD_C_4))","")
  139. KEYBOARD_SRC += $(KEYBOARD_C_4)
  140. endif
  141. ifneq ("$(wildcard $(KEYBOARD_C_3))","")
  142. KEYBOARD_SRC += $(KEYBOARD_C_3)
  143. endif
  144. ifneq ("$(wildcard $(KEYBOARD_C_2))","")
  145. KEYBOARD_SRC += $(KEYBOARD_C_2)
  146. endif
  147. ifneq ("$(wildcard $(KEYBOARD_C_1))","")
  148. KEYBOARD_SRC += $(KEYBOARD_C_1)
  149. endif
  150. # Generate KEYBOARD_name_subname for all levels of the keyboard folder
  151. KEYBOARD_FILESAFE_1 := $(subst .,,$(subst /,_,$(KEYBOARD_FOLDER_PATH_1)))
  152. KEYBOARD_FILESAFE_2 := $(subst .,,$(subst /,_,$(KEYBOARD_FOLDER_PATH_2)))
  153. KEYBOARD_FILESAFE_3 := $(subst .,,$(subst /,_,$(KEYBOARD_FOLDER_PATH_3)))
  154. KEYBOARD_FILESAFE_4 := $(subst .,,$(subst /,_,$(KEYBOARD_FOLDER_PATH_4)))
  155. KEYBOARD_FILESAFE_5 := $(subst .,,$(subst /,_,$(KEYBOARD_FOLDER_PATH_5)))
  156. ifneq ("$(wildcard $(KEYBOARD_PATH_5)/)","")
  157. OPT_DEFS += -DKEYBOARD_$(KEYBOARD_FILESAFE_5)
  158. endif
  159. ifneq ("$(wildcard $(KEYBOARD_PATH_4)/)","")
  160. OPT_DEFS += -DKEYBOARD_$(KEYBOARD_FILESAFE_4)
  161. endif
  162. ifneq ("$(wildcard $(KEYBOARD_PATH_3)/)","")
  163. OPT_DEFS += -DKEYBOARD_$(KEYBOARD_FILESAFE_3)
  164. endif
  165. ifneq ("$(wildcard $(KEYBOARD_PATH_2)/)","")
  166. OPT_DEFS += -DKEYBOARD_$(KEYBOARD_FILESAFE_2)
  167. endif
  168. ifneq ("$(wildcard $(KEYBOARD_PATH_1)/)","")
  169. OPT_DEFS += -DKEYBOARD_$(KEYBOARD_FILESAFE_1)
  170. endif
  171. # Setup the define for QMK_KEYBOARD_H. This is used inside of keymaps so
  172. # that the same keymap may be used on multiple keyboards.
  173. #
  174. # We grab the most top-level include file that we can. That file should
  175. # use #ifdef statements to include all the neccesary subfolder includes,
  176. # as described here:
  177. #
  178. # https://docs.qmk.fm/#/feature_layouts?id=tips-for-making-layouts-keyboard-agnostic
  179. #
  180. ifneq ("$(wildcard $(KEYBOARD_PATH_1)/$(KEYBOARD_FOLDER_1).h)","")
  181. QMK_KEYBOARD_H = $(KEYBOARD_FOLDER_1).h
  182. endif
  183. ifneq ("$(wildcard $(KEYBOARD_PATH_2)/$(KEYBOARD_FOLDER_2).h)","")
  184. QMK_KEYBOARD_H = $(KEYBOARD_FOLDER_2).h
  185. endif
  186. ifneq ("$(wildcard $(KEYBOARD_PATH_3)/$(KEYBOARD_FOLDER_3).h)","")
  187. QMK_KEYBOARD_H = $(KEYBOARD_FOLDER_3).h
  188. endif
  189. ifneq ("$(wildcard $(KEYBOARD_PATH_4)/$(KEYBOARD_FOLDER_4).h)","")
  190. QMK_KEYBOARD_H = $(KEYBOARD_FOLDER_4).h
  191. endif
  192. ifneq ("$(wildcard $(KEYBOARD_PATH_5)/$(KEYBOARD_FOLDER_5).h)","")
  193. QMK_KEYBOARD_H = $(KEYBOARD_FOLDER_5).h
  194. endif
  195. # Determine and set parameters based on the keyboard's processor family.
  196. # We can assume a ChibiOS target When MCU_FAMILY is defined since it's
  197. # not used for LUFA
  198. ifdef MCU_FAMILY
  199. FIRMWARE_FORMAT?=bin
  200. PLATFORM=CHIBIOS
  201. else ifdef ARM_ATSAM
  202. PLATFORM=ARM_ATSAM
  203. FIRMWARE_FORMAT=bin
  204. else
  205. PLATFORM=AVR
  206. FIRMWARE_FORMAT?=hex
  207. endif
  208. ifeq ($(PLATFORM),CHIBIOS)
  209. include $(TMK_PATH)/chibios.mk
  210. OPT_OS = chibios
  211. ifneq ("$(wildcard $(KEYBOARD_PATH_5)/bootloader_defs.h)","")
  212. OPT_DEFS += -include $(KEYBOARD_PATH_5)/bootloader_defs.h
  213. else ifneq ("$(wildcard $(KEYBOARD_PATH_5)/boards/$(BOARD)/bootloader_defs.h)","")
  214. OPT_DEFS += -include $(KEYBOARD_PATH_5)/boards/$(BOARD)/bootloader_defs.h
  215. else ifneq ("$(wildcard $(KEYBOARD_PATH_4)/bootloader_defs.h)","")
  216. OPT_DEFS += -include $(KEYBOARD_PATH_4)/bootloader_defs.h
  217. else ifneq ("$(wildcard $(KEYBOARD_PATH_4)/boards/$(BOARD)/bootloader_defs.h)","")
  218. OPT_DEFS += -include $(KEYBOARD_PATH_4)/boards/$(BOARD)/bootloader_defs.h
  219. else ifneq ("$(wildcard $(KEYBOARD_PATH_3)/bootloader_defs.h)","")
  220. OPT_DEFS += -include $(KEYBOARD_PATH_3)/bootloader_defs.h
  221. else ifneq ("$(wildcard $(KEYBOARD_PATH_3)/boards/$(BOARD)/bootloader_defs.h)","")
  222. OPT_DEFS += -include $(KEYBOARD_PATH_3)/boards/$(BOARD)/bootloader_defs.h
  223. else ifneq ("$(wildcard $(KEYBOARD_PATH_2)/bootloader_defs.h)","")
  224. OPT_DEFS += -include $(KEYBOARD_PATH_2)/bootloader_defs.h
  225. else ifneq ("$(wildcard $(KEYBOARD_PATH_2)/boards/$(BOARD)/bootloader_defs.h)","")
  226. OPT_DEFS += -include $(KEYBOARD_PATH_2)/boards/$(BOARD)/bootloader_defs.h
  227. else ifneq ("$(wildcard $(KEYBOARD_PATH_1)/bootloader_defs.h)","")
  228. OPT_DEFS += -include $(KEYBOARD_PATH_1)/bootloader_defs.h
  229. else ifneq ("$(wildcard $(KEYBOARD_PATH_1)/boards/$(BOARD)/bootloader_defs.h)","")
  230. OPT_DEFS += -include $(KEYBOARD_PATH_1)/boards/$(BOARD)/bootloader_defs.h
  231. else ifneq ("$(wildcard $(TOP_DIR)/drivers/boards/$(BOARD)/bootloader_defs.h)","")
  232. OPT_DEFS += -include $(TOP_DIR)/drivers/boards/$(BOARD)/bootloader_defs.h
  233. endif
  234. endif
  235. # Find all of the config.h files and add them to our CONFIG_H define.
  236. CONFIG_H :=
  237. ifneq ("$(wildcard $(KEYBOARD_PATH_5)/config.h)","")
  238. CONFIG_H += $(KEYBOARD_PATH_5)/config.h
  239. endif
  240. ifneq ("$(wildcard $(KEYBOARD_PATH_4)/config.h)","")
  241. CONFIG_H += $(KEYBOARD_PATH_4)/config.h
  242. endif
  243. ifneq ("$(wildcard $(KEYBOARD_PATH_3)/config.h)","")
  244. CONFIG_H += $(KEYBOARD_PATH_3)/config.h
  245. endif
  246. ifneq ("$(wildcard $(KEYBOARD_PATH_2)/config.h)","")
  247. CONFIG_H += $(KEYBOARD_PATH_2)/config.h
  248. endif
  249. ifneq ("$(wildcard $(KEYBOARD_PATH_1)/config.h)","")
  250. CONFIG_H += $(KEYBOARD_PATH_1)/config.h
  251. endif
  252. POST_CONFIG_H :=
  253. ifneq ("$(wildcard $(KEYBOARD_PATH_1)/post_config.h)","")
  254. POST_CONFIG_H += $(KEYBOARD_PATH_1)/post_config.h
  255. endif
  256. ifneq ("$(wildcard $(KEYBOARD_PATH_2)/post_config.h)","")
  257. POST_CONFIG_H += $(KEYBOARD_PATH_2)/post_config.h
  258. endif
  259. ifneq ("$(wildcard $(KEYBOARD_PATH_3)/post_config.h)","")
  260. POST_CONFIG_H += $(KEYBOARD_PATH_3)/post_config.h
  261. endif
  262. ifneq ("$(wildcard $(KEYBOARD_PATH_4)/post_config.h)","")
  263. POST_CONFIG_H += $(KEYBOARD_PATH_4)/post_config.h
  264. endif
  265. ifneq ("$(wildcard $(KEYBOARD_PATH_5)/post_config.h)","")
  266. POST_CONFIG_H += $(KEYBOARD_PATH_5)/post_config.h
  267. endif
  268. # Save the defines and includes here, so we don't include any keymap specific ones
  269. PROJECT_DEFS := $(OPT_DEFS)
  270. PROJECT_INC := $(VPATH) $(EXTRAINCDIRS) $(KEYBOARD_PATHS)
  271. PROJECT_CONFIG := $(CONFIG_H)
  272. # Userspace setup and definitions
  273. ifeq ("$(USER_NAME)","")
  274. USER_NAME := $(KEYMAP)
  275. endif
  276. USER_PATH := users/$(USER_NAME)
  277. -include $(USER_PATH)/rules.mk
  278. ifneq ("$(wildcard $(USER_PATH)/config.h)","")
  279. CONFIG_H += $(USER_PATH)/config.h
  280. endif
  281. # Object files directory
  282. # To put object files in current directory, use a dot (.), do NOT make
  283. # this an empty or blank macro!
  284. KEYMAP_OUTPUT := $(BUILD_DIR)/obj_$(TARGET)
  285. ifneq ("$(wildcard $(KEYMAP_PATH)/config.h)","")
  286. CONFIG_H += $(KEYMAP_PATH)/config.h
  287. endif
  288. # # project specific files
  289. SRC += $(patsubst %.c,%.clib,$(LIB_SRC))
  290. SRC += $(KEYBOARD_SRC) \
  291. $(KEYMAP_C) \
  292. $(QUANTUM_SRC)
  293. # Optimize size but this may cause error "relocation truncated to fit"
  294. #EXTRALDFLAGS = -Wl,--relax
  295. # Search Path
  296. VPATH += $(KEYMAP_PATH)
  297. VPATH += $(KEYBOARD_PATHS)
  298. VPATH += $(COMMON_VPATH)
  299. VPATH += $(USER_PATH)
  300. include common_features.mk
  301. include $(TMK_PATH)/protocol.mk
  302. include $(TMK_PATH)/common.mk
  303. include bootloader.mk
  304. SRC += $(patsubst %.c,%.clib,$(QUANTUM_LIB_SRC))
  305. SRC += $(TMK_COMMON_SRC)
  306. OPT_DEFS += $(TMK_COMMON_DEFS)
  307. EXTRALDFLAGS += $(TMK_COMMON_LDFLAGS)
  308. ifeq ($(PLATFORM),AVR)
  309. ifeq ($(strip $(PROTOCOL)), VUSB)
  310. include $(TMK_PATH)/protocol/vusb.mk
  311. else
  312. include $(TMK_PATH)/protocol/lufa.mk
  313. endif
  314. include $(TMK_PATH)/avr.mk
  315. endif
  316. ifeq ($(PLATFORM),ARM_ATSAM)
  317. include $(TMK_PATH)/arm_atsam.mk
  318. include $(TMK_PATH)/protocol/arm_atsam.mk
  319. endif
  320. ifeq ($(PLATFORM),CHIBIOS)
  321. include $(TMK_PATH)/protocol/chibios.mk
  322. endif
  323. ifeq ($(strip $(VISUALIZER_ENABLE)), yes)
  324. VISUALIZER_DIR = $(QUANTUM_DIR)/visualizer
  325. VISUALIZER_PATH = $(QUANTUM_PATH)/visualizer
  326. include $(VISUALIZER_PATH)/visualizer.mk
  327. endif
  328. CONFIG_H += $(POST_CONFIG_H)
  329. ALL_CONFIGS := $(PROJECT_CONFIG) $(CONFIG_H)
  330. OUTPUTS := $(KEYMAP_OUTPUT) $(KEYBOARD_OUTPUT)
  331. $(KEYMAP_OUTPUT)_SRC := $(SRC)
  332. $(KEYMAP_OUTPUT)_DEFS := $(OPT_DEFS) $(GFXDEFS) \
  333. -DQMK_KEYBOARD=\"$(KEYBOARD)\" -DQMK_KEYBOARD_H=\"$(QMK_KEYBOARD_H)\" -DQMK_KEYBOARD_CONFIG_H=\"$(KEYBOARD_PATH_1)/config.h\" \
  334. -DQMK_KEYMAP=\"$(KEYMAP)\" -DQMK_KEYMAP_H=\"$(KEYMAP).h\" -DQMK_KEYMAP_CONFIG_H=\"$(KEYMAP_PATH)/config.h\" \
  335. -DQMK_SUBPROJECT -DQMK_SUBPROJECT_H -DQMK_SUBPROJECT_CONFIG_H
  336. $(KEYMAP_OUTPUT)_INC := $(VPATH) $(EXTRAINCDIRS)
  337. $(KEYMAP_OUTPUT)_CONFIG := $(CONFIG_H)
  338. $(KEYBOARD_OUTPUT)_SRC := $(CHIBISRC) $(GFXSRC)
  339. $(KEYBOARD_OUTPUT)_DEFS := $(PROJECT_DEFS) $(GFXDEFS)
  340. $(KEYBOARD_OUTPUT)_INC := $(PROJECT_INC) $(GFXINC)
  341. $(KEYBOARD_OUTPUT)_CONFIG := $(PROJECT_CONFIG)
  342. # Default target.
  343. all: build check-size
  344. build: elf cpfirmware
  345. check-size: build
  346. include show_options.mk
  347. include $(TMK_PATH)/rules.mk