Mariusz Zynel wrote:
Hi All
Is there anybody interested in automated dependency - Make rules generation for Pascal projects?
Yes. I'm currently(*) writing a utility to do this. Not as make rules because make is not completely suitable for Pascal projects (e.g., since in a unit, the interface and implementation parts are stored in the same file, make would have to assume the interface was changed when in fact only the implementation was changed, and therefore recompile everything that uses the unit; also, it's not well suited for cyclic unit dependencies).
(*) Actually, my work got stuck because of a problem and other things to do. But I hope I can continue it soon...
or using Autoconf for Pascal projects?
For feature tests, we try to avoid it, or rather, concentrate it in the RTS, so the RTS already provides a portable interface and not every project has to do the (mostly) same tests again and again.
BTW options -M as well as -MM and the like seem not to work with GPC.
They work... like they do in GCC, i.e., output the include dependencies which are, of course, not very important in most Pascal projects.
Frank