@ -247,16 +247,6 @@ F_CPU ?= 16000000
# Libraries, the "hardware variant" are for boards
# that derives from that, and their source are present in
# the main Marlin source directory
i f e q ( $( HARDWARE_VARIANT ) , $( filter $ ( HARDWARE_VARIANT ) ,arduino Sanguino ) )
HARDWARE_DIR = $( ARDUINO_INSTALL_DIR) /hardware
e l s e
i f e q ( $( shell [ $ ( ARDUINO_VERSION ) -ge 100 ] && echo true ) , t r u e )
HARDWARE_DIR = ../ArduinoAddons/Arduino_1.x.x
e l s e
HARDWARE_DIR = ../ArduinoAddons/Arduino_0.xx
e n d i f
e n d i f
HARDWARE_SRC = $( HARDWARE_DIR) /arduino/avr/cores/arduino
TARGET = $( notdir $( CURDIR) )
@ -266,12 +256,10 @@ TARGET = $(notdir $(CURDIR))
VPATH = .
VPATH += $( BUILD_DIR)
VPATH += $( HARDWARE_SRC)
i f e q ( $( HARDWARE_VARIANT ) , $( filter $ ( HARDWARE_VARIANT ) ,arduino Teensy Sanguino ) )
VPATH += $( HARDWARE_DIR) /marlin/avr/libraries/LiquidCrystal/src
VPATH += $( HARDWARE_DIR) /marlin/avr/libraries/SPI
VPATH += $( HARDWARE_DIR) /arduino/avr/libraries/SPI
VPATH += $( HARDWARE_DIR) /arduino/avr/libraries/SPI/src
VPATH += $( ARDUINO_INSTALL_DIR) /hardware/arduino/avr/cores/arduino
VPATH += $( ARDUINO_INSTALL_DIR) /hardware/arduino/avr/libraries/SPI
VPATH += $( ARDUINO_INSTALL_DIR) /hardware/arduino/avr/libraries/SPI/src
VPATH += $( ARDUINO_INSTALL_DIR) /libraries/LiquidCrystal/src
i f e q ( $( LIQUID_TWI 2) , 1 )
VPATH += $( ARDUINO_INSTALL_DIR) /libraries/Wire
@ -282,22 +270,9 @@ ifeq ($(WIRE), 1)
VPATH += $( ARDUINO_INSTALL_DIR) /libraries/Wire
VPATH += $( ARDUINO_INSTALL_DIR) /libraries/Wire/utility
e n d i f
e l s e
VPATH += $( HARDWARE_DIR) /libraries/LiquidCrystal
VPATH += $( HARDWARE_DIR) /libraries/SPI
i f e q ( $( LIQUID_TWI 2) , 1 )
VPATH += $( HARDWARE_DIR) /libraries/Wire
VPATH += $( HARDWARE_DIR) /libraries/Wire/utility
VPATH += $( HARDWARE_DIR) /libraries/LiquidTWI2
e n d i f
i f e q ( $( WIRE ) , 1 )
VPATH += $( HARDWARE_DIR) /libraries/Wire
VPATH += $( HARDWARE_DIR) /libraries/Wire/utility
e n d i f
e n d i f
i f e q ( $( HARDWARE_VARIANT ) , a r d u i n o )
HARDWARE_SUB_VARIANT ?= mega
VPATH += $( ARDUINO_INSTALL_DIR) /hardware/arduino/variants/$( HARDWARE_SUB_VARIANT)
VPATH += $( ARDUINO_INSTALL_DIR) /hardware/arduino/avr/variants/$( HARDWARE_SUB_VARIANT)
e l s e
i f e q ( $( HARDWARE_VARIANT ) , S a n g u i n o )