'Adds supports for rc and res files.'

def object_filenames(self, source_filenames, strip_dir=0, output_dir=''):

    if (output_dir is None):
        output_dir = ''
    obj_names = []
    for src_name in source_filenames:
        (base, ext) = os.path.splitext(os.path.normcase(src_name))
        if (ext not in (self.src_extensions + ['.rc', '.res'])):
            raise UnknownFileError(("unknown    file    type    '%s'    (from    '%s')" % (ext, src_name)))
        if strip_dir:
            base = os.path.basename(base)
        if (ext in ('.res', '.rc')):
            obj_names.append(os.path.join(output_dir, ((base + ext) + self.obj_extension)))
        else:
            obj_names.append(os.path.join(output_dir, (base + self.obj_extension)))
    return obj_names
