3.3. Making a list of files with Glob

You can also use the Glob function to find all files matching a certain template, using the standard shell pattern matching characters *, ? and [abc] to match any of a, b or c. [!abc] is also supported, to match any character except a, b or c. This makes many multi-source-file builds quite easy:

       Program('program', Glob('*.c'))

The SCons man page has more details on using Glob with variant directories (see Chapter 18, below) and repositories (see Chapter 23, below), and returning strings rather than Nodes.