/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: Tim Marston
  • Date: 2012-11-25 22:37:24 UTC
  • Revision ID: tim@ed.am-20121125223724-y1bfpnow6zq9gikc
make it possible to add to CPPFLAGS, AVRDUDEFLAGS and LINKFLAGS

Show diffs side-by-side

added added

removed removed

Lines of Context:
249
249
endif
250
250
 
251
251
# flags
252
 
CPPFLAGS := -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections
 
252
CPPFLAGS += -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections
253
253
CPPFLAGS += -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
254
254
CPPFLAGS += -mmcu=$(BOARD_BUILD_MCU)
255
255
CPPFLAGS += -DF_CPU=$(BOARD_BUILD_FCPU) -DARDUINO=$(ARDUINOCONST)
260
260
CPPFLAGS += $(patsubst %, -I $(ARDUINODIR)/libraries/%/utility, $(LIBRARIES))
261
261
CPPDEPFLAGS = -MMD -MP -MF .dep/$<.dep
262
262
CPPINOFLAGS := -x c++ -include $(ARDUINOCOREDIR)/Arduino.h
263
 
AVRDUDEFLAGS := $(addprefix -C , $(AVRDUDECONF)) -DV
 
263
AVRDUDEFLAGS += $(addprefix -C , $(AVRDUDECONF)) -DV
264
264
AVRDUDEFLAGS += -p $(BOARD_BUILD_MCU) -P $(SERIALDEV)
265
265
AVRDUDEFLAGS += -c $(BOARD_UPLOAD_PROTOCOL) -b $(BOARD_UPLOAD_SPEED)
266
 
LINKFLAGS := -Os -Wl,--gc-sections -mmcu=$(BOARD_BUILD_MCU)
 
266
LINKFLAGS += -Os -Wl,--gc-sections -mmcu=$(BOARD_BUILD_MCU)
267
267
 
268
268
# figure out which arg to use with stty (for OS X, GNU and busybox stty)
269
269
STTYFARG := $(shell stty --help 2>&1 | \