|
@@ -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))
|