/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-11-23 17:33:50 UTC
  • Revision ID: tim@ed.am-20121123173350-hqebeh1qwy0li2ic
removed packaging Makefile

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#
3
3
#                         edam's Arduino makefile
4
4
#_______________________________________________________________________________
5
 
#                                                                 version 0.5dev
 
5
#                                                                    version 0.4
6
6
#
7
7
# Copyright (C) 2011, 2012 Tim Marston <tim@ed.am>.
8
8
#
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 | \