automake
[Top][All Lists]
Advanced

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

Re: Changing $libdir


From: Bob Friesenhahn
Subject: Re: Changing $libdir
Date: Tue, 16 Oct 2007 10:13:26 -0500 (CDT)

On Tue, 16 Oct 2007, NightStrike wrote:

If I do:

lib_LIBRARIES = libfoo.a
libfoo_a_SOURCES = foo.c

in the Makefile.am, libfoo.a will be installed into $(prefix)/lib.  If
I am using AC_CANONICAL_SYSTEM in configure.ac, I want to be able to
set build, host, and target for building a cross compiler.  I would
then want the above library to be installed into
$(prefix)/$(host)/lib.  How do I accomplish that?

You *really* don't want to redefine any standard location. Leave that for the user. However, you are free to define new non-standard locations for you use. For example, in my package Makefile.am I define 'codersdir' to be the directory path where I want some library modules to be installed. Later on I define 'coders_LTLIBRARIES' to be the list of all the library modules (.la files) to install in that directory. At install time all of these libraries get magically installed into the directory indicated by 'codersdir'.

You will find that Automake offers a quite flexible mechanism for installing in arbitrary directories.

As a golden rule, make sure that all directories used logically fall under the user-supplied prefix unless the user specifically says to install elsewhere.

Bob
======================================
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/





reply via email to

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