This paper considers the formation control problem for a network of point masses which are subject to Coulomb friction. A dynamical model including the planar discontinuous friction force is presented in the port-Hamiltonian framework. Moreover, continuous and discontinuous controllers are designed in order to achieve a desired prescribed formation. The main results are derived using tools from nonsmooth Lyapunov analysis. It is shown that the continuous static feedback controller fails to achieve the exact formation, while the discontinuous controller achieves the desired task exactly. Numerical simulations are provided to illustrate the effectiveness of the approach.