From 9c34c4f05b65c8783967b5b4840ea2a6f6cc85f7 Mon Sep 17 00:00:00 2001 From: Yuri Valentini Date: Tue, 8 Jan 2013 12:54:31 +0100 Subject: [PATCH] fixes for ramps compilation using installed arduino ide --- Marlin/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Marlin/Makefile b/Marlin/Makefile index a2ed2dc59..e09d15f06 100644 --- a/Marlin/Makefile +++ b/Marlin/Makefile @@ -190,8 +190,13 @@ TARGET = $(notdir $(CURDIR)) VPATH = . VPATH += $(BUILD_DIR) VPATH += $(HARDWARE_SRC) +ifeq ($(HARDWARE_VARIANT), arduino) +VPATH += $(ARDUINO_INSTALL_DIR)/libraries/LiquidCrystal +VPATH += $(ARDUINO_INSTALL_DIR)/libraries/SPI +else VPATH += $(HARDWARE_DIR)/libraries/LiquidCrystal VPATH += $(HARDWARE_DIR)/libraries/SPI +endif ifeq ($(HARDWARE_VARIANT), arduino) HARDWARE_SUB_VARIANT ?= mega VPATH += $(ARDUINO_INSTALL_DIR)/hardware/arduino/variants/$(HARDWARE_SUB_VARIANT)