Measurement of prompt charm meson production cross sections in p(p)over-bar collisions at root s=1.96 TeV