automake
[Top][All Lists]
Advanced

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

Re: Help with @some_configure_var@ variables in automake files.


From: Alexandre Duret-Lutz
Subject: Re: Help with @some_configure_var@ variables in automake files.
Date: Thu, 31 Oct 2002 17:33:11 +0100
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-debian-linux-gnu)

>>> "Jerry" == Iseri, Jerry <address@hidden> writes:

 Jerry> Is there documentation on where configuration variables are 
 Jerry> allowed in automake files?

Not in a single place.

You can use them almost anywhere.

Using them is tricky in a few places where they hide useful
information to Automake.  E.g., Automake needs to know all
sources that will be compiled, but cannot guess the possible
values of @address@hidden  In such cases you have to list the hidden
values using an EXTRA_ variable (for instance grep the manual
for EXTRA_hello_SOURCES or EXTRA_PROGRAMS).

 Jerry> Here's a small example:

 Jerry> #Is this supported?
 Jerry> AM_CPPFLAGS = @MY_EXTRA_FLAGS@ 

Automake doesn't care about the content of AM_CPPFLAGS, so you
can set it as you wish.

 Jerry> noinst_PROGRAMS = foo
 Jerry> # This is documented as not allowed.
 Jerry> foo_SOURCES = @MY_SOURCES@

You can do this if you list the possible values of @MY_SOURCES@ in

EXTRA_foo_SOURCES = foo.c foo.h ...

 Jerry> foo_LDADD = @HOW_ABOUT_THIS@

If @HOW_ABOUT_THIS@ contains object or libraries, you'll also
want to redefine foo_DEPENDENCIES (grep the manual for
maude_DEPENDENCIES).
-- 
Alexandre Duret-Lutz





reply via email to

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