Compound can be prepared in two different ways: 1) By condensation of 2-chloro-4-amino-5,7-dimethoxyquinazoline (I) with 1-(n-butyryl)homopiperazine (II) in refluxing butanol. 2) By cyclization of 2-amino-4,5-dimethoxybenzonitrile (III) with 4-(n-butyryl)homopiperazin-1-formamidine (IV), by means of sodium methoxide in refluxing dimethylsulfoxide.