-
+ 49B8C0BA83C82375365BC0EDCF9D69113D1A3ABBCDB577C118171BBDB6245C68FD29E182A0A6B11D7D76B4742A28FA81909C99996ED9F6E4E1FBAE195C3F6952
ffa/ffacalc/peh.gpr
(0 . 0)(1 . 69)
1047 ------------------------------------------------------------------------------
1048 ------------------------------------------------------------------------------
1049 -- This file is part of 'Finite Field Arithmetic', aka 'FFA'. --
1050 -- --
1051 -- (C) 2019 Stanislav Datskovskiy ( www.loper-os.org ) --
1052 -- http://wot.deedbot.org/17215D118B7239507FAFED98B98228A001ABFFC7.html --
1053 -- --
1054 -- You do not have, nor can you ever acquire the right to use, copy or --
1055 -- distribute this software ; Should you use this software for any purpose, --
1056 -- or copy and distribute it to anyone or in any manner, you are breaking --
1057 -- the laws of whatever soi-disant jurisdiction, and you promise to --
1058 -- continue doing so for the indefinite future. In any case, please --
1059 -- always : read and understand any software ; verify any PGP signatures --
1060 -- that you use - for any purpose. --
1061 -- --
1062 -- See also http://trilema.com/2015/a-new-software-licensing-paradigm . --
1063 ------------------------------------------------------------------------------
1064 ------------------------------------------------------------------------------
1065
1066 with "../libffa/ffa.gpr";
1067
1068 project Peh is
1069
1070 for Object_Dir use "obj";
1071
1072 type Mode_Type is ("debug", "release");
1073 Mode : Mode_Type := external ("mode", "release");
1074
1075 for Languages use ("Ada");
1076 for Source_Dirs use (".");
1077 for Exec_Dir use "bin";
1078 for Main use ("peh.adb");
1079
1080 package Compiler is
1081 case Mode is
1082 when "debug" =>
1083 for Switches ("Ada")
1084 use ("-g");
1085 when "release" =>
1086 for Switches ("Ada")
1087 use ("-O2", "-fdump-scos", "-gnata", "-fstack-check",
1088 "-gnatyd", "-gnatym",
1089 "-fdata-sections", "-ffunction-sections");
1090 end case;
1091 end Compiler;
1092
1093 package Binder is
1094 case Mode is
1095 when "debug" =>
1096 for Switches ("Ada")
1097 use ();
1098 when "release" =>
1099 for Switches ("Ada")
1100 use ("-static");
1101 end case;
1102 end Binder;
1103
1104 package Linker is
1105 case Mode is
1106 when "debug" =>
1107 for Switches ("Ada")
1108 use ();
1109 when "release" =>
1110 for Switches ("Ada")
1111 use ("-Wl,--gc-sections", "-static");
1112 end case;
1113 end Linker;
1114
1115 end Peh;