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

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
microcontrollers:winavr_makefile_template [2012/01/24 19:51] mithatmicrocontrollers:winavr_makefile_template [2012/01/24 19:57] 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:+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.   * 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.
   * The dependency checking ''include'' is also suspect.   * The dependency checking ''include'' is also suspect.
  
-I think the template also needs a clause for adding external libs (i.e., ''-l{USERLIBNAME}'' found in -L''{libPATH_TO_USER_LIBNAME}.a'').+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