-
+ 92D0220A48F6753FB699220DB8EBA867B4F4354291C3E4EBD6B3048982524E93F82356D40B8BF2371F7C6768545FE2EE0E531EBD70144CBD8213A6D8C84E727E
ffa/libffa/ffa.gpr
(0 . 0)(1 . 62)
439 ------------------------------------------------------------------------------
440 ------------------------------------------------------------------------------
441 -- This file is part of 'Finite Field Arithmetic', aka 'FFA'. --
442 -- --
443 -- (C) 2017 Stanislav Datskovskiy ( www.loper-os.org ) --
444 -- http://wot.deedbot.org/17215D118B7239507FAFED98B98228A001ABFFC7.html --
445 -- --
446 -- You do not have, nor can you ever acquire the right to use, copy or --
447 -- distribute this software ; Should you use this software for any purpose, --
448 -- or copy and distribute it to anyone or in any manner, you are breaking --
449 -- the laws of whatever soi-disant jurisdiction, and you promise to --
450 -- continue doing so for the indefinite future. In any case, please --
451 -- always : read and understand any software ; verify any PGP signatures --
452 -- that you use - for any purpose. --
453 -- --
454 -- See also http://trilema.com/2015/a-new-software-licensing-paradigm . --
455 ------------------------------------------------------------------------------
456 ------------------------------------------------------------------------------
457
458 project FFA is
459
460 for Object_Dir use "obj";
461
462 type Mode_Type is ("debug", "release");
463 Mode : Mode_Type := external ("mode", "release");
464
465 for Languages use ("Ada");
466 for Source_Dirs use (".");
467 for Library_Dir use "lib";
468 for Library_Name use "FFA";
469 for Library_Kind use "static";
470
471 package Binder is
472 case Mode is
473 when "debug" =>
474 for Switches ("Ada")
475 use ();
476 when "release" =>
477 for Switches ("Ada")
478 use ("-static", "-r");
479 end case;
480 end Binder;
481
482 package Builder is
483 for Switches ("Ada")
484 use ("-nostdlib");
485 end Builder;
486
487 package Compiler is
488 case Mode is
489 when "debug" =>
490 for Switches ("Ada")
491 use ("-g");
492 when "release" =>
493 for Switches ("Ada")
494 use ("-O2", "-fdump-scos", "-gnata", "-fstack-check",
495 "-fdata-sections", "-ffunction-sections",
496 "-gnatec=" & FFA'Project_Dir & "restrict.adc");
497 end case;
498 end Compiler;
499
500 end FFA;