/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-28 17:03:09 UTC
  • Revision ID: edam@waxworlds.org-20120228170309-gaaj6k3prrgvwvp8
remove TextRenderer singleton and save space

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
#
134
136
# <file>       Builds the specified file, either an object file or the target,
135
137
#              from those that that would be built for the project.
136
138
#_______________________________________________________________________________
191
193
AR := $(call findsoftware,avr-ar)
192
194
OBJCOPY := $(call findsoftware,avr-objcopy)
193
195
AVRDUDE := $(call findsoftware,avrdude)
 
196
AVRSIZE := $(call findsoftware,avr-size)
194
197
 
195
198
# files
196
199
TARGET := $(if $(TARGET),$(TARGET),a.out)
267
270
#_______________________________________________________________________________
268
271
#                                                                          RULES
269
272
 
270
 
.PHONY: all target upload clean boards monitor
 
273
.PHONY: all target upload clean boards monitor size
271
274
 
272
275
all: target upload
273
276
 
306
309
                echo; }
307
310
        screen $(SERIALDEV)
308
311
 
 
312
size: $(TARGET).elf
 
313
        echo && $(AVRSIZE) --format=avr --mcu=$(BOARD_BUILD_MCU) $(TARGET).elf
 
314
 
309
315
# building the target
310
316
 
311
317
$(TARGET).hex: $(TARGET).elf