-
Notifications
You must be signed in to change notification settings - Fork 0
/
admpfr.gpr
40 lines (29 loc) · 1.1 KB
/
admpfr.gpr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
library project Admpfr is
for Languages use ("Ada", "C");
for Source_Dirs use ("src");
for Object_Dir use "obj";
type Target_type is ("Windows_NT", "UNIX");
Target : Target_type := external ("OS", "UNIX");
type Build_Type is ("Debug", "Release");
Build : Build_Type := external ("PRJ_BUILD", "Debug");
for Library_Name use "admpfr";
for Library_Dir use "lib";
package Compiler is
GNAT_Options := ("-gnata", "-gnatVa", "-gnatQ", "-gnatyg", "-gnateE",
"-gnatwaCJe", "-fstack-check", "-gnatwae", "-gnat2022");
case Build is
when "Debug" =>
for Switches ("Ada") use ("-g", "-O0") & GNAT_Options;
for Switches ("C") use ("-g", "-Wall" ,"-Werror");
when "Release" =>
for Switches ("Ada") use ("-O2") & GNAT_Options;
for Switches ("C") use ("-O2");
end case;
end Compiler;
package Linker is
case Target is
when "Windows_NT" => for Linker_Options use ("-lmpfr", "-lgmp");
when "UNIX" => for Linker_Options use ("-lmpfr");
end case;
end Linker;
end Admpfr;