with dd, we had to soften the eye lid (if there were crusts) - we used cotton wool in boiling water (cooled down but still warm).
Then we had to massage her eye lid so that the gunk came out and then wash it gently with a mixture of boiled water (warm) with a drop or so of baby shampoo.
If it doesn't clear, you can get antibiotic eye ointment for it.