summaryrefslogtreecommitdiff
path: root/protocol/pjrc.mk
diff options
context:
space:
mode:
Diffstat (limited to 'protocol/pjrc.mk')
-rw-r--r--protocol/pjrc.mk24
1 files changed, 12 insertions, 12 deletions
diff --git a/protocol/pjrc.mk b/protocol/pjrc.mk
index 1ee45e9ec9..cccdf62042 100644
--- a/protocol/pjrc.mk
+++ b/protocol/pjrc.mk
@@ -1,21 +1,21 @@
-OPT_DEFS += -DHOST_PJRC
-
-SRC += pjrc.c \
- usb_keyboard.c \
- usb_debug.c \
- usb.c \
- bootloader_teensy.c
+PJRC_DIR = protocol/pjrc
+OPT_DEFS += -DHOST_PJRC
-# Search Path
-VPATH += $(TOP_DIR)/protocol/pjrc
-
+SRC += $(PJRC_DIR)/main.c \
+ $(PJRC_DIR)/pjrc.c \
+ $(PJRC_DIR)/usb_keyboard.c \
+ $(PJRC_DIR)/usb_debug.c \
+ $(PJRC_DIR)/usb.c
# Option modules
ifdef $(or MOUSEKEY_ENABLE, PS2_MOUSE_ENABLE)
- SRC += usb_mouse.c
+ SRC += $(PJRC_DIR)/usb_mouse.c
endif
ifdef EXTRAKEY_ENABLE
- SRC += usb_extra.c
+ SRC += $(PJRC_DIR)/usb_extra.c
endif
+
+# Search Path
+VPATH += $(TOP_DIR)/$(PJRC_DIR)