/elec/propeller-clock

To get this branch, use:
bzr branch http://bzr.ed.am/elec/propeller-clock

« back to all changes in this revision

Viewing changes to arduino.mk

  • Committer: edam
  • Date: 2012-02-25 01:29:52 UTC
  • Revision ID: tim@ed.am-20120225012952-32q8gg07aovk3qxh
updated arduino.mk

Show diffs side-by-side

added added

removed removed

Lines of Context:
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