Divide make files in 3 for easier merge of future upstream.