import re


def __source_to_object_name(file_path):
    """
    Transforms a filename from the convention of source code names to the
    convention of object code names.
    """
    return re.sub(r".c$", r".o", file_path)