OSDN Git Service

2006-09-28 Paolo Carlini <pcarlini@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / ada / mlib-tgt.adb
1 ------------------------------------------------------------------------------
2 --                                                                          --
3 --                         GNAT COMPILER COMPONENTS                         --
4 --                                                                          --
5 --                             M L I B . T G T                              --
6 --                            (Default Version)                             --
7 --                                                                          --
8 --                                 B o d y                                  --
9 --                                                                          --
10 --                     Copyright (C) 2001-2005, AdaCore                     --
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,  51  Franklin  Street,  Fifth  Floor, --
21 -- Boston, MA 02110-1301, USA.                                              --
22 --                                                                          --
23 -- GNAT was originally developed  by the GNAT team at  New York University. --
24 -- Extensive contributions were provided by Ada Core Technologies Inc.      --
25 --                                                                          --
26 ------------------------------------------------------------------------------
27
28 --  This is the default version which does not support libraries.
29 --  All subprograms are dummies, because they are never called,
30 --  except Support_For_Libraries which returns None.
31
32 package body MLib.Tgt is
33
34    ---------------------
35    -- Archive_Builder --
36    ---------------------
37
38    function Archive_Builder return String is
39    begin
40       return "ar";
41    end Archive_Builder;
42
43    -----------------------------
44    -- Archive_Builder_Options --
45    -----------------------------
46
47    function Archive_Builder_Options return String_List_Access is
48    begin
49       return new String_List'(1 => new String'("cr"));
50    end Archive_Builder_Options;
51
52    -----------------
53    -- Archive_Ext --
54    -----------------
55
56    function Archive_Ext return String is
57    begin
58       return "";
59    end Archive_Ext;
60
61    ---------------------
62    -- Archive_Indexer --
63    ---------------------
64
65    function Archive_Indexer return String is
66    begin
67       return "ranlib";
68    end Archive_Indexer;
69
70    -----------------------------
71    -- Archive_Indexer_Options --
72    -----------------------------
73
74    function Archive_Indexer_Options return String_List_Access is
75    begin
76       return new String_List (1 .. 0);
77    end Archive_Indexer_Options;
78
79    ---------------------------
80    -- Build_Dynamic_Library --
81    ---------------------------
82
83    procedure Build_Dynamic_Library
84      (Ofiles       : Argument_List;
85       Foreign      : Argument_List;
86       Afiles       : Argument_List;
87       Options      : Argument_List;
88       Options_2    : Argument_List;
89       Interfaces   : Argument_List;
90       Lib_Filename : String;
91       Lib_Dir      : String;
92       Symbol_Data  : Symbol_Record;
93       Driver_Name  : Name_Id := No_Name;
94       Lib_Version  : String  := "";
95       Auto_Init    : Boolean := False)
96    is
97       pragma Unreferenced (Ofiles);
98       pragma Unreferenced (Foreign);
99       pragma Unreferenced (Afiles);
100       pragma Unreferenced (Options);
101       pragma Unreferenced (Options_2);
102       pragma Unreferenced (Interfaces);
103       pragma Unreferenced (Lib_Filename);
104       pragma Unreferenced (Lib_Dir);
105       pragma Unreferenced (Symbol_Data);
106       pragma Unreferenced (Driver_Name);
107       pragma Unreferenced (Lib_Version);
108       pragma Unreferenced (Auto_Init);
109
110    begin
111       null;
112    end Build_Dynamic_Library;
113
114    -------------
115    -- DLL_Ext --
116    -------------
117
118    function DLL_Ext return String is
119    begin
120       return "";
121    end DLL_Ext;
122
123    ----------------
124    -- DLL_Prefix --
125    ----------------
126
127    function DLL_Prefix return String is
128    begin
129       return "lib";
130    end DLL_Prefix;
131
132    --------------------
133    -- Dynamic_Option --
134    --------------------
135
136    function Dynamic_Option return String is
137    begin
138       return "";
139    end Dynamic_Option;
140
141    -------------------
142    -- Is_Object_Ext --
143    -------------------
144
145    function Is_Object_Ext (Ext : String) return Boolean is
146       pragma Unreferenced (Ext);
147    begin
148       return False;
149    end Is_Object_Ext;
150
151    --------------
152    -- Is_C_Ext --
153    --------------
154
155    function Is_C_Ext (Ext : String) return Boolean is
156       pragma Unreferenced (Ext);
157    begin
158       return False;
159    end Is_C_Ext;
160
161    --------------------
162    -- Is_Archive_Ext --
163    --------------------
164
165    function Is_Archive_Ext (Ext : String) return Boolean is
166       pragma Unreferenced (Ext);
167    begin
168       return False;
169    end Is_Archive_Ext;
170
171    -------------
172    -- Libgnat --
173    -------------
174
175    function Libgnat return String is
176    begin
177       return "libgnat.a";
178    end Libgnat;
179
180    ------------------------
181    -- Library_Exists_For --
182    ------------------------
183
184    function Library_Exists_For
185      (Project : Project_Id; In_Tree : Project_Tree_Ref) return Boolean
186    is
187       pragma Unreferenced (Project);
188       pragma Unreferenced (In_Tree);
189    begin
190       return False;
191    end Library_Exists_For;
192
193    ---------------------------
194    -- Library_File_Name_For --
195    ---------------------------
196
197    function Library_File_Name_For
198      (Project : Project_Id;
199       In_Tree : Project_Tree_Ref) return Name_Id
200    is
201       pragma Unreferenced (Project);
202       pragma Unreferenced (In_Tree);
203    begin
204       return No_Name;
205    end Library_File_Name_For;
206
207    ----------------
208    -- Object_Ext --
209    ----------------
210
211    function Object_Ext return String is
212    begin
213       return "";
214    end Object_Ext;
215
216    ----------------
217    -- PIC_Option --
218    ----------------
219
220    function PIC_Option return String is
221    begin
222       return "";
223    end PIC_Option;
224
225    -----------------------------------------------
226    -- Standalone_Library_Auto_Init_Is_Supported --
227    -----------------------------------------------
228
229    function Standalone_Library_Auto_Init_Is_Supported return Boolean is
230    begin
231       return False;
232    end Standalone_Library_Auto_Init_Is_Supported;
233
234    ---------------------------
235    -- Support_For_Libraries --
236    ---------------------------
237
238    function Support_For_Libraries return Library_Support is
239    begin
240       return None;
241    end Support_For_Libraries;
242
243 end MLib.Tgt;