우정 means friendship (especially of the true, long lasting one).
친목 describes friendly relations in a social setting, not necessarily between friends.
So the two words are used very differently. 우정 is commonly used for true friendship, while 친목 implies superficially amicable relationships. Some social groups are called "XX 친목회" (XX social club).