OSDN Git Service

2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
[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-2003, Ada Core Technologies, Inc.        --
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,  59 Temple Place - Suite 330,  Boston, --
21 -- MA 02111-1307, 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    -- Build_Dynamic_Library --
72    ---------------------------
73
74    procedure Build_Dynamic_Library
75      (Ofiles       : Argument_List;
76       Foreign      : Argument_List;
77       Afiles       : Argument_List;
78       Options      : Argument_List;
79       Interfaces   : Argument_List;
80       Lib_Filename : String;
81       Lib_Dir      : String;
82       Driver_Name  : Name_Id := No_Name;
83       Lib_Address  : String  := "";
84       Lib_Version  : String  := "";
85       Relocatable  : Boolean := False;
86       Auto_Init    : Boolean := False)
87    is
88       pragma Unreferenced (Ofiles);
89       pragma Unreferenced (Foreign);
90       pragma Unreferenced (Afiles);
91       pragma Unreferenced (Options);
92       pragma Unreferenced (Interfaces);
93       pragma Unreferenced (Lib_Filename);
94       pragma Unreferenced (Lib_Dir);
95       pragma Unreferenced (Driver_Name);
96       pragma Unreferenced (Lib_Address);
97       pragma Unreferenced (Lib_Version);
98       pragma Unreferenced (Relocatable);
99       pragma Unreferenced (Auto_Init);
100
101    begin
102       null;
103    end Build_Dynamic_Library;
104
105    -------------------------
106    -- Default_DLL_Address --
107    -------------------------
108
109    function Default_DLL_Address return String is
110    begin
111       return "";
112    end Default_DLL_Address;
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    -- Dynamic_Option --
125    --------------------
126
127    function Dynamic_Option return String is
128    begin
129       return "";
130    end Dynamic_Option;
131
132    -------------------
133    -- Is_Object_Ext --
134    -------------------
135
136    function Is_Object_Ext (Ext : String) return Boolean is
137       pragma Unreferenced (Ext);
138
139    begin
140       return False;
141    end Is_Object_Ext;
142
143    --------------
144    -- Is_C_Ext --
145    --------------
146
147    function Is_C_Ext (Ext : String) return Boolean is
148       pragma Unreferenced (Ext);
149
150    begin
151       return False;
152    end Is_C_Ext;
153
154    --------------------
155    -- Is_Archive_Ext --
156    --------------------
157
158    function Is_Archive_Ext (Ext : String) return Boolean is
159       pragma Unreferenced (Ext);
160
161    begin
162       return False;
163    end Is_Archive_Ext;
164
165    -------------
166    -- Libgnat --
167    -------------
168
169    function Libgnat return String is
170    begin
171       return "libgnat.a";
172    end Libgnat;
173
174    ------------------------
175    -- Library_Exists_For --
176    ------------------------
177
178    function Library_Exists_For (Project : Project_Id) return Boolean is
179       pragma Unreferenced (Project);
180
181    begin
182       return False;
183    end Library_Exists_For;
184
185    ---------------------------
186    -- Library_File_Name_For --
187    ---------------------------
188
189    function Library_File_Name_For (Project : Project_Id) return Name_Id is
190       pragma Unreferenced (Project);
191
192    begin
193       return No_Name;
194    end Library_File_Name_For;
195
196    --------------------------------
197    -- Linker_Library_Path_Option --
198    --------------------------------
199
200    function Linker_Library_Path_Option return String_Access is
201    begin
202       return null;
203    end Linker_Library_Path_Option;
204
205    ----------------
206    -- Object_Ext --
207    ----------------
208
209    function Object_Ext return String is
210    begin
211       return "";
212    end Object_Ext;
213
214    ----------------
215    -- PIC_Option --
216    ----------------
217
218    function PIC_Option return String is
219    begin
220       return "";
221    end PIC_Option;
222
223    -----------------------------------------------
224    -- Standalone_Library_Auto_Init_Is_Supported --
225    -----------------------------------------------
226
227    function Standalone_Library_Auto_Init_Is_Supported return Boolean is
228    begin
229       return False;
230    end Standalone_Library_Auto_Init_Is_Supported;
231
232    ---------------------------
233    -- Support_For_Libraries --
234    ---------------------------
235
236    function Support_For_Libraries return Library_Support is
237    begin
238       return None;
239    end Support_For_Libraries;
240
241 end MLib.Tgt;