@conf
def fc_flags(conf):
    """
	Defines common fortran configuration flags and file extensions
	"""
    v = conf.env
    v.FC_SRC_F = []
    v.FC_TGT_F = ['-c', '-o']
    v.FCINCPATH_ST = '-I%s'
    v.FCDEFINES_ST = '-D%s'
    if not v.LINK_FC:
        v.LINK_FC = v.FC
    v.FCLNK_SRC_F = []
    v.FCLNK_TGT_F = ['-o']
    v.FCFLAGS_fcshlib = ['-fpic']
    v.LINKFLAGS_fcshlib = ['-shared']
    v.fcshlib_PATTERN = 'lib%s.so'
    v.fcstlib_PATTERN = 'lib%s.a'
    v.FCLIB_ST = '-l%s'
    v.FCLIBPATH_ST = '-L%s'
    v.FCSTLIB_ST = '-l%s'
    v.FCSTLIBPATH_ST = '-L%s'
    v.FCSTLIB_MARKER = '-Wl,-Bstatic'
    v.FCSHLIB_MARKER = '-Wl,-Bdynamic'
    v.SONAME_ST = '-Wl,-h,%s'
