autoconf
[Top][All Lists]
Advanced

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

Re: Setting up auto conf


From: Eric Blake
Subject: Re: Setting up auto conf
Date: Mon, 05 Jan 2009 06:08:17 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Thunderbird/2.0.0.19 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Dan Smithers on 1/5/2009 5:01 AM:
> My goal is to be able to set up parallel debug and release builds for
> the different architectures.

Yes, that is provided by VPATH builds, provided by Automake.

> I would like to be able to build and link
> without having to "install" until I'm happy with the work.

Yes, that is possible with DESTDIR support, also provided by using Automake.

> 
> I would also like to be able to build the complete project from the top
> level and also build sub-projects individually.

Yes, that is provided by Autoconf.

> 
> I think that autotools will be able to do all this, but get a bit
> puzzled from time to time.

Perhaps reading this tutorial will help:
http://www.gnu.org/software/automake/manual/automake.html#Autotools-Introduction

> 
> I would also like to avoid having auto-generatable files in revision
> control as much as possible. What are the minimum files needed for this?

Keep configure.ac, Makefile.am, and COPYING under control, everything else
is generated.  (Technically, Automake can generate a default COPYING with
the latest GPL, but it also issues a warning, as that is not always the
right action; you are better off providing an explicit COPYING, which
Automake will never overwrite).

> 
> the project structure is
> 
> my_proj/build_<arch>_<debug>
>        /configure.in

Use configure.ac, not configure.in.

>        /Makefile.in

generated from Makefile.am by automake.

>        /Makefile.am
>        /sub_proj1/configure.in

configure.ac...

> 
> Sometimes it seems to use Makefile.in and others Makefile.am. What is
> the difference? and can I set it to use the same skeleton file for all uses?

Makefile.in is the input to Autoconf.  It can either be hand-written or
generated from Makefile.am by Automake; if you plan on using all the
autotools rather than just Autoconf, I'd recommend the latter.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkliBkEACgkQ84KuGfSFAYDiRwCdEtZdEqvnmfO+OMlS9haEM/u4
UIgAn0ukcgQGj94w1P0pJFEr9MVPA360
=GsjX
-----END PGP SIGNATURE-----




reply via email to

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