i_emx.pas 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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_wrc_os2_info : tresinfo =
  24. (
  25. id : res_watcom_wrc_os2;
  26. resbin : '';
  27. rescmd : '';
  28. rcbin : 'wrc';
  29. rccmd : '-r -zm -q -bt=os2 -fo=$RES $RC';
  30. resourcefileclass : nil;
  31. resflags : [res_single_file];
  32. );
  33. system_i386_emx_info : tsysteminfo =
  34. (
  35. system : system_i386_EMX;
  36. name : 'OS/2 via EMX';
  37. shortname : 'EMX';
  38. flags : [tf_need_export,tf_use_8_3];
  39. cpu : cpu_i386;
  40. unit_env : 'EMXUNITS';
  41. extradefines : 'OS2';
  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. assem : as_i386_as_aout;
  64. assemextern : as_i386_as_aout;
  65. link : nil;
  66. linkextern : nil;
  67. ar : ar_gnu_ar;
  68. res : res_watcom_wrc_os2;
  69. dbg : dbg_stabs;
  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. );
  90. implementation
  91. initialization
  92. {$ifdef CPU86}
  93. {$ifdef EMX}
  94. {$IFNDEF VER1_0}
  95. set_source_info(system_i386_emx_info);
  96. { OS/2 via EMX can be run under DOS as well }
  97. if (OS_Mode=osDOS) or (OS_Mode=osDPMI) then
  98. source_info.scriptext := '.bat';
  99. {$ENDIF VER1_0}
  100. {$endif EMX}
  101. {$endif CPU86}
  102. end.