OSDN Git Service

2a25aef1ae9a53dfb853ee41091aa1ae5720fe6a
[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 --                            $Revision: 1.2 $
11 --                                                                          --
12 --              Copyright (C) 2001, Ada Core Technologies, Inc.             --
13 --                                                                          --
14 -- GNAT is free software;  you can  redistribute it  and/or modify it under --
15 -- terms of the  GNU General Public License as published  by the Free Soft- --
16 -- ware  Foundation;  either version 2,  or (at your option) any later ver- --
17 -- sion.  GNAT is distributed in the hope that it will be useful, but WITH- --
18 -- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
19 -- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
20 -- for  more details.  You should have  received  a copy of the GNU General --
21 -- Public License  distributed with GNAT;  see file COPYING.  If not, write --
22 -- to  the Free Software Foundation,  59 Temple Place - Suite 330,  Boston, --
23 -- MA 02111-1307, USA.                                                      --
24 --                                                                          --
25 -- GNAT was originally developed  by the GNAT team at  New York University. --
26 -- It is now maintained by Ada Core Technologies Inc (http://www.gnat.com). --
27 --                                                                          --
28 ------------------------------------------------------------------------------
29
30 --  This is the default version which does not support libraries.
31 --  All subprograms are dummies, because they are never called,
32 --  except Libraries_Are_Supported which returns False.
33
34 package body MLib.Tgt is
35
36    -----------------
37    -- Archive_Ext --
38    -----------------
39
40    function Archive_Ext return  String is
41    begin
42       return  "";
43    end Archive_Ext;
44
45    -----------------
46    -- Base_Option --
47    -----------------
48
49    function Base_Option return String is
50    begin
51       return "";
52    end Base_Option;
53
54    ---------------------------
55    -- Build_Dynamic_Library --
56    ---------------------------
57
58    procedure Build_Dynamic_Library
59      (Ofiles       : Argument_List;
60       Foreign      : Argument_List;
61       Afiles       : Argument_List;
62       Options      : Argument_List;
63       Lib_Filename : String;
64       Lib_Dir      : String;
65       Lib_Address  : String  := "";
66       Lib_Version  : String  := "";
67       Relocatable  : Boolean := False)
68    is
69    begin
70       null;
71    end Build_Dynamic_Library;
72
73    --------------------
74    -- Copy_ALI_Files --
75    --------------------
76
77    procedure Copy_ALI_Files
78      (From : Name_Id;
79       To   : Name_Id)
80    is
81    begin
82       null;
83    end Copy_ALI_Files;
84
85    -------------------------
86    -- Default_DLL_Address --
87    -------------------------
88
89    function Default_DLL_Address return String is
90    begin
91       return "";
92    end Default_DLL_Address;
93
94    -------------
95    -- DLL_Ext --
96    -------------
97
98    function DLL_Ext return String is
99    begin
100       return  "";
101    end DLL_Ext;
102
103    --------------------
104    -- Dynamic_Option --
105    --------------------
106
107    function Dynamic_Option return String is
108    begin
109       return  "";
110    end Dynamic_Option;
111
112    -------------------
113    -- Is_Object_Ext --
114    -------------------
115
116    function Is_Object_Ext (Ext : String) return Boolean is
117    begin
118       return False;
119    end Is_Object_Ext;
120
121    --------------
122    -- Is_C_Ext --
123    --------------
124
125    function Is_C_Ext (Ext : String) return Boolean is
126    begin
127       return False;
128    end Is_C_Ext;
129
130    --------------------
131    -- Is_Archive_Ext --
132    --------------------
133
134    function Is_Archive_Ext (Ext : String) return Boolean is
135    begin
136       return False;
137    end Is_Archive_Ext;
138
139    -------------
140    -- Libgnat --
141    -------------
142
143    function Libgnat return String is
144    begin
145       return "libgnat.a";
146    end Libgnat;
147
148    -----------------------------
149    -- Libraries_Are_Supported --
150    -----------------------------
151
152    function Libraries_Are_Supported return Boolean is
153    begin
154       return False;
155    end Libraries_Are_Supported;
156
157    --------------------------------
158    -- Linker_Library_Path_Option --
159    --------------------------------
160
161    function Linker_Library_Path_Option
162      (Directory : String)
163       return      String_Access
164    is
165    begin
166       return null;
167    end Linker_Library_Path_Option;
168
169    ----------------
170    -- Object_Ext --
171    ----------------
172
173    function Object_Ext return String is
174    begin
175       return  "";
176    end Object_Ext;
177
178    ----------------
179    -- PIC_Option --
180    ----------------
181
182    function PIC_Option return String is
183    begin
184       return  "";
185    end PIC_Option;
186
187 end MLib.Tgt;