gcc-4.9: How to generate Makefile.in from a modified Makefile.am?
Chung-Ju Wu
jasonwucj@gmail.com
Thu Mar 27 05:36:00 GMT 2014
2014-03-26 18:24 GMT+08:00 Svante Signell <svante.signell@gmail.com>:
> Hi,
>
> With the recent changes of not using automake for the build, only
> auto{re}conf I have problems generating an updated Makefile.in from a
> modified Makfile.am. Source is gcc-4.9-4.9-20140322
>
For gcc-4.9, I always use automake-1.11.1 and autoconf-2.64
to regenerate 'configure' and 'Makefile.in' content.
The following are my steps:
1. Download automake-1.11.1 and autoconf-2.64 from:
http://ftp.gnu.org/gnu/automake/
http://ftp.gnu.org/gnu/autoconf/
2. Build them by your own:
(As usual, separating build folder and source folder is recommended.)
$ /path/to/src/automake-1.11.1/configure --prefix=/path/to/local
$ make
$ make install
$ /path/to/src/automake-2.64/configure --prefix=/path/to/local
$ make
$ make install
3. Suppose you have modified libgo/configure.ac and libgo/Makefile.am.
After you 'cd gcc-4.9.0/libgo/', you can use:
(To simply generate configure from a modified configure.ac)
$ PATH=/path/to/local/bin:$PATH autoconf
(To simply generate Makefile.in from a modified Makefile.am)
$ PATH=/path/to/local/bin:$PATH automake
(To generate both configure and Makefile.in)
$ PATH=/path/to/local/bin:$PATH autoreconf
Hope it helps.
Best regards,
jasonwucj
More information about the Gcc
mailing list