Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

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)

Report this thread to moderator Post Follow-up to this message
Old Post
Neilen Marais
05-29-05 08:57 PM


Re: auto generation of make files, best location for tests
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


Report this thread to moderator Post Follow-up to this message
Old Post
Douglas Cox
05-29-05 08:57 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Fortran archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:34 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.