i_macos.pas 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by Peter Vreman
  4. This unit implements support information structures for MacOS
  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 MacOS. }
  19. unit i_macos;
  20. interface
  21. uses
  22. systems;
  23. const
  24. system_m68k_macos_info : tsysteminfo =
  25. (
  26. system : system_m68k_Mac;
  27. name : 'Macintosh m68k';
  28. shortname : 'mac';
  29. flags : [];
  30. cpu : cpu_m68k;
  31. short_name : 'MACOS';
  32. unit_env : '';
  33. extradefines : '';
  34. sharedlibext : 'Lib';
  35. staticlibext : 'Lib';
  36. sourceext : '.pp';
  37. pasext : '.pas';
  38. exeext : '';
  39. defext : '';
  40. scriptext : '';
  41. smartext : '.sl';
  42. unitext : '.ppt';
  43. unitlibext : '.ppl';
  44. asmext : '.a';
  45. objext : '.o';
  46. resext : '.res';
  47. resobjext : '.or';
  48. staticlibprefix : '';
  49. sharedlibprefix : '';
  50. Cprefix : '_';
  51. newline : #13;
  52. dirsep : '/';
  53. files_case_relevent : true;
  54. assem : as_m68k_mpw;
  55. assemextern : as_m68k_mpw;
  56. link : ld_m68k_mac;
  57. linkextern : ld_m68k_mac;
  58. ar : ar_m68k_ar;
  59. res : res_none;
  60. script : script_unix;
  61. endian : endian_big;
  62. stackalignment : 2;
  63. maxCrecordalignment : 4;
  64. size_of_longint : 4;
  65. heapsize : 128*1024;
  66. stacksize : 8192;
  67. DllScanSupported:false;
  68. use_function_relative_addresses : false
  69. );
  70. const
  71. system_powerpc_macos_info : tsysteminfo =
  72. (
  73. system : system_powerpc_MACOS;
  74. name : 'MacOs (PowerPC)';
  75. shortname : 'MacOs/PPC';
  76. flags : [];
  77. cpu : cpu_powerpc;
  78. short_name : 'MACOS';
  79. unit_env : '';
  80. extradefines : '';
  81. sharedlibext : 'Lib';
  82. staticlibext : 'Lib';
  83. sourceext : '.pp';
  84. pasext : '.pas';
  85. exeext : '';
  86. defext : '';
  87. scriptext : '';
  88. smartext : '.sl';
  89. unitext : '.ppt';
  90. unitlibext : '.ppl';
  91. asmext : '.a';
  92. objext : '.o';
  93. resext : '.res';
  94. resobjext : '.or';
  95. staticlibprefix : '';
  96. sharedlibprefix : '';
  97. Cprefix : '';
  98. newline : #13;
  99. assem : as_powerpc_mpw;
  100. assemextern : as_powerpc_mpw;
  101. link : ld_powerpc_macos;
  102. linkextern : ld_powerpc_macos;
  103. ar : ar_powerpc_ar;
  104. res : res_powerpc_mpw;
  105. script : script_unix;
  106. endian : endian_big;
  107. stackalignment : 8;
  108. maxCrecordalignment : 32;
  109. size_of_longint : 4;
  110. heapsize : 256*1024;
  111. stacksize : 8192;
  112. DllScanSupported:false;
  113. use_function_relative_addresses : true
  114. );
  115. implementation
  116. initialization
  117. {$ifdef cpu68}
  118. {$ifdef macos}
  119. set_source_info(system_m68k_macos_info);
  120. {$endif macos}
  121. {$endif cpu68}
  122. {$ifdef cpupowerpc}
  123. {$ifdef macos}
  124. set_source_info(system_powerpc_macos_info);
  125. {$endif macos}
  126. {$endif cpupowerpc}
  127. end.
  128. {
  129. $Log$
  130. Revision 1.1 2002-07-26 21:15:38 florian
  131. * rewrote the system handling
  132. }