/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-01-04 19:15:03 UTC
  • Revision ID: edam@waxworlds.org-20120104191503-1ergc301tahmx6j2
broke out ARDUINODIR, so it is not configured in the makefile

Show diffs side-by-side

added added

removed removed

122
122
#              target, from those that that would be built for the
123
123
#              project.
124
124
#
125
 
# boards       This is not a real goal.  It just displays a list of
126
 
#              available board names, so that you can set the BOARD
127
 
#              environment variable appropriately.
128
 
#
129
 
# monitor      This is not a real goal.  It starts screen on the serial
130
 
#              device.  It is ment to be an equivelant to the arduino
131
 
#              serial monitor.
132
125
#_______________________________________________________________________________
133
126
#
134
127
 
215
208
CPPFLAGS += -mmcu=$(BOARD_BUILD_MCU) -DF_CPU=$(BOARD_BUILD_FCPU)
216
209
CPPFLAGS += -I. -Iutil -Iutility -I$(ARDUINOSRCDIR)
217
210
CPPFLAGS += -I$(ARDUINODIR)/hardware/arduino/variants/$(BOARD_BUILD_VARIANT)/
218
 
CPPFLAGS += $(addprefix -I$(ARDUINODIR)/libraries/, $(LIBRARIES))
219
 
CPPFLAGS += $(patsubst %, -I$(ARDUINODIR)/libraries/%/utility, $(LIBRARIES))
 
211
CPPFLAGS += $(addprefix -I$(ARDUINODIR)/libraries/,$(LIBRARIES))
220
212
AVRDUDEFLAGS = -C $(ARDUINODIR)/hardware/tools/avrdude.conf -DV
221
213
AVRDUDEFLAGS += -p $(BOARD_BUILD_MCU) -P $(SERIALDEV)
222
214
AVRDUDEFLAGS += -c $(BOARD_UPLOAD_PROTOCOL) -b $(BOARD_UPLOAD_SPEED)
228
220
#_______________________________________________________________________________
229
221
#                                                                          RULES
230
222
 
231
 
.PHONY: all target upload clean boards monitor
 
223
.PHONY: all target upload clean boards
232
224
 
233
225
all: target upload
234
226
 
248
240
        @sed -ne '/^#/d;s/^\(.*\).name=\(.*\)/\1            \2/;T' \
249
241
                -e 's/\(.\{12\}\) *\(.*\)/\1 \2/;p' $(BOARDS_FILE)
250
242
 
251
 
monitor:
252
 
        screen $(SERIALDEV)
253
 
 
254
243
# building the target
255
244
 
256
245
$(TARGET).hex: $(TARGET).elf