t_macos.pas 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. {
  2. $Id$
  3. Copyright (c) 2001 by Peter Vreman
  4. This unit implements support import,export,link routines
  5. for the (i386) Amiga target
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program; if not, write to the Free Software
  16. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17. ****************************************************************************
  18. }
  19. unit t_macos;
  20. {$i defines.inc}
  21. interface
  22. implementation
  23. uses
  24. link,
  25. cutils,cclasses,
  26. globtype,globals,systems,verbose,script,fmodule;
  27. {*****************************************************************************
  28. Initialize
  29. *****************************************************************************}
  30. {$ifdef m68k}
  31. const
  32. target_m68k_macos_info : ttargetinfo =
  33. (
  34. target : target_m68k_Mac;
  35. name : 'Macintosh m68k';
  36. shortname : 'mac';
  37. flags : [];
  38. cpu : m68k;
  39. short_name : 'MACOS';
  40. unit_env : '';
  41. extradefines : '';
  42. sharedlibext : 'Lib';
  43. staticlibext : 'Lib';
  44. sourceext : '.pp';
  45. pasext : '.pas';
  46. exeext : '';
  47. defext : '';
  48. scriptext : '';
  49. smartext : '.sl';
  50. unitext : '.ppt';
  51. unitlibext : '.ppl';
  52. asmext : '.a';
  53. objext : '.o';
  54. resext : '.res';
  55. resobjext : '.or';
  56. staticlibprefix : '';
  57. sharedlibprefix : '';
  58. Cprefix : '_';
  59. newline : #13;
  60. dirsep : '/';
  61. files_case_relevent : true;
  62. assem : as_m68k_mpw;
  63. assemextern : as_m68k_mpw;
  64. link : ld_m68k_mac;
  65. linkextern : ld_m68k_mac;
  66. ar : ar_m68k_ar;
  67. res : res_none;
  68. script : script_unix;
  69. endian : endian_big;
  70. stackalignment : 2;
  71. maxCrecordalignment : 4;
  72. size_of_pointer : 4;
  73. size_of_longint : 4;
  74. heapsize : 128*1024;
  75. maxheapsize : 32768*1024;
  76. stacksize : 8192;
  77. DllScanSupported:false;
  78. use_bound_instruction : false;
  79. use_function_relative_addresses : false
  80. );
  81. {$endif m68k}
  82. {$ifdef powerpc}
  83. const
  84. target_powerpc_macos_info : ttargetinfo =
  85. (
  86. target : target_powerpc_MACOS;
  87. name : 'MacOs (PowerPC)';
  88. shortname : 'MacOs/PPC';
  89. flags : [];
  90. cpu : powerpc;
  91. short_name : 'MACOS';
  92. unit_env : '';
  93. extradefines : '';
  94. sharedlibext : 'Lib';
  95. staticlibext : 'Lib';
  96. sourceext : '.pp';
  97. pasext : '.pas';
  98. exeext : '';
  99. defext : '';
  100. scriptext : '';
  101. smartext : '.sl';
  102. unitext : '.ppt';
  103. unitlibext : '.ppl';
  104. asmext : '.a';
  105. objext : '.o';
  106. resext : '.res';
  107. resobjext : '.or';
  108. staticlibprefix : '';
  109. sharedlibprefix : '';
  110. Cprefix : '';
  111. newline : #13;
  112. assem : as_powerpc_mpw;
  113. assemextern : as_powerpc_mpw;
  114. link : ld_powerpc_macos;
  115. linkextern : ld_powerpc_macos;
  116. ar : ar_powerpc_ar;
  117. res : res_powerpc_mpw;
  118. script : script_unix;
  119. endian : endian_big;
  120. stackalignment : 8;
  121. maxCrecordalignment : 32;
  122. size_of_pointer : 4;
  123. size_of_longint : 4;
  124. heapsize : 256*1024;
  125. maxheapsize : 32768*1024;
  126. stacksize : 8192;
  127. DllScanSupported:false;
  128. use_bound_instruction : false;
  129. use_function_relative_addresses : true
  130. );
  131. {$endif powerpc}
  132. initialization
  133. {$ifdef m68k}
  134. RegisterTarget(target_m68k_macos_info);
  135. {$endif m68k}
  136. {$ifdef powerpc}
  137. RegisterTarget(target_powerpc_macos_info);
  138. {$endif powerpc}
  139. end.
  140. {
  141. $Log$
  142. Revision 1.5 2001-09-17 21:29:16 peter
  143. * merged netbsd, fpu-overflow from fixes branch
  144. Revision 1.4 2001/08/07 18:47:15 peter
  145. * merged netbsd start
  146. * profile for win32
  147. Revision 1.3 2001/06/03 15:15:32 peter
  148. * dllprt0 stub for linux shared libs
  149. * pass -init and -fini for linux shared libs
  150. * libprefix splitted into staticlibprefix and sharedlibprefix
  151. Revision 1.2 2001/06/02 19:22:44 peter
  152. * extradefines field added
  153. Revision 1.1 2001/04/18 22:02:04 peter
  154. * registration of targets and assemblers
  155. }