Ver código fonte

+ platform extensions unified

Tomas Hajny 22 anos atrás
pai
commit
8fd8093dff

+ 5 - 2
compiler/systems/i_amiga.pas

@@ -45,7 +45,7 @@ unit i_amiga;
             smartext     : '.sl';
             smartext     : '.sl';
             unitext      : '.ppu';
             unitext      : '.ppu';
             unitlibext   : '.ppl';
             unitlibext   : '.ppl';
-            asmext       : '.asm';
+            asmext       : '.s';
             objext       : '.o';
             objext       : '.o';
             resext       : '.res';
             resext       : '.res';
             resobjext    : '.or';
             resobjext    : '.or';
@@ -103,7 +103,10 @@ initialization
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2003-02-02 19:25:54  carl
+  Revision 1.3  2003-03-23 23:31:54  hajny
+    + platform extensions unified
+
+  Revision 1.2  2003/02/02 19:25:54  carl
     * Several bugfixes for m68k target (register alloc., opcode emission)
     * Several bugfixes for m68k target (register alloc., opcode emission)
     + VIS target
     + VIS target
     + Generic add more complete (still not verified)
     + Generic add more complete (still not verified)

+ 5 - 2
compiler/systems/i_atari.pas

@@ -46,7 +46,7 @@ unit i_atari;
             defext       : '';
             defext       : '';
             scriptext    : '';
             scriptext    : '';
             smartext     : '.sl';
             smartext     : '.sl';
-            unitext      : '.ppt';
+            unitext      : '.ppu';
             unitlibext   : '.ppl';
             unitlibext   : '.ppl';
             asmext       : '.s';
             asmext       : '.s';
             objext       : '.o';
             objext       : '.o';
@@ -85,7 +85,10 @@ initialization
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.1  2002-09-06 15:03:51  carl
+  Revision 1.2  2003-03-23 23:31:54  hajny
+    + platform extensions unified
+
+  Revision 1.1  2002/09/06 15:03:51  carl
     * moved files to systems directory
     * moved files to systems directory
 
 
   Revision 1.3  2002/08/13 18:01:51  carl
   Revision 1.3  2002/08/13 18:01:51  carl

+ 6 - 3
compiler/systems/i_nwm.pas

@@ -43,10 +43,10 @@ unit i_nwm;
             defext       : '.def';
             defext       : '.def';
             scriptext    : '.sh';
             scriptext    : '.sh';
             smartext     : '.sl';
             smartext     : '.sl';
-            unitext      : '.ppn';
+            unitext      : '.ppu';
             unitlibext   : '.ppl';
             unitlibext   : '.ppl';
             asmext       : '.s';
             asmext       : '.s';
-            objext       : '.on';
+            objext       : '.o';
             resext       : '.res';
             resext       : '.res';
             resobjext    : '.or';
             resobjext    : '.or';
             sharedlibext : '.nlm';
             sharedlibext : '.nlm';
@@ -103,7 +103,10 @@ initialization
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.1  2002-09-06 15:03:51  carl
+  Revision 1.2  2003-03-23 23:32:33  hajny
+    + platform extensions unified
+
+  Revision 1.1  2002/09/06 15:03:51  carl
     * moved files to systems directory
     * moved files to systems directory
 
 
   Revision 1.2  2002/08/12 15:08:39  carl
   Revision 1.2  2002/08/12 15:08:39  carl

+ 18 - 13
compiler/systems/i_os2.pas

