automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where to generate .lo files ?


From: Michel Briand
Subject: Re: Where to generate .lo files ?
Date: Wed, 4 Feb 2009 10:33:34 +0100

Ralf Wildenhues <address@hidden> - Tue, 3 Feb 2009 19:06:52
+0100

>Hello Michel,
>
>* Michel Briand wrote on Tue, Feb 03, 2009 at 06:09:11PM CET:
>> 
>> I wonder if it's possible to tell libtool to generate .lo file
>> elsewhere than in source directory (where Makefile resides).
>
>Yes:
>  libtool --mode=compile $CC -o some/where/foo.lo -c else/where/foo.c
>
>If you're using Automake, then you're probably looking for the Automake
>option subdir-objects, which causes objects to put in directories along
>the subdir of the source files provided.
>
Hello,

yes, I'm using automake.

I put the sub-objects into my AM_INIT_AUTOMAKE. It works like you
explained. Thanks. But why does it's not the default behavior ?

I wanted to have my source directory cleaner: all .o files, plus .lo
files, plus .Plo.... This makes directories unreadable....

Furthermore I noted that .o files are twice for one source file:

$ find . -name "main.*" -ls
4964623    4 -rw-r--r--   1 michel   users         266 fév  4 10:22 ./main.lo
4440187    8 -rw-r--r--   1 michel   users        5268 fév  4 10:22 
./.libs/main.o
4394955    8 -rw-r--r--   1 michel   users        4544 fév  4 10:22 
./.deps/main.Plo
4964367    8 -rw-r--r--   1 michel   users        5000 fév  4 10:22 ./main.o
10371366    4 -r--r--r--   1 michel   users         804 déc  2 18:41 ./main.c

I do not really understand here. Two main.o !

Cheers,
Michel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]