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 and Repositories, and returning strings rather than Nodes.