ffa_ch4_ffacalc.kv 1
ffa_ch4_ffacalc.kv 2
ffa_ch4_ffacalc.kv 3
ffa_ch4_ffacalc.kv 4
ffa_ch4_ffacalc.kv 5
ffa_ch4_ffacalc.kv 6
ffa_ch4_ffacalc.kv 7
ffa_ch4_ffacalc.kv 8
ffa_ch4_ffacalc.kv 9
ffa_ch4_ffacalc.kv 10
ffa_ch4_ffacalc.kv 11
ffa_ch4_ffacalc.kv 12
ffa_ch4_ffacalc.kv 13
ffa_ch4_ffacalc.kv 14
ffa_ch4_ffacalc.kv 15
ffa_ch4_ffacalc.kv 16
ffa_ch4_ffacalc.kv 17
ffa_ch4_ffacalc.kv 18
ffa_ch4_ffacalc.kv 19
ffa_ch4_ffacalc.kv 20 with "../libffa/ffa.gpr";
ffa_ch4_ffacalc.kv 21
ffa_ch4_ffacalc.kv 22 project FFA_Calc is
ffa_ch4_ffacalc.kv 23
ffa_ch4_ffacalc.kv 24 for Object_Dir use "obj";
ffa_ch4_ffacalc.kv 25
ffa_ch4_ffacalc.kv 26 type Mode_Type is ("debug", "release");
ffa_ch4_ffacalc.kv 27 Mode : Mode_Type := external ("mode", "release");
ffa_ch4_ffacalc.kv 28
ffa_ch4_ffacalc.kv 29 for Languages use ("Ada");
ffa_ch4_ffacalc.kv 30 for Source_Dirs use (".");
ffa_ch4_ffacalc.kv 31 for Exec_Dir use "bin";
ffa_ch4_ffacalc.kv 32 for Main use ("ffa_calc.adb");
ffa_ch4_ffacalc.kv 33
ffa_ch4_ffacalc.kv 34 package Compiler is
ffa_ch4_ffacalc.kv 35 case Mode is
ffa_ch4_ffacalc.kv 36 when "debug" =>
ffa_ch4_ffacalc.kv 37 for Switches ("Ada")
ffa_ch4_ffacalc.kv 38 use ("-g");
ffa_ch4_ffacalc.kv 39 when "release" =>
ffa_ch4_ffacalc.kv 40 for Switches ("Ada")
ffa_ch4_ffacalc.kv 41 use ("-O2", "-fdump-scos", "-gnata", "-fstack-check",
ffa_ch4_ffacalc.kv 42 "-fdata-sections", "-ffunction-sections");
ffa_ch4_ffacalc.kv 43 end case;
ffa_ch4_ffacalc.kv 44 end Compiler;
ffa_ch4_ffacalc.kv 45
ffa_ch4_ffacalc.kv 46 package Binder is
ffa_ch4_ffacalc.kv 47 case Mode is
ffa_ch4_ffacalc.kv 48 when "debug" =>
ffa_ch4_ffacalc.kv 49 for Switches ("Ada")
ffa_ch4_ffacalc.kv 50 use ();
ffa_ch4_ffacalc.kv 51 when "release" =>
ffa_ch4_ffacalc.kv 52 for Switches ("Ada")
ffa_ch4_ffacalc.kv 53 use ("-static");
ffa_ch4_ffacalc.kv 54 end case;
ffa_ch4_ffacalc.kv 55 end Binder;
ffa_ch4_ffacalc.kv 56
ffa_ch4_ffacalc.kv 57 package Linker is
ffa_ch4_ffacalc.kv 58 case Mode is
ffa_ch4_ffacalc.kv 59 when "debug" =>
ffa_ch4_ffacalc.kv 60 for Switches ("Ada")
ffa_ch4_ffacalc.kv 61 use ();
ffa_ch4_ffacalc.kv 62 when "release" =>
ffa_ch4_ffacalc.kv 63 for Switches ("Ada")
ffa_ch4_ffacalc.kv 64 use ("-Wl,--gc-sections",
ffa_ch4_ffacalc.kv 65 "-static");
ffa_ch4_ffacalc.kv 66 end case;
ffa_ch4_ffacalc.kv 67 end Linker;
ffa_ch4_ffacalc.kv 68
ffa_ch4_ffacalc.kv 69 end FFA_Calc;