auto generation of make files, best location for tests



Hi

I've been using a script called makemake.perl to auto-generate a
makefile with dependency information etc for my f90 project. It's very
easy to use, but does not seem to support multi-dir projects.

Now I'd like to add some unit tests to the codebase. I've put the
tests in a subdirectory in the source tree called tests. The problem
is that the test programs depend on the object files in the main
source directory, so I can't use makemake.perl to create the makefile
for them.

How can I auto-generate a makefile for the tests? Will Automake, or
some other tool do the trick? Or do I need to change my directory
structure somehow?

Thanks
Neilen

-- you know its kind of tragic we
live in the new world but we've lost the magic -- Battery 9
(www.battery9.co.za)
.



Relevant Pages