flymake-master-file-count-limit

flymake-master-file-count-limit is a variable defined in `flymake.el'.
Its value is
32


Documentation:
Max number of master files to check.

You can customize this variable.