Compiler directives in a file list?

A quick solution that would work in any simulator is to put filec.v in your file list:

filec.v

`ifdef FOO
  `include "f1.v"
`else
  `include "f2.v"
`endif