-
+ EB6F9147755C67830C904A92C4FA5D8D7AD7608987800FA8AF09221BAB132DECEA894D9B111DB1D2A311976404F7E52401A3EB164FA31DDD11DB89D87E546539
eucrypt/crc32/crc32.gpr
(0 . 0)(1 . 61)
195 ------------------------------------------------------------------------------
196 ------------------------------------------------------------------------------
197 -- CRC32 checksum lib --
198 -- S.MG, 2018 --
199 -- --
200 -- You do not have, nor can you ever acquire the right to use, copy or --
201 -- distribute this software ; Should you use this software for any purpose, --
202 -- or copy and distribute it to anyone or in any manner, you are breaking --
203 -- the laws of whatever soi-disant jurisdiction, and you promise to --
204 -- continue doing so for the indefinite future. In any case, please --
205 -- always : read and understand any software ; verify any PGP signatures --
206 -- that you use - for any purpose. --
207 -- --
208 -- See also http://trilema.com/2015/a-new-software-licensing-paradigm . --
209 ------------------------------------------------------------------------------
210 ------------------------------------------------------------------------------
211
212 project CRC32 is
213
214 for Object_Dir use "obj";
215
216 type Mode_Type is ("debug", "release");
217 Mode : Mode_Type := external ("mode", "release");
218
219 for Languages use ("Ada");
220 for Source_Dirs use (".");
221 for Library_Dir use "lib";
222 for Library_Name use "CRC32";
223 for Library_Kind use "static";
224
225 package Compiler is
226 case Mode is
227 when "debug" =>
228 for Switches ("Ada")
229 use ("-g");
230 when "release" =>
231 for Switches ("Ada")
232 use ("-O2", "-fdump-scos", "-gnata", "-fstack-check",
233 "-gnatyd", "-gnatym",
234 "-fdata-sections", "-ffunction-sections", "-gnatwr", "-gnatw.d",
235 "-gnatec=" & CRC32'Project_Dir & "restrict.adc");
236 end case;
237 end Compiler;
238
239 package Builder is
240 for Switches ("Ada")
241 use ("-nostdlib");
242 end Builder;
243
244 package Binder is
245 case Mode is
246 when "debug" =>
247 for Switches ("Ada")
248 use ();
249 when "release" =>
250 for Switches ("Ada")
251 use ("-static");
252 end case;
253 end Binder;
254
255 end CRC32;