Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 1.19 KB

README.md

File metadata and controls

38 lines (32 loc) · 1.19 KB

Common Variables and Targets

Variables are make macros which can be (optionally) set in the user Makefile. They are in uppercase, words separated by underscore. A colon separates the name of the variable from its default value. Parentheses indicate valid alternative values.

  • BOARD: mandatory (see boards.txt)
  • SKETCH: defaults to first .ino file found
  • SKETCHBOOK: ~/Arduino
  • TERMINAL: minicom
  • TERMINAL_FLAGS: -D $(SERIAL_PORT) -b $(TERMINAL_SPEED)
  • TERMINAL_EXTRA_FLAGS
  • LOCAL_LIBRARY_PATH
  • LIBRARIES
  • COMPILER_WARNINGS: default
  • SERIAL_PORT: /dev/ttyUSB0
  • PREBUILD: per-sketch prebuild target
  • CLEAN: per-sketch clean target

Targets are in lowercase.

  • all: default target, compiles and links sketch
  • upload: uploads compiled sketch using bootloader
  • program: programs sketch using external programmer
  • erase: erases and programs sketch using external programmer
  • bootloader: burns the bootloader using external programmer
  • build-summary
  • term: starts terminal on SERIAL_PORT
  • version: prints core version
  • clean
  • path
  • build-variables

Platform-specific