-
+ F9C36B2555141DF7BC0F8BE870C0F60C8D8D35F93BA165F8B489D2CCBACD789B750BBD35B8EAA30664DF7447A704EDDFC8771DE2C74E1F2C3A3472C7B9894669
udp/txdemo/udp_tx_demo.gpr
(0 . 0)(1 . 69)
897 ------------------------------------------------------------------------------
898 ------------------------------------------------------------------------------
899 -- This file is part of 'UDP Tx Demo', accompanies 'UDP' library. --
900 -- --
901 -- (C) 2018 Stanislav Datskovskiy ( www.loper-os.org ) --
902 -- http://wot.deedbot.org/17215D118B7239507FAFED98B98228A001ABFFC7.html --
903 -- --
904 -- You do not have, nor can you ever acquire the right to use, copy or --
905 -- distribute this software ; Should you use this software for any purpose, --
906 -- or copy and distribute it to anyone or in any manner, you are breaking --
907 -- the laws of whatever soi-disant jurisdiction, and you promise to --
908 -- continue doing so for the indefinite future. In any case, please --
909 -- always : read and understand any software ; verify any PGP signatures --
910 -- that you use - for any purpose. --
911 -- --
912 -- See also http://trilema.com/2015/a-new-software-licensing-paradigm . --
913 ------------------------------------------------------------------------------
914 ------------------------------------------------------------------------------
915
916 with "../libudp/udp.gpr";
917
918 project UDP_Tx_Demo is
919
920 for Object_Dir use "obj";
921
922 type Mode_Type is ("debug", "release");
923 Mode : Mode_Type := external ("mode", "release");
924
925 for Languages use ("Ada");
926 for Source_Dirs use (".");
927 for Exec_Dir use "bin";
928 for Main use ("udp_tx_demo.adb");
929
930 package Compiler is
931 case Mode is
932 when "debug" =>
933 for Switches ("Ada")
934 use ("-g");
935 when "release" =>
936 for Switches ("Ada")
937 use ("-O2", "-fdump-scos", "-gnata", "-fstack-check",
938 "-gnatyd", "-gnatym",
939 "-fdata-sections", "-ffunction-sections");
940 end case;
941 end Compiler;
942
943 package Binder is
944 case Mode is
945 when "debug" =>
946 for Switches ("Ada")
947 use ();
948 when "release" =>
949 for Switches ("Ada")
950 use ("-static");
951 end case;
952 end Binder;
953
954 package Linker is
955 case Mode is
956 when "debug" =>
957 for Switches ("Ada")
958 use ();
959 when "release" =>
960 for Switches ("Ada")
961 use ("-Wl,--gc-sections", "-static");
962 end case;
963 end Linker;
964
965 end UDP_Tx_Demo;