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