-
+ 685962341177AF7F4E42E4145699B2C85875FCB1B30095A71F86346D4C844AEE4E30DD756394A2C41CE75CE2367AC89E9549B84F9BDF5A73673A488D3B53892B
udp/echodemo/udp_echo_demo.gpr
(0 . 0)(1 . 69)
99 ------------------------------------------------------------------------------
100 ------------------------------------------------------------------------------
101 -- This file is part of 'UDP Echo Demo', accompanies 'UDP' library. --
102 -- --
103 -- (C) 2018 Stanislav Datskovskiy ( www.loper-os.org ) --
104 -- http://wot.deedbot.org/17215D118B7239507FAFED98B98228A001ABFFC7.html --
105 -- --
106 -- You do not have, nor can you ever acquire the right to use, copy or --
107 -- distribute this software ; Should you use this software for any purpose, --
108 -- or copy and distribute it to anyone or in any manner, you are breaking --
109 -- the laws of whatever soi-disant jurisdiction, and you promise to --
110 -- continue doing so for the indefinite future. In any case, please --
111 -- always : read and understand any software ; verify any PGP signatures --
112 -- that you use - for any purpose. --
113 -- --
114 -- See also http://trilema.com/2015/a-new-software-licensing-paradigm . --
115 ------------------------------------------------------------------------------
116 ------------------------------------------------------------------------------
117
118 with "../libudp/udp.gpr";
119
120 project UDP_Echo_Demo is
121
122 for Object_Dir use "obj";
123
124 type Mode_Type is ("debug", "release");
125 Mode : Mode_Type := external ("mode", "release");
126
127 for Languages use ("Ada");
128 for Source_Dirs use (".");
129 for Exec_Dir use "bin";
130 for Main use ("udp_echo_demo.adb");
131
132 package Compiler is
133 case Mode is
134 when "debug" =>
135 for Switches ("Ada")
136 use ("-g");
137 when "release" =>
138 for Switches ("Ada")
139 use ("-O2", "-fdump-scos", "-gnata", "-fstack-check",
140 "-gnatyd", "-gnatym",
141 "-fdata-sections", "-ffunction-sections");
142 end case;
143 end Compiler;
144
145 package Binder is
146 case Mode is
147 when "debug" =>
148 for Switches ("Ada")
149 use ();
150 when "release" =>
151 for Switches ("Ada")
152 use ("-static");
153 end case;
154 end Binder;
155
156 package Linker is
157 case Mode is
158 when "debug" =>
159 for Switches ("Ada")
160 use ();
161 when "release" =>
162 for Switches ("Ada")
163 use ("-Wl,--gc-sections", "-static");
164 end case;
165 end Linker;
166
167 end UDP_Echo_Demo;