Makefile for Arduino sketches. It defines the workflows for compiling code, flashing it to Arduino and even communicating through Serial. http://hardwarefun.com/tutorials/compiling-arduino-sketches-using-makefile
Find a file
Christopher Peplin 0416d2faf0 Add a flag for stopping compilation of built-in main() function.
If you need to define your own main() function, e.g. if you are using Xcode and
want the code sense to work, you can flip this flag on to stop the Makefile from
compiling the Arduino's built-in main.cpp file.
2012-04-02 11:52:27 -04:00
arduino-mk Add a flag for stopping compilation of built-in main() function. 2012-04-02 11:52:27 -04:00
examples Remove more object files 2012-02-28 11:48:44 +00:00
releases Moved released tarballs to releases subdir 2012-03-09 22:24:35 +00:00
README.md Add a flag for stopping compilation of built-in main() function. 2012-04-02 11:52:27 -04:00

A Makefile for Arduino Sketches

This is a very simple Makefile which knows how to build Arduino sketches.

Until March 2012, this was simply posted on my website where you can still find what documentation exists.

If you're using Debian or Ubuntu, you can find this in the arduino-core package.

Options

If you are defining your own main() function, you can stop the Ardunio's built-in main() from being compiled with your code by defining the NO_CORE_MAIN_FUNCTION variable:

NO_CORE_MAIN_FUNCTION = 1