/make/arduino-mk

To get this branch, use:
bzr branch http://bzr.ed.am/make/arduino-mk

« back to all changes in this revision

Viewing changes to arduino.mk

  • Committer: edam
  • Date: 2011-12-29 21:59:10 UTC
  • Revision ID: edam@waxworlds.org-20111229215910-l0wjvdoap0lptgsa
fixed build (missing library), tested upload, and made the .elf file an intermediate file (the .hex file is now the target)

Show diffs side-by-side

added added

removed removed

153
153
ARDUINOSRCDIR := $(ARDUINODIR)/hardware/arduino/cores/arduino
154
154
ARDUINOLIB := _arduino.a
155
155
ARDUINOLIBTMP := _arduino.a.tmp
156
 
ARDUINOSOURCES := $(wildcard $(ARDUINOSRCDIR)/*.c $(ARDUINOSRCDIR)/*.cpp)
 
156
ARDUINOSOURCES := $(wildcard $(addprefix $(ARDUINOSRCDIR)/, *.c *.cpp))
157
157
ARDUINOOBJECTS := $(addsuffix .o, $(addprefix $(ARDUINOLIBTMP)/, $(basename \
158
 
        $(notdir $(ARDUINOSOURCES)))))
 
158
        $(subst $(ARDUINOSRCDIR)/,,$(ARDUINOSOURCES)))))
159
159
 
160
160
# obtain board parameters from the arduino boards.txt file
161
161
BOARDS_FILE := $(ARDUINODIR)/hardware/arduino/boards.txt