1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
6 -- (Default Version) --
12 -- Copyright (C) 2001, Ada Core Technologies, Inc. --
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. --
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). --
28 ------------------------------------------------------------------------------
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.
34 package body MLib
.Tgt
is
40 function Archive_Ext
return String is
49 function Base_Option
return String is
54 ---------------------------
55 -- Build_Dynamic_Library --
56 ---------------------------
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;
65 Lib_Address
: String := "";
66 Lib_Version
: String := "";
67 Relocatable
: Boolean := False)
71 end Build_Dynamic_Library
;
77 procedure Copy_ALI_Files
85 -------------------------
86 -- Default_DLL_Address --
87 -------------------------
89 function Default_DLL_Address
return String is
92 end Default_DLL_Address
;
98 function DLL_Ext
return String is
107 function Dynamic_Option
return String is
116 function Is_Object_Ext
(Ext
: String) return Boolean is
125 function Is_C_Ext
(Ext
: String) return Boolean is
134 function Is_Archive_Ext
(Ext
: String) return Boolean is
143 function Libgnat
return String is
148 -----------------------------
149 -- Libraries_Are_Supported --
150 -----------------------------
152 function Libraries_Are_Supported
return Boolean is
155 end Libraries_Are_Supported
;
157 --------------------------------
158 -- Linker_Library_Path_Option --
159 --------------------------------
161 function Linker_Library_Path_Option
167 end Linker_Library_Path_Option
;
173 function Object_Ext
return String is
182 function PIC_Option
return String is