]> git.donarmstrong.com Git - tmk_firmware.git/blobdiff - protocol/lufa.mk
Remove MCU dependent code from common/keyboard.c
[tmk_firmware.git] / protocol / lufa.mk
index 10a922f9028fc82a67e6a0819b66f758352d729c..ac70ac03916639b906f562c6cc9a5d8f3d263a26 100644 (file)
@@ -1,8 +1,12 @@
 LUFA_DIR = protocol/lufa
 
 # Path to the LUFA library
-LUFA_PATH ?= protocol/lufa/LUFA-120730
-#LUFA_PATH ?= protocol/lufa/LUFA-130901
+ifeq (, $(wildcard $(TOP_DIR)/$(LUFA_DIR)/LUFA-git/LUFA/Version.h))
+    LUFA_PATH ?= $(LUFA_DIR)/LUFA-120730
+else
+    LUFA_PATH ?= $(LUFA_DIR)/LUFA-git
+endif
+
 
 # Create the LUFA source path variables by including the LUFA makefile
 ifneq (, $(wildcard $(TOP_DIR)/$(LUFA_PATH)/LUFA/Build/lufa_sources.mk))