OSDN Git Service

130e14cbee07c7d7249f6f78e825963c11857e27
[pf3gnuchains/gcc-fork.git] / gcc / ada / mdll-utl.ads
1 ------------------------------------------------------------------------------
2 --                                                                          --
3 --                         GNAT COMPILER COMPONENTS                         --
4 --                                                                          --
5 --                            M D L L . T O O L S                           --
6 --                                                                          --
7 --                                 S p e c                                  --
8 --                                                                          --
9 --                            $Revision$
10 --                                                                          --
11 --          Copyright (C) 1992-2001 Free Software Foundation, Inc.          --
12 --                                                                          --
13 -- GNAT is free software;  you can  redistribute it  and/or modify it under --
14 -- terms of the  GNU General Public License as published  by the Free Soft- --
15 -- ware  Foundation;  either version 2,  or (at your option) any later ver- --
16 -- sion.  GNAT is distributed in the hope that it will be useful, but WITH- --
17 -- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
18 -- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
19 -- for  more details.  You should have  received  a copy of the GNU General --
20 -- Public License  distributed with GNAT;  see file COPYING.  If not, write --
21 -- to  the Free Software Foundation,  59 Temple Place - Suite 330,  Boston, --
22 -- MA 02111-1307, USA.                                                      --
23 --                                                                          --
24 -- GNAT was originally developed  by the GNAT team at  New York University. --
25 -- It is now maintained by Ada Core Technologies Inc (http://www.gnat.com). --
26 --                                                                          --
27 ------------------------------------------------------------------------------
28
29 --  Interface to externals tools used to build DLL and import libraries
30
31 package MDLL.Utl is
32
33    procedure Dlltool
34      (Def_Filename : String;
35       DLL_Name     : String;
36       Library      : String;
37       Exp_Table    : String := "";
38       Base_File    : String := "";
39       Build_Import : Boolean);
40    --  Run dlltool binary.
41    --  This tools is used to build an import library and an export table
42
43    procedure Gcc
44      (Output_File : String;
45       Files       : Argument_List;
46       Options     : Argument_List;
47       Base_File   : String := "";
48       Build_Lib   : Boolean := False);
49    --  Run gcc binary.
50
51    procedure Gnatbind
52      (Alis : Argument_List;
53       Args : Argument_List := Null_Argument_List);
54    --  Run gnatbind binary to build the binder program.
55    --  it Runs the command : gnatbind -n alis... to build the binder program.
56
57    procedure Gnatlink
58      (Ali  : String;
59       Args : Argument_List := Null_Argument_List);
60    --  Run gnatlink binary.
61    --  It runs the command : gnatlink ali arg1 arg2...
62
63    procedure Locate;
64    --  Look for the needed tools in the path and record the full path for each
65    --  one in a variable.
66
67 end MDLL.Utl;