UsingAutotools

From Wesnoth

Contents

Users

For SVN version run

./autogen.sh

For both SVN and releases run

./configure

Editor, server and translation tools are neither compiled nor installed by default. If you want them, just provide the right options to configure:

./configure --enable-server
./configure --enable-editor
./configure --enable-tools

or, to compile everything,

./configure --enable-server --enable-editor --enable-tools

Then run

make

and as root,

make install


Static Binary

To build a static binary do the following:

./configure --enable-static
make


Developers

When adding a new source file, Add it to corresponding Makefile.am:

  • For wesnoth: src/Makefile.am
  • For wesnoth server: src/server/Makefile.am
  • For wesnoth editor: src/Makefile.am
  • For translation tools: src/tools/Makefile.am

Then run automake 1.9 in topdir, wesnoth/, and commit both changed Makefile.am and corresponding Makefile.in

Testing

Autotools have been tested and run correctly in (please add your platform if you test it):

  • Gentoo GNU/Linux
  • FreeBSD 4.9 and 5.2.1
  • Debian GNU/Linux (Sid) [need to install automake 1.9 or newer. (1.9 tested and working)]
  • SuSe Linux 9.3 Professional [After installing proper automake tools]
  • Ubuntu / Edgy Eft. Autotools 1.9 tested
  • Slackware 10.2

See Also

This page was last modified on 1 August 2010, at 13:57.