i_emx.pas 4.0 KB

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