2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / ada / mlib-tgt.adb
blobd8e280a706cd08d34f4cfc070297eb43b65ae242
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 ------------------------------------------------------------------------------
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.
32 package body MLib.Tgt is
34 ---------------------
35 -- Archive_Builder --
36 ---------------------
38 function Archive_Builder return String is
39 begin
40 return "ar";
41 end Archive_Builder;
43 -----------------------------
44 -- Archive_Builder_Options --
45 -----------------------------
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;
52 -----------------
53 -- Archive_Ext --
54 -----------------
56 function Archive_Ext return String is
57 begin
58 return "";
59 end Archive_Ext;
61 ---------------------
62 -- Archive_Indexer --
63 ---------------------
65 function Archive_Indexer return String is
66 begin
67 return "ranlib";
68 end Archive_Indexer;
70 ---------------------------
71 -- Build_Dynamic_Library --
72 ---------------------------
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 Symbol_Data : Symbol_Record;
83 Driver_Name : Name_Id := No_Name;
84 Lib_Address : String := "";
85 Lib_Version : String := "";
86 Relocatable : Boolean := False;
87 Auto_Init : Boolean := False)
89 pragma Unreferenced (Ofiles);
90 pragma Unreferenced (Foreign);
91 pragma Unreferenced (Afiles);
92 pragma Unreferenced (Options);
93 pragma Unreferenced (Interfaces);
94 pragma Unreferenced (Lib_Filename);
95 pragma Unreferenced (Lib_Dir);
96 pragma Unreferenced (Symbol_Data);
97 pragma Unreferenced (Driver_Name);
98 pragma Unreferenced (Lib_Address);
99 pragma Unreferenced (Lib_Version);
100 pragma Unreferenced (Relocatable);
101 pragma Unreferenced (Auto_Init);
103 begin
104 null;
105 end Build_Dynamic_Library;
107 -------------------------
108 -- Default_DLL_Address --
109 -------------------------
111 function Default_DLL_Address return String is
112 begin
113 return "";
114 end Default_DLL_Address;
116 -------------
117 -- DLL_Ext --
118 -------------
120 function DLL_Ext return String is
121 begin
122 return "";
123 end DLL_Ext;
125 --------------------
126 -- Dynamic_Option --
127 --------------------
129 function Dynamic_Option return String is
130 begin
131 return "";
132 end Dynamic_Option;
134 -------------------
135 -- Is_Object_Ext --
136 -------------------
138 function Is_Object_Ext (Ext : String) return Boolean is
139 pragma Unreferenced (Ext);
141 begin
142 return False;
143 end Is_Object_Ext;
145 --------------
146 -- Is_C_Ext --
147 --------------
149 function Is_C_Ext (Ext : String) return Boolean is
150 pragma Unreferenced (Ext);
152 begin
153 return False;
154 end Is_C_Ext;
156 --------------------
157 -- Is_Archive_Ext --
158 --------------------
160 function Is_Archive_Ext (Ext : String) return Boolean is
161 pragma Unreferenced (Ext);
163 begin
164 return False;
165 end Is_Archive_Ext;
167 -------------
168 -- Libgnat --
169 -------------
171 function Libgnat return String is
172 begin
173 return "libgnat.a";
174 end Libgnat;
176 ------------------------
177 -- Library_Exists_For --
178 ------------------------
180 function Library_Exists_For (Project : Project_Id) return Boolean is
181 pragma Unreferenced (Project);
183 begin
184 return False;
185 end Library_Exists_For;
187 ---------------------------
188 -- Library_File_Name_For --
189 ---------------------------
191 function Library_File_Name_For (Project : Project_Id) return Name_Id is
192 pragma Unreferenced (Project);
194 begin
195 return No_Name;
196 end Library_File_Name_For;
198 --------------------------------
199 -- Linker_Library_Path_Option --
200 --------------------------------
202 function Linker_Library_Path_Option return String_Access is
203 begin
204 return null;
205 end Linker_Library_Path_Option;
207 ----------------
208 -- Object_Ext --
209 ----------------
211 function Object_Ext return String is
212 begin
213 return "";
214 end Object_Ext;
216 ----------------
217 -- PIC_Option --
218 ----------------
220 function PIC_Option return String is
221 begin
222 return "";
223 end PIC_Option;
225 -----------------------------------------------
226 -- Standalone_Library_Auto_Init_Is_Supported --
227 -----------------------------------------------
229 function Standalone_Library_Auto_Init_Is_Supported return Boolean is
230 begin
231 return False;
232 end Standalone_Library_Auto_Init_Is_Supported;
234 ---------------------------
235 -- Support_For_Libraries --
236 ---------------------------
238 function Support_For_Libraries return Library_Support is
239 begin
240 return None;
241 end Support_For_Libraries;
243 end MLib.Tgt;