i_emx.pas 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. {
  2. Copyright (c) 1998-2002 by Peter Vreman
  3. This unit implements support information structures for OS/2 via EMX
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  15. ****************************************************************************
  16. }
  17. { This unit implements support information structures for OS/2 via EMX. }
  18. unit i_emx;
  19. interface
  20. uses
  21. systems;
  22. const
  23. res_emxbind_info : tresinfo =
  24. (
  25. id : res_emxbind;
  26. resbin : 'emxbind';
  27. rescmd : '-b -r $RES $OBJ'
  28. (* Not really used - see TLinkerEMX.SetDefaultInfo in t_emx.pas. *)
  29. );
  30. system_i386_emx_info : tsysteminfo =
  31. (
  32. system : system_i386_EMX;
  33. name : 'OS/2 via EMX';
  34. shortname : 'EMX';
  35. flags : [tf_need_export,tf_use_8_3];
  36. cpu : cpu_i386;
  37. unit_env : 'EMXUNITS';
  38. extradefines : 'OS2';
  39. exeext : '.exe';
  40. defext : '.def';
  41. scriptext : '.cmd';
  42. smartext : '.sl';
  43. unitext : '.ppu';
  44. unitlibext : '.ppl';
  45. asmext : '.s';
  46. objext : '.o';
  47. resext : '.res';
  48. resobjext : '.or';
  49. sharedlibext : '.dll';
  50. staticlibext : '.a';
  51. staticlibprefix : '';
  52. sharedlibprefix : '';
  53. sharedClibext : '.dll';
  54. staticClibext : '.a';
  55. staticClibprefix : '';
  56. sharedClibprefix : '';
  57. Cprefix : '_';
  58. newline : #13#10;
  59. dirsep : '\';
  60. assem : as_i386_as_aout;
  61. assemextern : as_i386_as_aout;
  62. link : nil;
  63. linkextern : nil;
  64. ar : ar_gnu_ar;
  65. res : res_emxbind;
  66. dbg : dbg_stabs;
  67. script : script_dos;
  68. endian : endian_little;
  69. alignment :
  70. (
  71. procalign : 4;
  72. loopalign : 4;
  73. jumpalign : 0;
  74. constalignmin : 0;
  75. constalignmax : 4;
  76. varalignmin : 0;
  77. varalignmax : 4;
  78. localalignmin : 0;
  79. localalignmax : 4;
  80. recordalignmin : 0;
  81. recordalignmax : 2;
  82. maxCrecordalign : 4
  83. );
  84. first_parm_offset : 8;
  85. stacksize : 256*1024;
  86. );
  87. implementation
  88. initialization
  89. {$ifdef CPU86}
  90. {$ifdef EMX}
  91. {$IFNDEF VER1_0}
  92. set_source_info(system_i386_emx_info);
  93. { OS/2 via EMX can be run under DOS as well }
  94. if (OS_Mode=osDOS) or (OS_Mode=osDPMI) then
  95. source_info.scriptext := '.bat';
  96. {$ENDIF VER1_0}
  97. {$endif EMX}
  98. {$endif CPU86}
  99. end.