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 revision
Previous revision
microcontrollers:winavr_makefile_template [2012/01/24 13:08] mithatmicrocontrollers:winavr_makefile_template [2012/01/24 21:28] (current) mithat
Line 2: Line 2:
  
 Taken from [[http://shop.chip45.com/AVR-Mikrocontroller-Software/PortableWinAVR|Portable WinAVR]] ("full 20090313"). 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:
 +
 +  * <del>I think the template also needs a clause for adding external libs (i.e., ''-l{USERLIBNAME}'' found in -L''{libPATH_TO_USER_LIBNAME}.a'').</del> Done.
 +  * <del>The directory that stores dependency files is hardcoded a the hidden ''.deps'' directory. Make this a macro and make in not hidden by default.</del> Done.
 +  * <del>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 '.'?</del> Added code to check for '.' before 'rm -rf'.
  
 <file make makefile_template> <file make makefile_template>
microcontrollers/winavr_makefile_template.1327410513.txt.gz · Last modified: 2012/01/24 13:08 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki