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 A Library) and libtool libraries (see A Shared Library).
• Program Sources | Defining program sources | |
• Linking | Linking with libraries or extra objects | |
• Conditional Sources | Handling conditional sources | |
• Conditional Programs | Building a program conditionally |