Esterification of the commercially available carboxylic acid (I) by treatment with oxalyl chloride in DCM followed by reaction with MeOH in CH2Cl2 provides methyl carboxylate (II), which is then brominated with NBS and catalytic dibenzoylperoxide in refluxing acetonitrile to afford 3-bromomethylquinoline derivative (III). Treatment of (III) with secondary amine (IV) and DIEA in THF furnishes compound (V), which is then converted into the desired product by acidic hydrolysis in refluxing HCl followed by coupling with primary amine (VI) by means of HBTU and Et3N in refluxing THF/CH2Cl2.