On Thu, 29 May 2003 18:06:03 +0300
Muli Ben-Yehuda <[EMAIL PROTECTED]> wrote:
> On Thu, May 29, 2003 at 06:01:47PM +0200, AndreyB wrote:
>
> > I have no problem with compiling and linking, but all the objects live in
> > the source directories - bad habit.
>
> There's no automatic way to do it, that I know of. You can it with a
Wrong. This is a standard feature of autoconf/automake:
1. Start with unconfigured source (make distclean)
2. mkdir a subdir bellow toplevel source dir (one bellow configure)
3. ../configure [... normal configure options ...]
4. You'll find that configure built a nice build tree
5. make
6. make install
Automake uses and test that separate build directories are working
during 'make distcheck'. It is also documented in the standard
INSTALL file supplied by automake (Compiling For Multiple Architectures).
In configure scripts created by modern autoconf (I use 2.53) you may
try 'configure --help' and it will show you the '--srcdir' option
(which defaults to '.' or '..')
No need for mere mortals like us to dive into make trickery anymore...
--
Oron Peled Voice/Fax: +972-4-8228492
[EMAIL PROTECTED] http://www.actcom.co.il/~oron
The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "Eureka!" (I found it!) but "That's funny ..."
-- Isaac Asimov
--------------------------------------------------------------------------
Haifa Linux Club Mailing List (http://www.haifux.org)
To unsub send an empty message to [EMAIL PROTECTED]