Henning Meier-Geinitz <[email protected]> wrote: >> Speaking of that, would it be possible to use .depend files to track >> dependencies ? That would be very handy, given that the Makfiles >> currently do not track dependencies, and sometimes can't do it >> (#include <foo.c>). > > Could you explain how that works or where I can read more about it?
It basically boils down to : gcc -E -MM foo.c > .depend, and then including the resulting file in the Makefile. This depends on gcc, but there are a couple of standalone dependency extractors lying around (a quick search on google indicates there's one in X, called makedepend, but I haven't verified). > I have already thought about using automake to generate the makefiles > but I guess we would need lots of special rules at least for backend/. Yes, it'd take some time to get it up & running... JB. -- Julien BLACHE <http://www.jblache.org> <[email protected]> GPG KeyID 0xF5D65169
