summaryrefslogtreecommitdiff
path: root/protocol/lufa.mk
diff options
context:
space:
mode:
Diffstat (limited to 'protocol/lufa.mk')
-rw-r--r--protocol/lufa.mk17
1 files changed, 9 insertions, 8 deletions
diff --git a/protocol/lufa.mk b/protocol/lufa.mk
index 561c505c22..088fd377e0 100644
--- a/protocol/lufa.mk
+++ b/protocol/lufa.mk
@@ -1,11 +1,11 @@
LUFA_DIR = protocol/lufa
# Path to the LUFA library
-ifeq (, $(wildcard $(TOP_DIR)/$(LUFA_DIR)/LUFA-git/LUFA/Version.h))
- LUFA_PATH ?= $(LUFA_DIR)/LUFA-120730
-else
+#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
+#endif
# Create the LUFA source path variables by including the LUFA makefile
@@ -19,14 +19,15 @@ endif
LUFA_SRC = $(LUFA_DIR)/lufa.c \
$(LUFA_DIR)/descriptor.c \
- $(LUFA_SRC_USB) \
- $(LUFA_DIR)/midi/midi.c \
+ $(LUFA_SRC_USB)
+
+ifdef MIDI_ENABLE
+ LUFA_SRC += $(LUFA_DIR)/midi/midi.c \
$(LUFA_DIR)/midi/midi_device.c \
$(LUFA_DIR)/midi/bytequeue/bytequeue.c \
$(LUFA_DIR)/midi/bytequeue/interrupt_setting.c \
- $(LUFA_SRC_USB) \
$(LUFA_SRC_USBCLASS)
-
+endif
SRC += $(LUFA_SRC)