The present invention describes the synthesis of the compounds of formulae (1), (2) and (3) in which m and n, which may be identical or different, may have the values 0, 2, 3, 4, 5 and 6; Z and Y, which may be identical or different, represent a nitrogenated cyclic system bonded by nitrogen or by one of the ring carbons or an NR
1
R
2
system; and X is selected from the group consisting of hydrogen, C1-C12 alkyl, substituted alkyl, C3-C12 aryl, amino, alkylamino, nitro, hydroxy, alkoxy, halogen, carboxy or carboxamido. The use of the compounds of formulae (1), (2) and (3) as anti-HIV agents in the treatment of Acquired Immune Deficiency Syndrome (AIDS) is described.