To make a CNC machine, you could use V Slot openbuild extrusion.
It uses V Slot, commonly used in 3D printers.
It uses 3 motors, at least.
It has a toolhead, which should be replaceable/removable/interchangeable.
Angle grinder mount, for precise cutting of metal
Drill holder, for more precise drilling, vertically and at angles