-- Tests for Ada implementation of the Mersenne Twister PRNG
 -- S.MG, 2018
 -- 
 -- Tests results against published PRNG numbers at
 -- www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html

 with "../libmt/mt.gpr";

project Tests_MT is

  for Main use ("tests_mt.adb");
  
  type Mode_Type is ("debug", "release");
  Mode : Mode_Type := external ("mode", "release");
  
  for Languages    use ("Ada");
  for Source_Dirs  use (".");
  for Object_Dir use "obj";
  for Exec_Dir use ".";
  
  package Compiler is
     case Mode is
        when "debug" =>
           for Switches ("Ada")
             use ("-g");
        when "release" =>
           for Switches ("Ada")
             use ("-O2", "-fdump-scos", "-gnata", "-fstack-check",
                  "-gnatyd", "-gnatym",
                  "-fdata-sections", "-ffunction-sections", "-gnatwr", "-gnatw.d");
     end case;
  end Compiler;
    
  package Binder is
     case Mode is
        when "debug" =>
           for Switches ("Ada")
             use ();
        when "release" =>
           for Switches ("Ada")
             use ("-static");
     end case;
  end Binder;
end Tests_MT;