/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 15:47:26 UTC
  • Revision ID: edam@waxworlds.org-20120213154726-rqwx4a0nl2mj9mut
downplay importance of .pde files

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
 
 
197
194
# software (prioritise binaries that came with arduino software)
198
195
FIND_SOFTWARE = $(firstword $(wildcard \
199
196
        $(ARDUINODIR)/hardware/tools/$(1) \
208
205
 
209
206
# flags
210
207
CPPFLAGS = -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections
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)
 
208
CPPFLAGS += -mmcu=$(BOARD_BUILD_MCU) -DF_CPU=$(BOARD_BUILD_FCPU)
214
209
CPPFLAGS += -I. -Iutil -Iutility -I$(ARDUINOSRCDIR)
215
210
CPPFLAGS += -I$(ARDUINODIR)/hardware/arduino/variants/$(BOARD_BUILD_VARIANT)/
216
211
CPPFLAGS += $(addprefix -I$(ARDUINODIR)/libraries/, $(LIBRARIES))