X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=protocol%2Flufa.mk;h=443b85344bde1d96b30f1a0c9fda8ef19ad2d599;hb=48e6d0848cdeac26ffab101ea2ef48e5ac60acd3;hp=ad6cab6d3bd85fa2455406e921c2f9e470c7e67a;hpb=fca518f90dfc7f72132ff7950b000cfbd5709807;p=max%2Ftmk_keyboard.git diff --git a/protocol/lufa.mk b/protocol/lufa.mk index ad6cab6d..443b8534 100644 --- a/protocol/lufa.mk +++ b/protocol/lufa.mk @@ -1,18 +1,26 @@ LUFA_DIR = protocol/lufa # Path to the LUFA library -LUFA_PATH = $(TOP_DIR)/protocol/lufa/LUFA-120219 +LUFA_PATH ?= protocol/lufa/LUFA-120730 -# Create the LUFA source path variables by including the LUFA root makefile -include $(LUFA_PATH)/LUFA/makefile +# Create the LUFA source path variables by including the LUFA makefile +ifneq (, $(wildcard $(TOP_DIR)/$(LUFA_PATH)/LUFA/Build/lufa_sources.mk)) + # New build system from 20120730 + LUFA_ROOT_PATH = $(LUFA_PATH)/LUFA + include $(TOP_DIR)/$(LUFA_PATH)/LUFA/Build/lufa_sources.mk +else + include $(TOP_DIR)/$(LUFA_PATH)/LUFA/makefile +endif LUFA_SRC = $(LUFA_DIR)/lufa.c \ $(LUFA_DIR)/descriptor.c \ $(LUFA_SRC_USB) -SRC += $(subst $(LUFA_PATH)/,,$(LUFA_SRC)) + +SRC += $(LUFA_SRC) # Search Path -VPATH += $(LUFA_PATH) +VPATH += $(TOP_DIR)/$(LUFA_DIR) +VPATH += $(TOP_DIR)/$(LUFA_PATH) # Option modules #ifdef $(or MOUSEKEY_ENABLE, PS2_MOUSE_ENABLE)