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