Search code examples
scons

how to tell scons to compile .src files like .c files


am using scons with renesas compiler.

in my project i need to compile .c, .s and .src files.

i am able to compile .c and .s files.

but if scons found the .src file it is skipping the file

can anyone help me to do this.

Thanks.


Solution

  • Firstly, you'll need to add this extension to env['CPPFILESUFFIXES'] to get .src files to be scanned for header dependencies.

    Secondly, sadly, although fortran allows you to supply a list of extensions, C doesn't, so you'll have to define your own builder which mimics the C builder