In order to build a program, you need to tell Automake which sources are part of it, and which libraries it should be linked with.
This section also covers conditional compilation of sources or programs. Most of the comments about these also apply to libraries (see Libraries) and libtool libraries (see Shared libraries).
|• Program Sources||Defining program sources|
|• Program and Library Variables|
|• Default sources|
|• Program Variables|
|• Linking||Linking with libraries or extra objects|
|• Conditional Sources||Handling conditional sources|
|• Conditional Programs||Building a program conditionally|
|• EXEEXT||Support for executable extensions::|