OSDN Git Service

* Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
[pf3gnuchains/gcc-fork.git] / gcc / ada / bindusg.adb
1 ------------------------------------------------------------------------------
2 --                                                                          --
3 --                        GBIND BINDER COMPONENTS                           --
4 --                                                                          --
5 --                             B I N D U S G                                --
6 --                                                                          --
7 --                                B o d y                                   --
8 --                                                                          --
9 --          Copyright (C) 1992-2002 Free Software Foundation, Inc.          --
10 --                                                                          --
11 -- GNAT is free software;  you can  redistribute it  and/or modify it under --
12 -- terms of the  GNU General Public License as published  by the Free Soft- --
13 -- ware  Foundation;  either version 2,  or (at your option) any later ver- --
14 -- sion.  GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
17 -- for  more details.  You should have  received  a copy of the GNU General --
18 -- Public License  distributed with GNAT;  see file COPYING.  If not, write --
19 -- to  the Free Software Foundation,  59 Temple Place - Suite 330,  Boston, --
20 -- MA 02111-1307, USA.                                                      --
21 --                                                                          --
22 -- GNAT was originally developed  by the GNAT team at  New York University. --
23 -- Extensive contributions were provided by Ada Core Technologies Inc.      --
24 --                                                                          --
25 ------------------------------------------------------------------------------
26
27 with Osint;  use Osint;
28 with Output; use Output;
29
30 procedure Bindusg is
31
32 --  Start of processing for Bindusg
33
34 begin
35    --  Usage line
36
37    Write_Str ("Usage: ");
38    Write_Program_Name;
39    Write_Char (' ');
40    Write_Str ("switches lfile");
41    Write_Eol;
42    Write_Eol;
43
44    --  Line for -aO switch
45
46    Write_Str ("  -aOdir    Specify library files search path");
47    Write_Eol;
48
49    --  Line for -aI switch
50
51    Write_Str ("  -aIdir    Specify source files search path");
52    Write_Eol;
53
54    --  Line for A switch
55
56    Write_Str ("  -A        Generate binder program in Ada (default)");
57    Write_Eol;
58
59    --  Line for -b switch
60
61    Write_Str ("  -b        Generate brief messages to std");
62    Write_Str ("err even if verbose mode set");
63    Write_Eol;
64
65    --  Line for -c switch
66
67    Write_Str ("  -c        Check only, no generation of b");
68    Write_Str ("inder output file");
69    Write_Eol;
70
71    --  Line for C switch
72
73    Write_Str ("  -C        Generate binder program in C");
74    Write_Eol;
75
76    --  Line for -e switch
77
78    Write_Str ("  -e        Output complete list of elabor");
79    Write_Str ("ation order dependencies");
80    Write_Eol;
81
82    --  Line for -E switch
83
84    Write_Str ("  -E        Store tracebacks in Exception occurrences");
85    Write_Eol;
86
87    --  Line for -h switch
88
89    Write_Str ("  -h        Output this usage (help) infor");
90    Write_Str ("mation");
91    Write_Eol;
92
93    --  Lines for -I switch
94
95    Write_Str ("  -Idir     Specify library and source files search path");
96    Write_Eol;
97
98    Write_Str ("  -I-       Don't look for sources & library files");
99    Write_Str (" in default directory");
100    Write_Eol;
101
102    --  Line for -K switch
103
104    Write_Str ("  -K        Give list of linker options specified for link");
105    Write_Eol;
106
107    --  Line for -l switch
108
109    Write_Str ("  -l        Output chosen elaboration order");
110    Write_Eol;
111
112    --  Line of -L switch
113
114    Write_Str ("  -Lxyz     Library build: adainit/final ");
115    Write_Str ("renamed to xyzinit/final, implies -n");
116    Write_Eol;
117
118    --  Line for -M switch
119
120    Write_Str ("  -Mxyz     Rename generated main program from main to xyz");
121    Write_Eol;
122
123    --  Line for -m switch
124
125    Write_Str ("  -mnnn     Limit number of detected error");
126    Write_Str ("s to nnn (1-999)");
127    Write_Eol;
128
129    --  Line for -n switch
130
131    Write_Str ("  -n        No Ada main program (foreign main routine)");
132    Write_Eol;
133
134    --  Line for -nostdinc
135
136    Write_Str ("  -nostdinc Don't look for source files");
137    Write_Str (" in the system default directory");
138    Write_Eol;
139
140    --  Line for -nostdlib
141
142    Write_Str ("  -nostdlib Don't look for library files");
143    Write_Str (" in the system default directory");
144    Write_Eol;
145
146    --  Line for -o switch
147
148    Write_Str ("  -o file   Give the output file name (default is b~xxx.adb) ");
149    Write_Eol;
150
151    --  Line for -O switch
152
153    Write_Str ("  -O        Give list of objects required for link");
154    Write_Eol;
155
156    --  Line for -p switch
157
158    Write_Str ("  -p        Pessimistic (worst-case) elaborat");
159    Write_Str ("ion order");
160    Write_Eol;
161
162    --  Line for -r switch
163
164    Write_Str ("  -r        List restrictions that could be a");
165    Write_Str ("pplied to this partition");
166    Write_Eol;
167
168    --  Line for -s switch
169
170    Write_Str ("  -s        Require all source files to be");
171    Write_Str (" present");
172    Write_Eol;
173
174    --  Line for -Sxx switch
175
176    Write_Str ("  -S??      Sin/lo/hi/xx for Initialize_Scalars");
177    Write_Str (" invalid/low/high/hex");
178    Write_Eol;
179
180    --  Line for -static
181
182    Write_Str ("  -static   Link against a static GNAT run time");
183    Write_Eol;
184
185    --  Line for -shared
186
187    Write_Str ("  -shared   Link against a shared GNAT run time");
188    Write_Eol;
189
190    --  Line for -t switch
191
192    Write_Str ("  -t        Tolerate time stamp and other consistency errors");
193    Write_Eol;
194
195    --  Line for -T switch
196
197    Write_Str ("  -Tn       Set time slice value to n milliseconds (n >= 0)");
198    Write_Eol;
199
200    --  Line for -v switch
201
202    Write_Str ("  -v        Verbose mode. Error messages, ");
203    Write_Str ("header, summary output to stdout");
204    Write_Eol;
205
206    --  Lines for -w switch
207
208    Write_Str ("  -wx       Warning mode. (x=s/e for supp");
209    Write_Str ("ress/treat as error)");
210    Write_Eol;
211
212    --  Line for -x switch
213
214    Write_Str ("  -x        Exclude source files (check ob");
215    Write_Str ("ject consistency only)");
216    Write_Eol;
217
218    --  Line for -z switch
219
220    Write_Str ("  -z        No main subprogram (zero main)");
221    Write_Eol;
222
223    --  Line for --RTS
224
225    Write_Str ("  --RTS=dir specify the default source and object search path");
226    Write_Eol;
227
228    --  Line for sfile
229
230    Write_Str ("  lfile     Library file names");
231    Write_Eol;
232
233 end Bindusg;