1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 2001-2004, Ada Core Technologies, Inc --
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, 51 Franklin Street, Fifth Floor, --
20 -- Boston, MA 02110-1301, USA. --
22 -- GNAT was originally developed by the GNAT team at New York University. --
23 -- Extensive contributions were provided by Ada Core Technologies Inc. --
25 ------------------------------------------------------------------------------
27 -- This package provides an easy way of calling various tools such as gcc,
32 No_Argument_List
: constant Argument_List
:= (1 .. 0 => null);
35 procedure Delete_File
(Filename
: in String);
36 -- Delete the file Filename
37 -- Why is this different from the standard OS_Lib routine???
40 (Output_File
: String;
41 Objects
: Argument_List
;
42 Options
: Argument_List
;
43 Options_2
: Argument_List
;
44 Driver_Name
: Name_Id
:= No_Name
);
45 -- Driver_Name indicates the "driver" to invoke; by default, the "driver"
47 -- This procedure invokes the driver to create a shared library.
48 -- Options are passed to gcc before the objects, Options_2 after.
49 -- Output_File is the name of the library file to create.
50 -- Objects are the names of the object files to put in the library.
53 (Output_File
: String;
54 Objects
: Argument_List
);
55 -- Run ar to move all the binaries inside the archive.
56 -- If ranlib is on the path, run it also.
57 -- Arguments need documenting ???
59 function Lib_Directory
return String;
60 -- Return the directory containing libgnat