185
175
OBJECTS := $(addsuffix .o, $(basename $(SOURCES)))
186
176
ARDUINOSRCDIR := $(ARDUINODIR)/hardware/arduino/cores/arduino
189
178
ARDUINOLIBTMP := _arduino.a.tmp
190
179
ARDUINOLIBOBJS := $(patsubst %, $(ARDUINOLIBTMP)/%.o, $(basename $(notdir \
191
180
$(wildcard $(addprefix $(ARDUINOSRCDIR)/, *.c *.cpp)))))
192
181
ARDUINOLIBOBJS += $(foreach lib, $(LIBRARIES), \
193
182
$(patsubst %, $(ARDUINOLIBTMP)/%.o, $(basename $(notdir \
197
185
# obtain board parameters from the arduino boards.txt file
198
186
BOARDS_FILE := $(ARDUINODIR)/hardware/arduino/boards.txt