169
169
OBJECTS := $(addsuffix .o, $(basename $(SOURCES)))
170
170
ARDUINOSRCDIR := $(ARDUINODIR)/hardware/arduino/cores/arduino
173
172
ARDUINOLIBTMP := $(ARDUINOLIB).tmp
174
173
ARDUINOLIBOBJS := $(patsubst %, $(ARDUINOLIBTMP)/%.o, $(basename $(notdir \
175
174
$(wildcard $(addprefix $(ARDUINOSRCDIR)/, *.c *.cpp)))))
176
175
ARDUINOLIBOBJS += $(foreach lib, $(LIBRARIES), \
177
176
$(patsubst %, $(ARDUINOLIBTMP)/%.o, $(basename $(notdir \
181
180
# obtain board parameters from the arduino boards.txt file
182
181
BOARDS_FILE := $(ARDUINODIR)/hardware/arduino/boards.txt