Browse Source

Update on makefile for moved Arduino addons.

Daid 12 years ago
parent
commit
724f5aa36b
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      Marlin/Makefile

+ 5
- 1
Marlin/Makefile View File

@@ -173,7 +173,11 @@ F_CPU ?= 16000000
173 173
 ifeq ($(HARDWARE_VARIANT), arduino)
174 174
 HARDWARE_SRC = $(ARDUINO_INSTALL_DIR)/hardware/arduino/cores/arduino
175 175
 else
176
-HARDWARE_SRC = $(HARDWARE_VARIANT)/cores/arduino
176
+ifeq ($(shell [ $(ARDUINO_VERSION) -ge 100 ] && echo true), true)
177
+HARDWARE_SRC = ../ArduinoAddons/Arduino_1.x.x/$(HARDWARE_VARIANT)/cores/arduino
178
+else
179
+HARDWARE_SRC = ../ArduinoAddons/Arduino_0.xx/$(HARDWARE_VARIANT)/cores/arduino
180
+endif
177 181
 endif
178 182
 
179 183
 TARGET = $(notdir $(CURDIR))

Loading…
Cancel
Save