raw
ffa_ch1_genesis.kv      1 ------------------------------------------------------------------------------
ffa_ch1_genesis.kv 2 ------------------------------------------------------------------------------
ffa_ch1_genesis.kv 3 -- This file is part of 'Finite Field Arithmetic', aka 'FFA'. --
ffa_ch1_genesis.kv 4 -- --
ffa_ch15_gcd.kv 5 -- (C) 2019 Stanislav Datskovskiy ( www.loper-os.org ) --
ffa_ch1_genesis.kv 6 -- http://wot.deedbot.org/17215D118B7239507FAFED98B98228A001ABFFC7.html --
ffa_ch1_genesis.kv 7 -- --
ffa_ch1_genesis.kv 8 -- You do not have, nor can you ever acquire the right to use, copy or --
ffa_ch1_genesis.kv 9 -- distribute this software ; Should you use this software for any purpose, --
ffa_ch1_genesis.kv 10 -- or copy and distribute it to anyone or in any manner, you are breaking --
ffa_ch1_genesis.kv 11 -- the laws of whatever soi-disant jurisdiction, and you promise to --
ffa_ch1_genesis.kv 12 -- continue doing so for the indefinite future. In any case, please --
ffa_ch1_genesis.kv 13 -- always : read and understand any software ; verify any PGP signatures --
ffa_ch1_genesis.kv 14 -- that you use - for any purpose. --
ffa_ch1_genesis.kv 15 -- --
ffa_ch1_genesis.kv 16 -- See also http://trilema.com/2015/a-new-software-licensing-paradigm . --
ffa_ch1_genesis.kv 17 ------------------------------------------------------------------------------
ffa_ch1_genesis.kv 18 ------------------------------------------------------------------------------
ffa_ch1_genesis.kv 19
ffa_ch1_genesis.kv 20 with "../libffa/ffa.gpr";
ffa_ch1_genesis.kv 21
ffa_ch1_genesis.kv 22 project FFA_Demo is
ffa_ch1_genesis.kv 23
ffa_ch1_genesis.kv 24 for Object_Dir use "obj";
ffa_ch1_genesis.kv 25
ffa_ch1_genesis.kv 26 type Mode_Type is ("debug", "release");
ffa_ch1_genesis.kv 27 Mode : Mode_Type := external ("mode", "release");
ffa_ch1_genesis.kv 28
ffa_ch1_genesis.kv 29 for Languages use ("Ada");
ffa_ch1_genesis.kv 30 for Source_Dirs use (".");
ffa_ch1_genesis.kv 31 for Exec_Dir use "bin";
ffa_ch1_genesis.kv 32 for Main use ("ffa_demo.adb");
ffa_ch1_genesis.kv 33
ffa_ch1_genesis.kv 34 package Compiler is
ffa_ch1_genesis.kv 35 case Mode is
ffa_ch1_genesis.kv 36 when "debug" =>
ffa_ch1_genesis.kv 37 for Switches ("Ada")
ffa_ch1_genesis.kv 38 use ("-g");
ffa_ch1_genesis.kv 39 when "release" =>
ffa_ch1_genesis.kv 40 for Switches ("Ada")
ffa_ch1_genesis.kv 41 use ("-O2", "-fdump-scos", "-gnata", "-fstack-check",
ffa_ch1_genesis.kv 42 "-fdata-sections", "-ffunction-sections");
ffa_ch1_genesis.kv 43 end case;
ffa_ch1_genesis.kv 44 end Compiler;
ffa_ch1_genesis.kv 45
ffa_ch1_genesis.kv 46 package Binder is
ffa_ch1_genesis.kv 47 case Mode is
ffa_ch1_genesis.kv 48 when "debug" =>
ffa_ch1_genesis.kv 49 for Switches ("Ada")
ffa_ch1_genesis.kv 50 use ();
ffa_ch1_genesis.kv 51 when "release" =>
ffa_ch1_genesis.kv 52 for Switches ("Ada")
ffa_ch1_genesis.kv 53 use ("-static");
ffa_ch1_genesis.kv 54 end case;
ffa_ch1_genesis.kv 55 end Binder;
ffa_ch1_genesis.kv 56
ffa_ch1_genesis.kv 57 package Linker is
ffa_ch1_genesis.kv 58 case Mode is
ffa_ch1_genesis.kv 59 when "debug" =>
ffa_ch1_genesis.kv 60 for Switches ("Ada")
ffa_ch1_genesis.kv 61 use ();
ffa_ch1_genesis.kv 62 when "release" =>
ffa_ch1_genesis.kv 63 for Switches ("Ada")
ffa_ch1_genesis.kv 64 use ("-Wl,--gc-sections",
ffa_ch1_genesis.kv 65 "-static");
ffa_ch1_genesis.kv 66 end case;
ffa_ch1_genesis.kv 67 end Linker;
ffa_ch1_genesis.kv 68
ffa_ch1_genesis.kv 69 end FFA_Demo;