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
