1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 2001-2007, AdaCore --
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 3, 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 COPYING3. If not, go to --
19 -- http://www.gnu.org/licenses for a complete copy of the license. --
21 -- GNAT was originally developed by the GNAT team at New York University. --
22 -- Extensive contributions were provided by Ada Core Technologies Inc. --
24 ------------------------------------------------------------------------------
26 -- This package provides an easy way of calling various tools such as gcc,
31 procedure Delete_File
(Filename
: String);
32 -- Delete the file Filename and output the name of the deleted file in
36 (Output_File
: String;
37 Objects
: Argument_List
;
38 Options
: Argument_List
;
39 Options_2
: Argument_List
;
40 Driver_Name
: Name_Id
:= No_Name
);
41 -- Driver_Name indicates the "driver" to invoke; by default, the "driver"
42 -- is gcc. This procedure invokes the driver to create a shared library.
43 -- Options are passed to gcc before the objects, Options_2 after.
44 -- Output_File is the name of the library file to create. Objects are the
45 -- names of the object files to put in the library.
48 (Output_File
: String;
49 Objects
: Argument_List
);
50 -- Run ar to move all the binaries inside the archive. If ranlib is on the
51 -- path, run it also. Output_File is the path name of the archive to
52 -- create. Objects is the list of the path names of the object files to be
53 -- put in the archive.
55 function Lib_Directory
return String;
56 -- Return the directory containing libgnat