i_emx.pas 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. {$i fpcdefs.inc}
  20. interface
  21. uses
  22. systems;
  23. const
  24. res_wrc_os2_info : tresinfo =
  25. (
  26. id : res_watcom_wrc_os2;
  27. resbin : '';
  28. rescmd : '';
  29. rcbin : 'wrc';
  30. rccmd : '-r -zm -q -bt=os2 -fo=$RES $RC';
  31. resourcefileclass : nil;
  32. resflags : [res_single_file];
  33. );
  34. system_i386_emx_info : tsysteminfo =
  35. (
  36. system : system_i386_EMX;
  37. name : 'OS/2 via EMX';
  38. shortname : 'EMX';
  39. flags : [tf_need_export,tf_use_8_3];
  40. cpu : cpu_i386;
  41. unit_env : 'EMXUNITS';
  42. extradefines : 'OS2';
  43. exeext : '.exe';
  44. defext : '.def';
  45. scriptext : '.cmd';
  46. smartext : '.sl';
  47. unitext : '.ppu';
  48. unitlibext : '.ppl';
  49. asmext : '.s';
  50. objext : '.o';
  51. resext : '.res';
  52. resobjext : '.or';
  53. sharedlibext : '.dll';
  54. staticlibext : '.a';
  55. staticlibprefix : '';
  56. sharedlibprefix : '';
  57. sharedClibext : '.dll';
  58. staticClibext : '.a';
  59. staticClibprefix : '';
  60. sharedClibprefix : '';
  61. Cprefix : '_';
  62. newline : #13#10;
  63. dirsep : '\';
  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_watcom_wrc_os2;
  70. dbg : dbg_stabs;
  71. script : script_dos;
  72. endian : endian_little;
  73. alignment :
  74. (
  75. procalign : 4;
  76. loopalign : 4;
  77. jumpalign : 0;
  78. constalignmin : 0;
  79. constalignmax : 4;
  80. varalignmin : 0;
  81. varalignmax : 4;
  82. localalignmin : 0;
  83. localalignmax : 4;
  84. recordalignmin : 0;
  85. recordalignmax : 2;
  86. maxCrecordalign : 4
  87. );
  88. first_parm_offset : 8;
  89. stacksize : 256*1024;
  90. abi : abi_default;
  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.