-
+ EB6F9147755C67830C904A92C4FA5D8D7AD7608987800FA8AF09221BAB132DECEA894D9B111DB1D2A311976404F7E52401A3EB164FA31DDD11DB89D87E546539
eucrypt/crc32/crc32.gpr
(0 . 0)(1 . 61)
258 ------------------------------------------------------------------------------
259 ------------------------------------------------------------------------------
260 -- CRC32 checksum lib --
261 -- S.MG, 2018 --
262 -- --
263 -- You do not have, nor can you ever acquire the right to use, copy or --
264 -- distribute this software ; Should you use this software for any purpose, --
265 -- or copy and distribute it to anyone or in any manner, you are breaking --
266 -- the laws of whatever soi-disant jurisdiction, and you promise to --
267 -- continue doing so for the indefinite future. In any case, please --
268 -- always : read and understand any software ; verify any PGP signatures --
269 -- that you use - for any purpose. --
270 -- --
271 -- See also http://trilema.com/2015/a-new-software-licensing-paradigm . --
272 ------------------------------------------------------------------------------
273 ------------------------------------------------------------------------------
274
275 project CRC32 is
276
277 for Object_Dir use "obj";
278
279 type Mode_Type is ("debug", "release");
280 Mode : Mode_Type := external ("mode", "release");
281
282 for Languages use ("Ada");
283 for Source_Dirs use (".");
284 for Library_Dir use "lib";
285 for Library_Name use "CRC32";
286 for Library_Kind use "static";
287
288 package Compiler is
289 case Mode is
290 when "debug" =>
291 for Switches ("Ada")
292 use ("-g");
293 when "release" =>
294 for Switches ("Ada")
295 use ("-O2", "-fdump-scos", "-gnata", "-fstack-check",
296 "-gnatyd", "-gnatym",
297 "-fdata-sections", "-ffunction-sections", "-gnatwr", "-gnatw.d",
298 "-gnatec=" & CRC32'Project_Dir & "restrict.adc");
299 end case;
300 end Compiler;
301
302 package Builder is
303 for Switches ("Ada")
304 use ("-nostdlib");
305 end Builder;
306
307 package Binder is
308 case Mode is
309 when "debug" =>
310 for Switches ("Ada")
311 use ();
312 when "release" =>
313 for Switches ("Ada")
314 use ("-static");
315 end case;
316 end Binder;
317
318 end CRC32;