Hello everyone! I have write little instruction how to write for arduino without arduino ide Original Makefile was here http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1265576847/1 but it was improved 1) corrected building path, to store all obj files in one subdirectory. 2) compile direct from pde file, instead generate cpp wrapper, so compiler say correct line number for error in source code (useful in Geany). 3) added little program to initialise arduino bootloader 4) added option to generate new project, simple copy make file into new directory, and run "make newproject"
more info and example project available there https://linvinus.ru/dokuwiki/doku.php?id=robot:arduino_makefile Example also show how to use C headers in arduino project.
Hope it will be useful for someone. Please correct me if some phrases not understandably. :blush:
Sorry i cannot attach Makefile here, due to forum limit (9500 chars)