@@ -39,7 +39,7 @@ unit i_os2;
        system_i386_os2_info : tsysteminfo =
        system_i386_os2_info : tsysteminfo =
           (
           (
             system       : system_i386_OS2;
             system       : system_i386_OS2;
-            name         : 'OS/2 via EMX';
+            name         : 'OS/2';
             shortname    : 'OS2';
             shortname    : 'OS2';
             flags        : [tf_need_export];
             flags        : [tf_need_export];
             cpu          : cpu_i386;
             cpu          : cpu_i386;
@@ -51,17 +51,17 @@ unit i_os2;
             defext       : '.def';
             defext       : '.def';
             scriptext    : '.cmd';
             scriptext    : '.cmd';
             smartext     : '.sl';
             smartext     : '.sl';
-            unitext      : '.ppo';
+            unitext      : '.ppu';
             unitlibext   : '.ppl';
             unitlibext   : '.ppl';
-            asmext       : '.so2';
-            objext       : '.oo2';
+            asmext       : '.s';
+            objext       : '.o';
             resext       : '.res';
             resext       : '.res';
-            resobjext    : '.oor';
-            sharedlibext : '.ao2';
-            staticlibext : '.ao2';
+            resobjext    : '.or';
+            sharedlibext : '.dll';
+            staticlibext : '.a';
             staticlibprefix : '';
             staticlibprefix : '';
             sharedlibprefix : '';
             sharedlibprefix : '';
-            sharedClibext : 'dll';
+            sharedClibext : '.dll';
             staticClibext : '.a';
             staticClibext : '.a';
             staticClibprefix : '';
             staticClibprefix : '';
             sharedClibprefix : '';
             sharedClibprefix : '';
@@ -106,16 +106,21 @@ unit i_os2;
 initialization
 initialization
 {$ifdef CPU86}
 {$ifdef CPU86}
   {$ifdef os2}
   {$ifdef os2}
-    set_source_info(system_i386_os2_info);
-    { OS/2 via EMX can be run under DOS as well }
-    if (OS_Mode=osDOS) or (OS_Mode=osDPMI) then
-      source_info.scriptext := '.bat';
+    {$IFNDEF EMX}
+      set_source_info(system_i386_os2_info);
+    {$ENDIF EMX}
+    {$IFDEF VER1_0}
+      set_source_info(system_i386_os2_info);
+    {$ENDIF VER1_0}
   {$endif os2}
   {$endif os2}
 {$endif CPU86}
 {$endif CPU86}
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.1  2002-09-06 15:03:51  carl
+  Revision 1.2  2003-03-23 23:31:54  hajny
+    + platform extensions unified
+
+  Revision 1.1  2002/09/06 15:03:51  carl
     * moved files to systems directory
     * moved files to systems directory
 
 
   Revision 1.2  2002/08/12 15:08:39  carl
   Revision 1.2  2002/08/12 15:08:39  carl

+ 11 - 8
compiler/systems/i_wdosx.pas

@@ -42,16 +42,16 @@ unit i_wdosx;
             exeext       : '.exe';
             exeext       : '.exe';
             defext       : '.def';
             defext       : '.def';
             scriptext    : '.bat';
             scriptext    : '.bat';
-            smartext     : '.sld';
-            unitext      : '.ppd';
+            smartext     : '.sl';
+            unitext      : '.ppu';
             unitlibext   : '.ppl';
             unitlibext   : '.ppl';
-            asmext       : '.sd';
-            objext       : '.od';
+            asmext       : '.s';
+            objext       : '.o';
             resext       : '.rc';
             resext       : '.rc';
-            resobjext    : '.odr';
+            resobjext    : '.or';
             sharedlibext : '.dll';
             sharedlibext : '.dll';
-            staticlibext : '.ad';
-            staticlibprefix : 'libp';
+            staticlibext : '.a';
+            staticlibprefix : '';
             sharedlibprefix : '';
             sharedlibprefix : '';
             sharedClibext : '.dll';
             sharedClibext : '.dll';
             staticClibext : '.a';
             staticClibext : '.a';
@@ -105,7 +105,10 @@ initialization
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2002-09-07 15:25:15  peter
+  Revision 1.3  2003-03-23 23:31:54  hajny
+    + platform extensions unified
+
+  Revision 1.2  2002/09/07 15:25:15  peter
     * old logs removed and tabs fixed
     * old logs removed and tabs fixed
 
 
   Revision 1.1  2002/09/06 15:03:51  carl
   Revision 1.1  2002/09/06 15:03:51  carl

+ 10 - 7
compiler/systems/i_win32.pas

@@ -57,15 +57,15 @@ unit i_win32;
             exeext       : '.exe';
             exeext       : '.exe';
             defext       : '.def';
             defext       : '.def';
             scriptext    : '.bat';
             scriptext    : '.bat';
-            smartext     : '.slw';
-            unitext      : '.ppw';
+            smartext     : '.sl';
+            unitext      : '.ppu';
             unitlibext   : '.ppl';
             unitlibext   : '.ppl';
-            asmext       : '.sw';
-            objext       : '.ow';
+            asmext       : '.s';
+            objext       : '.o';
             resext       : '.rc';
             resext       : '.rc';
-            resobjext    : '.owr';
+            resobjext    : '.or';
             sharedlibext : '.dll';
             sharedlibext : '.dll';
-            staticlibext : '.aw';
+            staticlibext : '.a';
             staticlibprefix : 'libp';
             staticlibprefix : 'libp';
             sharedlibprefix : '';
             sharedlibprefix : '';
             sharedClibext : '.dll';
             sharedClibext : '.dll';
@@ -120,7 +120,10 @@ initialization
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2002-09-07 15:25:15  peter
+  Revision 1.3  2003-03-23 23:31:54  hajny
+    + platform extensions unified
+
+  Revision 1.2  2002/09/07 15:25:15  peter
     * old logs removed and tabs fixed
     * old logs removed and tabs fixed
 
 
   Revision 1.1  2002/09/06 15:03:51  carl
   Revision 1.1  2002/09/06 15:03:51  carl

+ 6 - 3
compiler/systems/t_os2.pas

@@ -277,7 +277,7 @@ const   ar_magic:array[1..8] of char='!<arch>'#10;
 var
 var
   libname : string;
   libname : string;
 begin
 begin
-    libname:=FixFileName(s+'.ao2');
+    libname:=FixFileName(S + Target_Info.StaticCLibExt);
     seq_no:=1;
     seq_no:=1;
     current_module.linkotherstaticlibs.add(libname,link_allways);
     current_module.linkotherstaticlibs.add(libname,link_allways);
     assign(out_file,current_module.outputpath^+libname);
     assign(out_file,current_module.outputpath^+libname);
@@ -511,12 +511,15 @@ end;
 initialization
 initialization
   RegisterExternalLinker(system_i386_os2_info,TLinkerOS2);
   RegisterExternalLinker(system_i386_os2_info,TLinkerOS2);
   RegisterImport(system_i386_os2,TImportLibOS2);
   RegisterImport(system_i386_os2,TImportLibOS2);
-  RegisterRes(res_emxbind_info);
+{  RegisterRes(res_emxbind_info);}
   RegisterTarget(system_i386_os2_info);
   RegisterTarget(system_i386_os2_info);
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.4  2003-03-17 13:36:39  peter
+  Revision 1.5  2003-03-23 23:31:54  hajny
+    + platform extensions unified
+
+  Revision 1.4  2003/03/17 13:36:39  peter
     * fix import linking under linux
     * fix import linking under linux
 
 
   Revision 1.3  2002/12/01 16:19:16  carl
   Revision 1.3  2002/12/01 16:19:16  carl