The present invention relates to novel compounds having anti-cancer activity, methods of making these compounds, and their use for treating cancer and drug-resistant tumors, e.g. melanoma, metastatic melanoma, drug resistant melanoma, prostate cancer and drug resistant prostate cancer.