Below is the file 'debian/gnade_common_build.gpr' from this revision. You can also download the file.
project GNADE_Common_Build is
Soversion := External ("soversion");
type Lib_Type is ("static", "dynamic");
Libtype : Lib_Type := external ("LIBTYPE");
for Languages use ("Ada");
-- At install time, Source_Dirs must reflect the build source
-- directories
for Source_Dirs use ("../support");
-- Library_Dir must be a single directory containing all the
-- library files (*.ali, *.a, *.so) for all of the gnade packages.
for Library_Dir use "tmp";
-- Object_Dir is only used at build time; it must be distinct from
-- the other package object directories, and from the library
-- directory.
for Object_Dir use "tmp/common-" & Libtype;
for Library_Name use "gnadecommon";
for Library_Kind use Libtype;
-- Library_Version is not used when Library_Kind is "static"
for Library_Version use "libgnadecommon.so." & Soversion;
package Compiler is
Base_Switches :=
("-g",
"-O2",
"-gnat05",
"-gnatfno",
"-gnatwa",
"-gnatVa",
"-fstack-check");
case Libtype is
when "static" =>
for Default_Switches ("Ada") use Base_Switches;
when "dynamic" =>
for Default_Switches ("Ada") use Base_Switches & ("-FPIC");
end case;
end Compiler;
end GNADE_Common_Build;