/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-14 12:43:59 UTC
  • Revision ID: edam@waxworlds.org-20120214124359-2hvso578fmquwbco
fixed dates in NEWS

Show diffs side-by-side

added added

removed removed

Lines of Context:
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 += -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
 
212
CPPFLAGS += -mmcu=$(BOARD_BUILD_MCU)
 
213
CPPFLAGS += -DF_CPU=$(BOARD_BUILD_FCPU) -DARDUINO=$(ARDUINOVER)
209
214
CPPFLAGS += -I. -Iutil -Iutility -I$(ARDUINOSRCDIR)
210
215
CPPFLAGS += -I$(ARDUINODIR)/hardware/arduino/variants/$(BOARD_BUILD_VARIANT)/
211
216
CPPFLAGS += $(addprefix -I$(ARDUINODIR)/libraries/, $(LIBRARIES))