CnCs are very expensive. That being said, you could probably sub the work out to a mill. Failing that you could do it with several different passes on a router table with a verity of bits.
I would start with a rabbiting bit and cut a rabbit out of a long piece of stock. (that would be the bottom most groove. I would then flip the stock over and change to a 3/4 " dato bit and with several pass remove the material on the top except for what you need for the 1/4" round. I would then cut the pieces to length with either a miter box or on cross cut sled on a table saw. I would then cut the next to slots with a slot cutter on the router table. I would install a bearing follow round over bit and cut the 1/4 round. Finally I would use a miter jig and cut the miters on a table saw.
I would recommend you use a soft to medium hardwood for this not pine. Try Poplar or if that is not hard enough, maple.