The putative father of any child born out of wedlock, whether such father resides in North Carolina or not, may apply by a verified written petition, filed in a special proceeding in the superior court of the county in which the putative father resides or in the superior court of the county in which the child resides, praying that such child be declared legitimate. The mother, if living, and the child shall be necessary parties to the proceeding, and the full names of the father, mother and the child shall be set out in the petition. A certified copy of a certificate of birth of the child shall be attached to the petition. If it appears to the court that the petitioner is the father of the child, the court may thereupon declare and pronounce the child legitimated; and the full names of the father, mother and the child shall be set out in the court order decreeing legitimation of the child. The clerk of the court shall record the order in the record of orders and decrees and it shall be cross-indexed under the name of the father as plaintiff or petitioner on the plaintiff's side of the cross-index, and under the name of the mother, and the child as defendants or respondents on the defendants' side of the cross-index.
N.C. Gen. Stat. § 49-10