In order to link dynamically with the library you do:

gprbuild -v -aI/usr/include/ada-syntax-analyzer\
         -aO/usr/lib[64]/ada-syntax-analyzer\
          APPLICATION\
         -largs -lada-syntax-analyzer\

To link statically:

gprbuild -v -aI/usr/include/ada-syntax-analyzer\
         -aO/usr/lib[64]/ada-syntax-analyzer\
          APPLICATION\
         -largs /usr/lib[64]/libada-syntax-analyzer.a\

You  can  also  use the gpr file in your project files. The project file
uses the external variable Library_Type to control linkage. It can  take
values "relocatable" (default) or "static". For example:

   with ada_syntax_analyzer.gpr";
   project My_Project is
      for Main use ("My_Progran");
   end My_Project;

which can be built (dynamically linking to the library) as:

gprbuild -v -Pmy_project.gpr

or statically:

gprbuild -v -XLibrary_Type=static -Pmy_project.gpr

See also:
   /usr/lib/gnat - ada_syntax_analyzer.gpr
   /usr/include/ada-syntax-analyzer - *.adb, *.ads
   /usr/lib[64] - libada-syntax-analyzer.so.1.0-1
   /usr/lib[64]/ada-syntax-analyzer - *.ali, libada-syntax-analyzer.a
   /usr/share/ada-syntax-analyzer - *.htm documentation, tests and examples
