Per Inge Mathisen wrote:
On 11/13/06, Gerard Krol <[EMAIL PROTECTED]> wrote:
And it is not that every user needs to run "make depend", it just needs
to be done when there are changes to the includes. I believe there
are switches to make
gcc do the same as makedepend, but a lot slower.
I do not know about slower, but there is no need to add dependencies
to files that are checked in, at least not if you use gcc -M.
You mean that the dependency information is already there (in the .c
files) so we should not commit it to SVN another time?
The standard way to do this is, it seems, to create new, hidden files
with
dependency information for each .c file. In autohell, those are added
as .Po files in a separate .deps directory. One advantage of this is
that you do not need to check in changes to dependencies to the
repository.
This is a bit of a problem if we want Makefile.raw to be able to run
from within a dos shell (no sed for example).
I had some fun with gnu make and gcc -M a few months ago, and created
a very generalized build system with only those two components,
including configuration checking, 'make dist' and dependency
generation. You can see it at
http://svn.gna.org/viewcvs/buckyball/trunk/ if you are interested. I
do not know how well something like that would scale.
I think it would scale the same way makedepend does, it just is O(n) on
.c files, just with a higher constant I guess.
- Gerard
_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev