198
201
TARGET := $(if $(TARGET),$(TARGET),a.out)
199
202
OBJECTS := $(addsuffix .o, $(basename $(SOURCES)))
200
203
DEPFILES := $(patsubst %, .dep/%.dep, $(SOURCES))
201
209
ARDUINOCOREDIR := $(ARDUINODIR)/hardware/arduino/cores/arduino
202
212
ARDUINOLIB := .lib/arduino.a
207
214
$(patsubst %, .lib/%.o, $(wildcard $(addprefix $(dir)/, *.c *.cpp))))
209
218
ifeq "$(AVRDUDE)" "$(ARDUINODIR)/hardware/tools/avr/bin/avrdude"
210
219
AVRDUDECONF := $(ARDUINODIR)/hardware/tools/avr/etc/avrdude.conf