Thanks for your answers. It seems automake does handle this automattically, however we have a situation where the header files are in a didfferent directory tree then the shource code. For that dependency tracking is not working. Unless my INCLUDES= macro in my Makefile.am is incorrect, im not sure how to do this, if possibe
-----Original Message----- From: Ralf Wildenhues [mailto:[EMAIL PROTECTED] Sent: Saturday, March 25, 2006 5:51 AM To: Jeff Safier Cc: automake@gnu.org Subject: Re: Way to generate header finles automatically Hi Jeff, * Jeff Safier wrote on Tue, Mar 21, 2006 at 04:58:46PM CET: > I am looking for a way that automake or any other tool to scan source > code (.c or .cpp) files and generate list of depedencies( meaning > header > files) needed to compile the module. And if there is another tool how > to interface it with automake Besides the answers already given: maybe you are looking for something that helps you write a configure.ac file for Autoconf, to get a list of headers to scan for? Well, then autoscan (which is part of the Autoconf package) may be the right thing for you. But from your asking I'm not sure whether what you want is rather the automatic dependency tracking (which is already part of Automake, as Marc wrote). It should work out-of-the box for a lot of compilers (the cheap tracking methods are enabled if they are found, the not-so- cheap ones are also enabled if you pass --enable-dependency-tracking to configure). Cheers, Ralf