/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-30 21:37:46 UTC
  • Revision ID: edam@waxworlds.org-20111230213746-l3bd5co3j5fmg1ne
minor optimisations

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 $(addprefix $(ARDUINOSRCDIR)/, *.c *.cpp))
 
156
ARDUINOSOURCES := $(wildcard $(ARDUINOSRCDIR)/*.c $(ARDUINOSRCDIR)/*.cpp)
157
157
ARDUINOOBJECTS := $(addsuffix .o, $(addprefix $(ARDUINOLIBTMP)/, $(basename \
158
 
        $(subst $(ARDUINOSRCDIR)/,,$(ARDUINOSOURCES)))))
 
158
        $(notdir $(ARDUINOSOURCES)))))
159
159
 
160
160
# obtain board parameters from the arduino boards.txt file
161
161
BOARDS_FILE := $(ARDUINODIR)/hardware/arduino/boards.txt