It depends! Partly on what tools you have, but mostly on how many you need.
If it's say, 4, just plane and saw carefully. But for 400, you'd want to be looking at a jig to work with a suitable powered means of cutting. Maybe that if it's 40.
And what size material are you starting with?