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