Question about assembling contig file to reference genome


I was wondering if anyone could point me in the right direction of the programs necessary to assemble my contig file to a reference genome so that I may use subsequent programs to construct a phylogenetic tree. My contig file is approximately 5891 contigs and I have tried using Mauve contig mover, but believe i am still missing a key step, because it generates an output with many gaps.