next up previous contents
Next: Adding source files Up: Anatomy of a thorn Previous: The configuration.ccl   Contents


Naming Conventions for Source Files

The make system uses file extensions to designate coding language. The following extensions can be handled:

Extension Coding Language
.F Fortran 90 fixed form
.f (no preprocessing) Fortran 90 fixed form
.F90 Fortran 90 free form
.f90 (no preprocessing) Fortran 90 free form
.F77 Fortran 77
.f77 (no preprocessing) Fortran 77
.c C
.cc or .C C++

The following restrictions apply to file names:

  • For portability across all operating systems, the base names for any particular extension should not depend on the operating system being case sensitive (e.g. having MyFile.c and MYFILE.f77 is allright, but MyFile.c and MYFILE.c could cause problems).
  • Currently all source files in different subroutines within a thorn must have distinct names. We hope to relax this in future. Different thorns can have files with the same names.


next up previous contents
Next: Adding source files Up: Anatomy of a thorn Previous: The configuration.ccl   Contents