-
+ 8547B598D4310C0A25ED8FEB79159195E97C8B4546F7E5099490E5FDFB83E4F2869EEE9EFC77A0FD24448308192059252F986FA2B14B7DE67FF3686EB422554C
udp/libudp/udp.gpr
(0 . 0)(1 . 74)
564 ------------------------------------------------------------------------------
565 ------------------------------------------------------------------------------
566 -- This file is part of 'UDP', a datagram sockets library. --
567 -- --
568 -- (C) 2018 Stanislav Datskovskiy ( www.loper-os.org ) --
569 -- http://wot.deedbot.org/17215D118B7239507FAFED98B98228A001ABFFC7.html --
570 -- --
571 -- You do not have, nor can you ever acquire the right to use, copy or --
572 -- distribute this software ; Should you use this software for any purpose, --
573 -- or copy and distribute it to anyone or in any manner, you are breaking --
574 -- the laws of whatever soi-disant jurisdiction, and you promise to --
575 -- continue doing so for the indefinite future. In any case, please --
576 -- always : read and understand any software ; verify any PGP signatures --
577 -- that you use - for any purpose. --
578 -- --
579 -- See also http://trilema.com/2015/a-new-software-licensing-paradigm . --
580 ------------------------------------------------------------------------------
581 ------------------------------------------------------------------------------
582
583 project UDP is
584
585 for Object_Dir use "obj";
586
587 type Mode_Type is ("debug", "release");
588 Mode : Mode_Type := external ("mode", "release");
589
590 for Languages use ("Ada", "C");
591 for Source_Dirs use (".");
592 for Library_Dir use "lib";
593 for Library_Name use "UDP";
594 for Library_Kind use "static";
595
596 package Compiler is
597 for Leading_Required_Switches ("C") use ("-c");
598 for Object_File_Suffix ("C") use ".o";
599 for Include_Switches ("C") use ("-I");
600
601 case Mode is
602 when "debug" =>
603 for Switches ("Ada")
604 use ("-g");
605 when "release" =>
606 for Switches ("Ada")
607 use ("-O2", "-fdump-scos", "-gnata", "-fstack-check",
608 "-gnatyd", "-gnatym",
609 "-fdata-sections", "-ffunction-sections", "-gnatwr", "-gnatw.d",
610 "-gnatec=" & UDP'Project_Dir & "restrict.adc");
611 for Switches ("C")
612 use ("-O2", "-Wall", "-fstack-check");
613 end case;
614 end Compiler;
615
616 package Naming is
617 for Spec_Suffix ("C") use ".h";
618 for Body_Suffix ("C") use ".c";
619 end Naming;
620
621 package Builder is
622 for Switches ("Ada")
623 use ("-nostdlib");
624 end Builder;
625
626 package Binder is
627 case Mode is
628 when "debug" =>
629 for Switches ("Ada")
630 use ();
631 when "release" =>
632 for Switches ("Ada")
633 use ("-static");
634 end case;
635 end Binder;
636
637 end UDP;