[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Need help with cleaning up a working GNU Autotools setup
From: |
Sune Ahlgren |
Subject: |
Need help with cleaning up a working GNU Autotools setup |
Date: |
Sat, 08 Oct 2005 21:27:01 +0200 |
First of all, this is a crosspost, but since I get no feedback from the
other group I'm hoping for you guys. Thanks!
Second of all, you may have got a copy of this message 5 minutes
ago since Hotmail seems to have gone haywire. Sorry in that case....
Hi,
I've just moved from Eclipse CDT's 'Managed makefiles' to GNU's
Autotools. It's a small project with 1 base directory and 3
subdirectories:
rsd-----+----collections
|
+----debug
|
+----global
All 3 subdirectories stores .c files and accompanying .h files. At this
point they compile properly, i.e. 'collections' and 'debug' directories
compile to 1 executable each and 'global' outputs a static library.
Note: The project will grow considerably, it would just be nice to have
my environment up to par before that happens.
Question:
------------
At this point all object files, binaries and libraries end up in the
same directory as the source code from which they are created. This
means a mess and I would want something like this:
+----bin (for executables)
rsd-----+----collections-+----obj (for intermediate object files)
| +----lib (for libraries)
+----debug (as for collections)
|
+----global (as for collections)
How do I achieve this in a smooth way? I've tried the manuals and the
net without being any wiser, so please, any hint is appreciated. I
program in C, by the way.
Thanks in advance
/Sune
_________________________________________________________________
Lättare att hitta drömresan med MSN Resor http://www.msn.se/resor/