/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: 2011-12-31 22:16:17 UTC
  • Revision ID: edam@waxworlds.org-20111231221617-rn342spah1hyyqbw
fixed .PHONY 'boards' goal

Show diffs side-by-side

added added

removed removed

27
27
#_______________________________________________________________________________
28
28
#
29
29
#
30
 
# This is a general purpose makefile for use with Arduino hardware and
31
 
# software.  It works with the arduino-1.0 release and requires that
32
 
# software to be downloaded separately (see http://arduino.cc/).  To
33
 
# download the latest version of this makefile, visit the following
34
 
# website, where you can also find more information and documentation
35
 
# on it's use.  The following text can only really be considered a
36
 
# reference to it's use.
37
 
#
38
 
#   http://ed.am/dev/make/arduino-makefile
 
30
# This is a general purpose makefile for use with Arduino (see
 
31
# http://arduino.cc/) hardware and software.  It works with the
 
32
# arduino-1.0 release and requires that to be downloaded separately.
 
33
# It can be downloaded from http://ed.am/dev/make/arduino-makefile
 
34
# where you can also find more information and documentation on it's
 
35
# use.  The following text can only really be considered a reference
 
36
# to it's use.
39
37
#
40
38
# To install, it is suggested that you keep arduino.mk somewhere and
41
39
# either symlink to it or include it in your make files.  I keep mine
48
46
# "Makefile" and run make as described below (remembering to specify a
49
47
# BOARD).  You would create the symlink like like so:
50
48
#
51
 
#   $ ln -s ~/src/arduino.mk Makefile
 
49
#       $ ln -s ~/src/arduino.mk Makefile
52
50
#
53
51
# The presence of a .ino or .pde file causes the arduino.mk to
54
52
# atuomatically determine va;ues for SOURCES, TARGET and LIBRARIES.
64
62
# default main() that calls init() and loop().  Here is an example
65
63
# Makefile:
66
64
#
67
 
#   SOURCES := main.cc foo.cc
68
 
#   LIBRARIES := EEPROM
69
 
#   include ~/src/arduino.mk
 
65
#       SOURCES := main.cc foo.cc
 
66
#       LIBRARIES := EEPROM
 
67
#       include ~/src/arduino.mk
70
68
#
71
69
# A complete list of all the settings you can use in your Makefile
72
70
# follows shortly.  It should be noted, however, that some variables
76
74
#
77
75
# When running make, you might want to specify the board type:
78
76
#
79
 
#   $ BOARD=pro5v make
 
77
#       $ BOARD=pro5v make
80
78
#
81
79
# Or in the environment:
82
80
#
83
 
#   $ export BOARD=pro5v
84
 
#   $ make
 
81
#       $ export BOARD=pro5v
 
82
#       $ make
85
83
#
86
84
# For a list of available board types, run `make boards`.
87
85