/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-10-22 16:34:19 UTC
  • Revision ID: tim@ed.am-20121022163419-568rvcv8vdvg3tgn
link against libm (as the IDE does)

Show diffs side-by-side

added added

removed removed

Lines of Context:
326
326
.INTERMEDIATE: $(TARGET).elf
327
327
 
328
328
$(TARGET).elf: $(ARDUINOLIB) $(OBJECTS)
329
 
        $(CC) $(LINKFLAGS) $(OBJECTS) $(ARDUINOLIB) -lm -o $@
 
329
        $(CC) $(LINKFLAGS) $(OBJECTS) $(ARDUINOLIB) -o $@ -lm
330
330
 
331
331
%.o: %.c
332
332
        mkdir -p .dep/$(dir $<)