-
+ 9721DA8826DA76AA03974927E9869B598A1F8CE3C8DBA308343C08AE7D27124A9BA65AEE35AFDB704ED5EEE3EC319CB036ECC97266388C833A458DD889A9A1F1
ffa/ffacalc/ffa_calc.gpr
(0 . 0)(1 . 69)
646 ------------------------------------------------------------------------------
647 ------------------------------------------------------------------------------
648 -- This file is part of 'Finite Field Arithmetic', aka 'FFA'. --
649 -- --
650 -- (C) 2017 Stanislav Datskovskiy ( www.loper-os.org ) --
651 -- http://wot.deedbot.org/17215D118B7239507FAFED98B98228A001ABFFC7.html --
652 -- --
653 -- You do not have, nor can you ever acquire the right to use, copy or --
654 -- distribute this software ; Should you use this software for any purpose, --
655 -- or copy and distribute it to anyone or in any manner, you are breaking --
656 -- the laws of whatever soi-disant jurisdiction, and you promise to --
657 -- continue doing so for the indefinite future. In any case, please --
658 -- always : read and understand any software ; verify any PGP signatures --
659 -- that you use - for any purpose. --
660 -- --
661 -- See also http://trilema.com/2015/a-new-software-licensing-paradigm . --
662 ------------------------------------------------------------------------------
663 ------------------------------------------------------------------------------
664
665 with "../libffa/ffa.gpr";
666
667 project FFA_Calc is
668
669 for Object_Dir use "obj";
670
671 type Mode_Type is ("debug", "release");
672 Mode : Mode_Type := external ("mode", "release");
673
674 for Languages use ("Ada");
675 for Source_Dirs use (".");
676 for Exec_Dir use "bin";
677 for Main use ("ffa_calc.adb");
678
679 package Compiler is
680 case Mode is
681 when "debug" =>
682 for Switches ("Ada")
683 use ("-g");
684 when "release" =>
685 for Switches ("Ada")
686 use ("-O2", "-fdump-scos", "-gnata", "-fstack-check",
687 "-fdata-sections", "-ffunction-sections");
688 end case;
689 end Compiler;
690
691 package Binder is
692 case Mode is
693 when "debug" =>
694 for Switches ("Ada")
695 use ();
696 when "release" =>
697 for Switches ("Ada")
698 use ("-static");
699 end case;
700 end Binder;
701
702 package Linker is
703 case Mode is
704 when "debug" =>
705 for Switches ("Ada")
706 use ();
707 when "release" =>
708 for Switches ("Ada")
709 use ("-Wl,--gc-sections",
710 "-static");
711 end case;
712 end Linker;
713
714 end FFA_Calc;