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