User Tools

Site Tools


microcontrollers:winavr_makefile_template

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
microcontrollers:winavr_makefile_template [2012/01/24 13:02] – created mithatmicrocontrollers:winavr_makefile_template [2012/01/24 21:27] mithat
Line 1: Line 1:
 ====== WinAVR Makefile Tempalte ====== ====== WinAVR Makefile Tempalte ======
 +
 +Taken from [[http://shop.chip45.com/AVR-Mikrocontroller-Software/PortableWinAVR|Portable WinAVR]] ("full 20090313").
 +
 +It looks Linux-friendly except:
 +
 +  * The part that launches debugging (i.e., the ''debug'' target--which needs work anyway as it launches ''simulavr'' unconditionally) and has no support for ''ddd''. I'd also like to compare the gbdinit file to those made my others.
 +  * <del>The "Create object files directory" near the end is suspect; better to ''@mkdir -p $(OBJDIR)'' in the complies?</del> Seems to work.
 +  * <del>The dependency checking ''include'' is also suspect.</del> Seems to work.
 +
 +Contemplated improvements:
 +
 +  * I think the template also needs a clause for adding external libs (i.e., ''-l{USERLIBNAME}'' found in -L''{libPATH_TO_USER_LIBNAME}.a'').
 +  * The directory that stores dependency files is hardcoded a the hidden ''.deps'' directory. Make this a macro and make in not hidden by default.
 +  * OBJDIR isn't removed by a ''clean''. In the makefile's present form (i.e., OBJDIR defaults to '.'), this is the right thing to do; you don't want to delete '.'. Is there a way to //force// OBJDIR to be not be '.'?
  
 <file make makefile_template> <file make makefile_template>
microcontrollers/winavr_makefile_template.txt · Last modified: 2012/01/24 21:28 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki