2
votes

I'm reading GCC's source code and have some questions. It's obvious that GCC is build with autotools. But I couldn't find the Makefile.am files required by automake. Is GCC's Makefile.in files written by hand? And if they are written by hand, where can I find the documents describing the syntax of a Makefile.in?

A similar question: Makefile.in without Makefile.am in projects

1
This is a GNU tool, so if Makefile.in was generated from something, that something would have to be available as well. You have access to the ChangeLog, you can see that changes to Makefile.in appear as "change bla bla", not "regenerate" like configure. You can conclude.Marc Glisse
Yes. But on the other hand, the Makefile.in is really big and hard to read. I've ever doubted that such file was generated automatically by some private maintainer-scripts...noinput

1 Answers

3
votes

Makefile.am is a later addition to Autotools family and not all projects use it. GCC in particular does not use it. The top-level Makefile.in is generated from Makefile.tpl using autogen (see here for details). Other Makefile.in's are written by hand according to Autoconf rules.