/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-16 00:08:37 UTC
  • Revision ID: edam@waxworlds.org-20120216000837-ozbyl61w2n2thwa0
update arduino.mk

Show diffs side-by-side

added added

removed removed

Lines of Context:
230
230
AVRDUDEFLAGS += -c $(BOARD_UPLOAD_PROTOCOL) -b $(BOARD_UPLOAD_SPEED)
231
231
LINKFLAGS := -Os -Wl,--gc-sections -mmcu=$(BOARD_BUILD_MCU)
232
232
 
 
233
# figure out which arg to use with stty
 
234
STTYFARG := $(shell stty --help > /dev/null 2>&1 && echo -F || echo -f)
 
235
 
233
236
# default rule
234
237
.DEFAULT_GOAL := all
235
238
 
247
250
        @test -n "$(SERIALDEV)" || { \
248
251
                echo "error: SERIALDEV could not be determined automatically." >&2; \
249
252
                exit 1; }
250
 
        stty -F $(SERIALDEV) hupcl
 
253
        stty $(STTYFARG) $(SERIALDEV) hupcl
251
254
        $(AVRDUDE) $(AVRDUDEFLAGS) -U flash:w:$(TARGET).hex:i
252
255
 
253
256
clean: