[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Passing flags to Makefile.ac's in subdirs
From: |
Eric Blake |
Subject: |
Re: Passing flags to Makefile.ac's in subdirs |
Date: |
Thu, 03 Feb 2011 07:51:15 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7 |
On 02/03/2011 06:12 AM, dzinoviev wrote:
>
> Hello,
>
> I have a project that uses autoconf/automake. There is the root directory
> and several subdirectories, each having a Makefile.ac, and a configure.ac in
> the root directory. I want each Makefile.ac to have the same macro
> definition (say, FOO = bar). Can I do this in a centralized manner through
> configure.ac? If yes, how? If not, what would you recommend to keep
> Makefile.ac's consistent? Thank you!
There's no such thing as Makefile.ac. configure.ac is processed by
autoconf, and Makefile.am is processed by automake. If you want to
share values across multiple Makefiles, it sounds more like an automake
question for what to put in your Makefile.am. So I'm not quite sure how
best to answer your question, other than to say that yes, automake
supports nesting sub-projects with their own configure.ac while still
allowing the child projects to inherit values substituted in the parent
project configure.
--
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature