/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-21 15:43:30 UTC
  • Revision ID: tim@ed.am-20120221154330-se8hali569whg99p
typos/spelling

Show diffs side-by-side

added added

removed removed

2
2
#
3
3
#                         edam's Arduino makefile
4
4
#_______________________________________________________________________________
5
 
#                                                                 version 0.3dev
 
5
#                                                                    version 0.3
6
6
#
7
7
# Copyright (C) 2011, 1012 Tim Marston <tim@ed.am>.
8
8
#
131
131
# monitor      Start `screen` on the serial device.  This is meant to be an
132
132
#              equivalent to the Arduino serial monitor.
133
133
#
134
 
# size         Displays size information about the bulit target.
135
 
#
136
134
# <file>       Builds the specified file, either an object file or the target,
137
135
#              from those that that would be built for the project.
138
136
#_______________________________________________________________________________
193
191
AR := $(call findsoftware,avr-ar)
194
192
OBJCOPY := $(call findsoftware,avr-objcopy)
195
193
AVRDUDE := $(call findsoftware,avrdude)
196
 
AVRSIZE := $(call findsoftware,avr-size)
197
194
 
198
195
# files
199
196
TARGET := $(if $(TARGET),$(TARGET),a.out)
270
267
#_______________________________________________________________________________
271
268
#                                                                          RULES
272
269
 
273
 
.PHONY: all target upload clean boards monitor size
 
270
.PHONY: all target upload clean boards monitor
274
271
 
275
272
all: target upload
276
273
 
309
306
                echo; }
310
307
        screen $(SERIALDEV)
311
308
 
312
 
size: $(TARGET).elf
313
 
        echo && $(AVRSIZE) --format=avr --mcu=$(BOARD_BUILD_MCU) $(TARGET).elf
314
 
 
315
309
# building the target
316
310
 
317
311
$(TARGET).hex: $(TARGET).elf