Difference between revisions of "Debugging Makefiles"

From eLinux.org
Jump to: navigation, search
(create page)
 
Line 12: Line 12:
 
* Download gmd (the debugger itself), from http://gmd.sf.net/
 
* Download gmd (the debugger itself), from http://gmd.sf.net/
  
Explode the tarballs from these, and place __gmsl, gmsl and gmd in the
+
Expand the tarballs from these, and place __gmsl, gmsl and gmd in the
 
directory with the Makefile you wish to debug.
 
directory with the Makefile you wish to debug.
  

Revision as of 18:28, 13 June 2008

Here is some information on debugging Makefiles:

There's a good Dr. Dobbs article on this topic, by John Graham-Cumming, at:

or printable, all-in-one page, at http://www.embedded.com/columns/technicalinsights/197003517?printable=true

John has also written a Makefile Debugger. The following resources are needed to use this debugger:

Expand the tarballs from these, and place __gmsl, gmsl and gmd in the directory with the Makefile you wish to debug.

Add the following lines to your Makefile:

include gdm

and

all:
        $(__BREAKPOINT)

See the following articles for more information: