The closest to answer I've gotten is this video: Wikipedia: Making gears by hand without machines
However, I don't really know if Archimedes and his contemporaries would have the above tools or not. I'd assume his process would be more rudimentary and less refined. More specifically, I'm wondering how the complex set of gears in the Antikythera were made.