Re: Newbie: Installing some binaries and other files in /usr/X11R6 by default

2006-02-24 Thread Gary V. Vaughan
[EMAIL PROTECTED] wrote:
> I started reading about GNU Autotools yesterday morning.
> Still, I've been able to convert my project to use
> autconf and automake.
> But I need to install my binaries in the directory
> tree of the X server, and I couldn't find out how to
> do it. Is it possible?

$ ../path/to/configure --prefix=/path/to/X11R6/root/directory
$ make
$ su
# make install

HTH,
Gary.
-- 
Gary V. Vaughan  ())_.  [EMAIL PROTECTED],gnu.org}
Research Scientist   ( '/   http://tkd.kicks-ass.net
GNU Hacker   / )=   http://www.gnu.org/software/libtool
Technical Author   `(_~)_   http://sources.redhat.com/autobook



signature.asc
Description: OpenPGP digital signature


Copying a file after each subdirectory build

2006-02-24 Thread Russell Shaw

Hi,
I have lots of libraries and programs in separate directories, each
with its own configure.ac and Makefile.am.

What can i put into Makefile.am so that after each library is built,
it will copy its header file and object file to another directory in
the project tree?

I want all the library headers in a header directory and library objects
in an objects directory, in the same layout that they will be installed
on the host system. I also want the rest of the programs in the project
to be linked to them during the project "make".




Re: specifying target directories in non-recursive automake

2006-02-24 Thread Gary V. Vaughan
John Darrington wrote:
> I've been trying to convert a rather largish automake controlled
> project from a recursive style build system, to a non-recursive one.
> I was rather suprised to see that automake decides to put all the
> object files in the root directory; not only ugly, but destroys the
> namespaces afforded by each directory.
> 
> Consequently, things are falling down when in the cases where there
> are identically names source files in different directories. For
> example, this simple Makefile.am complains about main.o being created
> twice, when the two main.c files are clearly separate.
> 
> bin_PROGRAMS = prog1/foo prog2/bar
> 
> prog1_foo_SOURCES = prog1/main.c
> 
> prog2_bar_SOURCES = prog2/main.c
> 
> 
> Reading the manual suggests that I should be able to prefix the
> SOURCES variables with nobase_ but it doesn't seem to work.
> 
> Can anyone tell me the correct way to create a non-recursive automake
> system, which might have identically named source files?

In your configure.ac, make sure AM_INIT_AUTOMAKE is given the
subdir-objects option (you'll also need a recent automake):

  AM_INIT_AUTOMAKE([1.9 subdir-objects])

HTH,
Gary.
-- 
Gary V. Vaughan  ())_.  [EMAIL PROTECTED],gnu.org}
Research Scientist   ( '/   http://tkd.kicks-ass.net
GNU Hacker   / )=   http://www.gnu.org/software/libtool
Technical Author   `(_~)_   http://sources.redhat.com/autobook



signature.asc
Description: OpenPGP digital signature