fpccfg.inc 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. {$ifdef Delphi}
  2. const DefaultConfig : array[0..26] of string[240]=(
  3. {$else Delphi}
  4. const DefaultConfig : array[0..26,1..240] of char=(
  5. {$endif Delphi}
  6. '#'#013#010+
  7. '# Config file generated by fpcmkcfg on %BUILDDATE% - %BUILDTIME%'#013#010+
  8. '# Example fpc.cfg for Free Pascal Compiler'#013#010+
  9. '#'#013#010+
  10. #013#010+
  11. '# ----------------------'#013#010+
  12. '# Defines (preprocessor)'#013#010+
  13. '# ----------------------'#013#010+
  14. #013#010+
  15. '#'#013#010+
  16. '# nested #IFNDEF, #IFDEF, #ENDIF, #ELSE',', #DEFINE, #UNDEF are allowed'+
  17. #013#010+
  18. '#'#013#010+
  19. '# -d is the same as #DEFINE'#013#010+
  20. '# -u is the same as #UNDEF'#013#010+
  21. '#'#013#010+
  22. #013#010+
  23. '#'#013#010+
  24. '# Some examples (for switches see below, and the -? helppages)'#013#010+
  25. '#'#013#010+
  26. '# Try compiling with the -dRELEASE or -dDEBUG on the commandline'#013#010+
  27. '#'#013#010+
  28. #013#010+
  29. '# F','or a release compile with optimizes and strip debuginfo'#013#010+
  30. '#IFDEF RELEASE'#013#010+
  31. ' -O2'#013#010+
  32. ' -Xs'#013#010+
  33. ' #WRITE Compiling Release Version'#013#010+
  34. '#ENDIF'#013#010+
  35. #013#010+
  36. '# For a debug version compile with debuginfo and all codegeneration ch'+
  37. 'ecks on'#013#010+
  38. '#IFDEF DEBUG'#013#010+
  39. ' -gl'#013#010+
  40. ' -Crto','i'#013#010+
  41. ' #WRITE Compiling Debug Version'#013#010+
  42. '#ENDIF'#013#010+
  43. #013#010+
  44. '# assembling'#013#010+
  45. '#ifdef darwin'#013#010+
  46. '# use pipes instead of temporary files for assembling'#013#010+
  47. '-ap'#013#010+
  48. '#endif'#013#010+
  49. #013#010+
  50. '# ----------------'#013#010+
  51. '# Parsing switches'#013#010+
  52. '# ----------------'#013#010+
  53. #013#010+
  54. '# Pascal language mode'#013#010+
  55. '# -','Mfpc free pascal dialect (default)'#013#010+
  56. '# -Mobjfpc switch some Delphi 2 extensions on'#013#010+
  57. '# -Mdelphi tries to be Delphi compatible'#013#010+
  58. '# -Mtp tries to be TP/BP 7.0 compatible'#013#010+
  59. '# -Mgpc tries to be gpc compatible',#013#010+
  60. '# -Mmacpas tries to be compatible to the macintosh pascal diale'+
  61. 'cts'#013#010+
  62. '#'#013#010+
  63. '# Turn on Object Pascal extensions by default'#013#010+
  64. '#-Mobjfpc'#013#010+
  65. #013#010+
  66. '# Assembler reader mode'#013#010+
  67. '# -Rdefault use default assembler'#013#010+
  68. '# -Ratt read AT&T style ','assembler'#013#010+
  69. '# -Rintel read Intel style assembler'#013#010+
  70. '#'#013#010+
  71. '# All assembler blocks are AT&T styled by default'#013#010+
  72. '#-Ratt'#013#010+
  73. #013#010+
  74. '# Semantic checking'#013#010+
  75. '# -S2 same as -Mobjfpc'#013#010+
  76. '# -Sc supports operators like C (*=,+=,/= and -=)'#013,#010+
  77. '# -Sa include assertion code.'#013#010+
  78. '# -Sd same as -Mdelphi'#013#010+
  79. '# -Se<x> error options. <x> is a combination of the following'+
  80. ':'#013#010+
  81. '# <n> : compiler stops after <n> errors (default is 1)'#013#010+
  82. '# w : compile','r stops also after warnings'#013#010+
  83. '# n : compiler stops also after notes'#013#010+
  84. '# h : compiler stops also after hints'#013#010+
  85. '# -Sg allow LABEL and GOTO'#013#010+
  86. '# -Sh Use ansistrings'#013#010+
  87. '# -Si support C++ styled I','NLINE'#013#010+
  88. '# -Sk load fpcylix unit'#013#010+
  89. '# -SI<x> set interface style to <x>'#013#010+
  90. '# -SIcom COM compatible interface (default)'#013#010+
  91. '# -SIcorba CORBA compatible interface'#013#010+
  92. '# -Sm support macros like C (globa','l)'#013#010+
  93. '# -So same as -Mtp'#013#010+
  94. '# -Sp same as -Mgpc'#013#010+
  95. '# -Ss constructor name must be init (destructor must be do'+
  96. 'ne)'#013#010+
  97. '# -Sx enable exception keywords (default in Delphi/ObjFPC '+
  98. 'modes)'#013#010+
  99. '#'#013#010+
  100. '# Allow goto, i','nline, C-operators, C-vars'#013#010+
  101. '-Sgic'#013#010+
  102. #013#010+
  103. '# ---------------'#013#010+
  104. '# Code generation'#013#010+
  105. '# ---------------'#013#010+
  106. #013#010+
  107. '# Uncomment the next line if you always want static/dynamic units by d'+
  108. 'efault'#013#010+
  109. '# (can be overruled with -CD, -CS at the commandline)'#013#010+
  110. '#-CS'#013#010+
  111. '#-CD'#013,#010+
  112. #013#010+
  113. '# Set the default heapsize to 8Mb'#013#010+
  114. '#-Ch8000000'#013#010+
  115. #013#010+
  116. '# Set default codegeneration checks (iocheck, overflow, range, stack)'#013+
  117. #010+
  118. '#-Ci'#013#010+
  119. '#-Co'#013#010+
  120. '#-Cr'#013#010+
  121. '#-Ct'#013#010+
  122. #013#010+
  123. '# Optimizer switches'#013#010+
  124. '# -Os generate smaller code'#013#010+
  125. '# -Oa=N set alignment to N'#013,#010+
  126. '# -O1 level 1 optimizations (quick optimizations, debuggable)'#013+
  127. #010+
  128. '# -O2 level 2 optimizations (-O1 + optimizations which make deb'+
  129. 'ugging more difficult)'#013#010+
  130. '# -O3 level 3 optimizations (-O2 + optimizations which also may'+
  131. ' make',' the program slower rather than faster)'#013#010+
  132. '# -Oo<x> switch on optimalization x. See fpc -i for possible value'+
  133. 's'#013#010+
  134. '# -OoNO<x> switch off optimalization x. See fpc -i for possible valu'+
  135. 'es'#013#010+
  136. '# -Op<x> set target cpu for optimizing, see fpc ','-i for possible '+
  137. 'values'#013#010+
  138. #013#010+
  139. '#ifdef darwin'#013#010+
  140. '#ifdef cpui386'#013#010+
  141. '-Cppentiumm'#013#010+
  142. '-Oppentiumm'#013#010+
  143. '#endif'#013#010+
  144. '#endif'#013#010+
  145. #013#010+
  146. '# -----------------------'#013#010+
  147. '# Set Filenames and Paths'#013#010+
  148. '# -----------------------'#013#010+
  149. #013#010+
  150. '# Both slashes and backslashes are allowed in paths'#013#010+
  151. #013#010+
  152. '#',' path to the messagefile, not necessary anymore but can be used to '+
  153. 'override'#013#010+
  154. '# the default language'#013#010+
  155. '#-Fr%basepath%/msg/errore.msg'#013#010+
  156. '#-Fr%basepath%/msg/errorn.msg'#013#010+
  157. '#-Fr%basepath%/msg/errores.msg'#013#010+
  158. '#-Fr%basepath%/msg/errord.msg'#013#010+
  159. '#-Fr%basepath%','/msg/errorr.msg'#013#010+
  160. #013#010+
  161. '# searchpath for units and other system dependent things'#013#010+
  162. '-Fu%basepath%/units/$fpctarget'#013#010+
  163. '-Fu%basepath%/units/$fpctarget/*'#013#010+
  164. '-Fu%basepath%/units/$fpctarget/rtl'#013#010+
  165. #013#010+
  166. '#IFDEF FPCAPACHE_1_3'#013#010+
  167. '-Fu%basepath%/units/$fpctarget/httpd1','3/'#013#010+
  168. '#ELSE'#013#010+
  169. '#IFDEF FPCAPACHE_2_0'#013#010+
  170. '-Fu%basepath%/units/$fpctarget/httpd20'#013#010+
  171. '#ELSE'#013#010+
  172. '-Fu%basepath%/units/$fpctarget/httpd22'#013#010+
  173. '#ENDIF'#013#010+
  174. '#ENDIF'#013#010+
  175. #013#010+
  176. '# searchpath for fppkg user-specific packages'#013#010+
  177. '-Fu%localbasepath%/units/$FPCTARGET/*'#013#010+
  178. #013#010+
  179. '# path to the ','gcclib'#013#010+
  180. '%gcclibpath%'#013#010+
  181. #013#010+
  182. '# searchpath for libraries'#013#010+
  183. '#-Fl%basepath%/lib'#013#010+
  184. '#-Fl/lib;/usr/lib'#013#010+
  185. #013#010+
  186. '# searchpath for tools'#013#010+
  187. '-FD%basepath%/bin/$FPCTARGET'#013#010+
  188. #013#010+
  189. '%NEEDCROSSBINUTILSIFDEF%'#013#010+
  190. #013#010+
  191. '# binutils prefix for cross compiling'#013#010+
  192. '#IFDEF FPC_CROSSCOMPILIN','G'#013#010+
  193. '#IFDEF NEEDCROSSBINUTILS'#013#010+
  194. ' -XP$FPCTARGET-'#013#010+
  195. '#ENDIF'#013#010+
  196. '#ENDIF'#013#010+
  197. #013#010+
  198. #013#010+
  199. '# -------------'#013#010+
  200. '# Linking'#013#010+
  201. '# -------------'#013#010+
  202. #013#010+
  203. '# generate always debugging information for GDB (slows down the compil'+
  204. 'ing'#013#010+
  205. '# process)'#013#010+
  206. '# -gc generate checks for p','ointers'#013#010+
  207. '# -gd use dbx'#013#010+
  208. '# -gg use gsym'#013#010+
  209. '# -gh use heap trace unit (for memory leak debugging)'#013#010+
  210. '# -gl use line info unit to show more info for backtraces'#013+
  211. #010+
  212. '# -gv generates programs t','racable with valgrind'#013#010+
  213. '# -gw generate dwarf debugging info'#013#010+
  214. '#'#013#010+
  215. '# Enable debuginfo and use the line info unit by default'#013#010+
  216. '#-gl'#013#010+
  217. #013#010+
  218. '# always pass an option to the linker'#013#010+
  219. '#-k-s'#013#010+
  220. #013#010+
  221. '# Always strip debuginfo from the executable'#013#010+
  222. '-Xs'#013#010,
  223. #013#010+
  224. #013#010+
  225. '# -------------'#013#010+
  226. '# Miscellaneous'#013#010+
  227. '# -------------'#013#010+
  228. #013#010+
  229. '# Write always a nice FPC logo ;)'#013#010+
  230. '-l'#013#010+
  231. #013#010+
  232. '# Verbosity'#013#010+
  233. '# e : Show errors (default) d : Show debug info'#013#010+
  234. '# w : Show warnings u : Show unit info'#013#010+
  235. '# n :',' Show notes t : Show tried/used files'#013+
  236. #010+
  237. '# h : Show hints s : Show time stamps'#013#010+
  238. '# i : Show general info q : Show message numbers'#013#010+
  239. '# l : Show linenumbers c : Show conditiona','ls'#013#010+
  240. '# a : Show everything 0 : Show nothing (except errors'+
  241. ')'#013#010+
  242. '# b : Write file names messages r : Rhide/GCC compatibility mod'+
  243. 'e'#013#010+
  244. '# with full path x : Executable info (Win32 only'+
  245. ')'#013#010+
  246. '# v : write ','fpcdebug.txt with p : Write tree.log with parse'+
  247. ' tree'#013#010+
  248. '# lots of debugging info'#013#010+
  249. '#'#013#010+
  250. '# Display Info, Warnings and Notes'#013#010+
  251. '-viwn'#013#010+
  252. '# If you don'#039't want so much verbosity use'#013#010+
  253. '#-vw'#013#010
  254. );