* rtl.h (struct rtx_def): Update comments.
[official-gcc.git] / gcc / ada / mdll.ads
blobe4ae99906901c956547e3991bd5f23769d3b020f
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- M D L L --
6 -- --
7 -- S p e c --
8 -- --
9 -- --
10 -- Copyright (C) 1992-2001 Free Software Foundation, Inc. --
11 -- --
12 -- GNAT is free software; you can redistribute it and/or modify it under --
13 -- terms of the GNU General Public License as published by the Free Soft- --
14 -- ware Foundation; either version 2, or (at your option) any later ver- --
15 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
16 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
17 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
18 -- for more details. You should have received a copy of the GNU General --
19 -- Public License distributed with GNAT; see file COPYING. If not, write --
20 -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
21 -- MA 02111-1307, USA. --
22 -- --
23 -- GNAT was originally developed by the GNAT team at New York University. --
24 -- It is now maintained by Ada Core Technologies Inc (http://www.gnat.com). --
25 -- --
26 ------------------------------------------------------------------------------
28 -- This package provides the core high level routines used by GNATDLL
29 -- to build Windows DLL
31 with GNAT.OS_Lib;
33 package MDLL is
35 subtype Argument_List is GNAT.OS_Lib.Argument_List;
36 subtype Argument_List_Access is GNAT.OS_Lib.Argument_List_Access;
38 Null_Argument_List : constant Argument_List := (1 .. 0 => new String'(""));
40 Null_Argument_List_Access : Argument_List_Access
41 := new Argument_List (1 .. 0);
43 Tools_Error : exception;
45 Verbose : Boolean := False;
46 Quiet : Boolean := False;
48 -- Kill_Suffix is used by dlltool to know whether or not the @nn suffix
49 -- should be removed from the exported names. When Kill_Suffix is set to
50 -- True then dlltool -k option is used.
52 Kill_Suffix : Boolean := False;
54 procedure Build_Dynamic_Library
55 (Ofiles : Argument_List;
56 Afiles : Argument_List;
57 Options : Argument_List;
58 Bargs_Options : Argument_List;
59 Largs_Options : Argument_List;
60 Lib_Filename : String;
61 Def_Filename : String;
62 Lib_Address : String := "";
63 Build_Import : Boolean := False;
64 Relocatable : Boolean := False);
65 -- Build a DLL and the import library to link against the DLL.
66 -- this function handles relocatable and non relocatable DLL.
67 -- If the Afiles argument list contains some Ada units then it will
68 -- generate the right adainit and adafinal and integrate it in the DLL.
69 -- If the Afiles argument list is empty (there is only some object files
70 -- provided) then it will not try to build a binder file. This is ok to
71 -- build DLL containing no Ada code.
73 procedure Build_Import_Library
74 (Lib_Filename : String;
75 Def_Filename : String);
76 -- Build an import library (.a) from a definition files. An import library
77 -- is needed to link against a DLL.
79 end MDLL;