Peter Todd wrote: > John Temples wrote: >> "makedepend" will generate a dependency list and insert it into your >> makefile, and it handles cases like you mention above (without >> modifying timestamps). This requires you to manually run makedepend >> when you change your dependencies, but it doesn't require you to >> manage the dependencies yourself. Thanks, that looks like a helpful tool. It seems to have a pitfall (header file dependencies get parsed only once, and when they depend on preprocessor definitions that change with the file where they are included, the later dependencies may be wrong), but that's probably a not so common case. I'll see how that works out... I'd still like a make tool that can handle recursive dependencies without a build step in between. > That said, on all my PIC projects to date I don't even use dependencies. > Everything is compiled into one static image. Microprocessor code is so > small, and modern computers are so fast, it's not even worth the bother > I find for my projects. We're not talking about the millions of lines of > code in the Linux kernel after all! Yes, but without dependencies, there's no need for make at all. Without them, the makefile collapses usually to a single line batch file. OTOH, there are quite a number of projects with complexities between the Linux kernel and trivial projects that only need a couple files. I find that most of my embedded projects are in that space between :) Gerhard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist