to get reliable results you can follow two different pathways, provided the amount of Mg and Ca carbonate is high enough or in other words above the detection limits of the methods applied.
Using XRF you can calculate the amount of "calcite" and "magnesite" from the MgO , CaO and LOI. It can be re-calculate for dolomite and insoluble compounds.
Better do XRF and apply the Rietveld Method to get a quantitative overview of all the major compounds in the soil. Here you will see if it is calcite, magnesite or some of its predecessors such as huntite or dolomite.
I also suggest doing some separation work prior to the analyses becaues of the presence of the minerals in the various grain size fractions (detrital or newly formed minerals).
O.K thank you to everyone. But I don't have such instruments, I need to do it in the classical ways: gravimetric analysis or colorimetric standard method :(