Home > Archive > Fortran > May 2005 > auto generation of make files, best location for tests
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
auto generation of make files, best location for tests
|
|
| Neilen Marais 2005-05-29, 3:57 pm |
| 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)
| |
| Douglas Cox 2005-05-29, 3:57 pm |
| On Sun, 29 May 2005 15:18:51 +0200, Neilen Marais
<junkmail@chatsubo.lagged.za.net> wrote:
>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.
Try mkmf.pl
http://www.gfdl.noaa.gov/%7Evb/mkmf.html
Doug
|
|
|
|
|