OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [ada/] [mlib-utl.ads] - Blame information for rev 311

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 281 jeremybenn
------------------------------------------------------------------------------
2
--                                                                          --
3
--                         GNAT COMPILER COMPONENTS                         --
4
--                                                                          --
5
--                             M L I B . U T L                              --
6
--                                                                          --
7
--                                 S p e c                                  --
8
--                                                                          --
9
--                     Copyright (C) 2001-2008, AdaCore                     --
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 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.          --
20
--                                                                          --
21
-- GNAT was originally developed  by the GNAT team at  New York University. --
22
-- Extensive contributions were provided by Ada Core Technologies Inc.      --
23
--                                                                          --
24
------------------------------------------------------------------------------
25
 
26
--  This package provides an easy way of calling various tools such as gcc,
27
--  ar, etc...
28
 
29
package MLib.Utl is
30
 
31
   procedure Delete_File (Filename : String);
32
   --  Delete the file Filename and output the name of the deleted file in
33
   --  verbose mode.
34
 
35
   procedure Gcc
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.
46
 
47
   procedure Ar
48
     (Output_File : String;
49
      Objects     : Argument_List);
50
   --  Run ar to move all the binaries inside the archive. If ranlib is on
51
   --  the 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. This procedure currently assumes that it is always
54
   --  called in the context of gnatmake. If other executables start using this
55
   --  procedure, an additional parameter would need to be added, and calls to
56
   --  Osint.Program_Name updated accordingly in the body.
57
 
58
   function Lib_Directory return String;
59
   --  Return the directory containing libgnat
60
 
61
   procedure Specify_Adalib_Dir (Path : String);
62
   --  Specify the path of the GNAT adalib directory, to be returned by
63
   --  function Lib_Directory without looking for it. This is used only in
64
   --  gprlib, because we cannot rely on the search in Lib_Directory, as the
65
   --  GNAT version may be different for gprbuild/gprlib and the compiler.
66
 
67
end MLib.Utl;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.