/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: 2012-02-13 16:22:10 UTC
  • Revision ID: edam@waxworlds.org-20120213162210-nwn1e7blknr1v3zq
added fixed arduino software version

Show diffs side-by-side

added added

removed removed

191
191
BOARD_UPLOAD_PROTOCOL := \
192
192
        $(shell sed -ne "s/$(BOARD).upload.protocol=\(.*\)/\1/p" $(BOARDS_FILE))
193
193
 
 
194
# arduino version (currently fixed)
 
195
ARDUINOVER := 100
 
196
 
194
197
# software (prioritise binaries that came with arduino software)
195
198
FIND_SOFTWARE = $(firstword $(wildcard \
196
199
        $(ARDUINODIR)/hardware/tools/$(1) \
205
208
 
206
209
# flags
207
210
CPPFLAGS = -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections
208
 
CPPFLAGS += -mmcu=$(BOARD_BUILD_MCU) -DF_CPU=$(BOARD_BUILD_FCPU)
 
211
CPPFLAGS += -mmcu=$(BOARD_BUILD_MCU)
 
212
CPPFLAGS += -DF_CPU=$(BOARD_BUILD_FCPU) -DARDUINO=$(ARDUINOVER)
209
213
CPPFLAGS += -I. -Iutil -Iutility -I$(ARDUINOSRCDIR)
210
214
CPPFLAGS += -I$(ARDUINODIR)/hardware/arduino/variants/$(BOARD_BUILD_VARIANT)/
211
215
CPPFLAGS += $(addprefix -I$(ARDUINODIR)/libraries/, $(LIBRARIES))