diff --git a/examples/ATtinyBlink/Makefile b/examples/ATtinyBlink/Makefile index f73d7a0..76327a8 100644 --- a/examples/ATtinyBlink/Makefile +++ b/examples/ATtinyBlink/Makefile @@ -54,6 +54,6 @@ BOARD_TAG = attiny85 # ------------------------------------------------------------------ # # Path to the Arduino Makefile -include /usr/share/arduino/Arduino.mk +include $(ARDMK_DIR)/Arduino.mk # !!! Important. You have to use 'make ispload' when using an ISP. diff --git a/examples/Blink3rdPartyLib/Makefile b/examples/Blink3rdPartyLib/Makefile index f473dbd..4658f50 100644 --- a/examples/Blink3rdPartyLib/Makefile +++ b/examples/Blink3rdPartyLib/Makefile @@ -15,7 +15,7 @@ TOGGLE_ARCHIVE = build-$(BOARD_TAG)/libtoggle.a CXXFLAGS += -IToggle OTHER_OBJS = Toggle/$(TOGGLE_ARCHIVE) -include ../../Arduino.mk +include $(ARDMK_DIR)/Arduino.mk Toggle/$(TOGGLE_ARCHIVE): $(MAKE) -C Toggle $(TOGGLE_ARCHIVE) diff --git a/examples/Blink3rdPartyLib/Toggle/Makefile b/examples/Blink3rdPartyLib/Toggle/Makefile index a6234f6..d733171 100644 --- a/examples/Blink3rdPartyLib/Toggle/Makefile +++ b/examples/Blink3rdPartyLib/Toggle/Makefile @@ -8,7 +8,7 @@ # and archived into the build-$(BOARD_TAG)/libtoggle.a target. include ../board.mk -include ../../../Arduino.mk +include $(ARDMK_DIR)/Arduino.mk build-$(BOARD_TAG)/libtoggle.a: $(LOCAL_OBJS) $(AR) rcs $@ $(LOCAL_OBJS) diff --git a/examples/MakefileExample/Makefile-3rd_party-board.mk b/examples/MakefileExample/Makefile-3rd_party-board.mk index 96e972c..35c0ca6 100644 --- a/examples/MakefileExample/Makefile-3rd_party-board.mk +++ b/examples/MakefileExample/Makefile-3rd_party-board.mk @@ -52,5 +52,5 @@ ARDUINO_SKETCHBOOK = $(HOME)/sketchbook ALTERNATE_CORE = sparkfun BOARD_TAG = promicro BOARD_SUB = 8MHzatmega32U4 -include /usr/share/arduino/Arduino.mk +include $(ARDMK_DIR)/Arduino.mk